Giter Club home page Giter Club logo

bitcore-build's Introduction

bitcore-build's People

Contributors

braydonf avatar eordano avatar gabegattis avatar gasteve avatar kleetus avatar maraoz avatar matiu avatar msalcala11 avatar yemel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitcore-build's Issues

Drop the releases branch

I think there's no actual reason why it needs to be there.

We could have a tag/branch called "current" to signify what's the latest release, but the current schema of "having a branch with merge commits between the last build commit (the ones with the binaries) and the current master be the next release commit" I feel that has no use case or reason to be kept.

uglify mangles object names that bitcore requires

I'm using bitcore 0.8.5 from bower.

Using the minified brower bundle, several bitcore functions fail because they expect arguments to be of a certain type, which uglify has mangled to a single letter name.

For example
https://github.com/bitpay/bitcore/blob/master/lib/address.js#L231

  if (!(pubkey instanceof PublicKey)) {
    throw new TypeError('Address must be an instance of PublicKey.');
  }

but PublicKey has been mangled to a single letter and I get the following error:

 TypeError: Address must be an instance of PublicKey.
    at Function.n._transformPublicKey (http://localhost:9000/bower_components/bitcore/browser/bitcore.min.js:1:5708)
    at Function.n.fromPublicKey (http://localhost:9000/bower_components/bitcore/browser/bitcore.min.js:1:6453)
    at l.d.toAddress (http://localhost:9000/bower_components/bitcore/browser/bitcore.min.js:4:4457)

npm v3 support

npm@3 install modules maximally flat and browserify can be installed on same level as bitcore-build and path to binary should be (for npm@3)

./node_modules/.bin/browserify

instead

./node_modules/bitcore-build/node_modules/.bin/browserify

full error message:

$ gulp test:browser
[16:12:47] Using gulpfile ~/work/bitcore-lib/gulpfile.js
[16:12:47] Starting 'browser:uncompressed'...
[16:12:47] Starting 'browser:maketests'...
/bin/sh: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory
[16:12:47] 'browser:uncompressed' errored after 39 ms
[16:12:47] Error in plugin 'gulp-shell'
Message:
    Command failed: /bin/sh -c ./node_modules/bitcore-build/node_modules/.bin/browserify --require ./index.js:bitcore-lib -o bitcore-lib.js
/bin/sh: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory

Details:
    killed: false
    code: 127
    signal: null
    cmd: /bin/sh -c ./node_modules/bitcore-build/node_modules/.bin/browserify --require ./index.js:bitcore-lib -o bitcore-lib.js
    stdout: 
    stderr: /bin/sh: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory

xargs: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory
[16:12:47] 'browser:maketests' errored after 26 ms
[16:12:47] Error in plugin 'gulp-shell'
Message:
    Command failed: /bin/sh -c find test/ -type f -name "*.js" | xargs ./node_modules/bitcore-build/node_modules/.bin/browserify -t brfs -o tests.js
xargs: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory

Details:
    killed: false
    code: 127
    signal: null
    cmd: /bin/sh -c find test/ -type f -name "*.js" | xargs ./node_modules/bitcore-build/node_modules/.bin/browserify -t brfs -o tests.js
    stdout: 
    stderr: xargs: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.