Revamp build steps
* Instead of providing the binaries with the package, it'll only download the needed binary for the users system. * Will only build if the tests fail. * Move `build.js` into scripts since it's not part of the actual API. * Move binaries to `vendor` folder to keep it separate from the rest of the code. Fixes #504.
Showing
| ... | @@ -20,8 +20,8 @@ | ... | @@ -20,8 +20,8 @@ |
| "gypfile": true, | "gypfile": true, | ||
| "scripts": { | "scripts": { | ||
| "coverage": "node scripts/coverage.js", | "coverage": "node scripts/coverage.js", | ||
| "install": "node lib/build.js", | "install": "node scripts/install.js", | ||
| "prepublish": "node scripts/prepublish", | "postinstall": "node scripts/build.js", | ||
| "pretest": "node_modules/.bin/jshint bin lib test", | "pretest": "node_modules/.bin/jshint bin lib test", | ||
| "test": "node_modules/.bin/mocha test" | "test": "node_modules/.bin/mocha test" | ||
| }, | }, | ||
| ... | @@ -44,14 +44,15 @@ | ... | @@ -44,14 +44,15 @@ |
| "dependencies": { | "dependencies": { | ||
| "chalk": "^0.5.1", | "chalk": "^0.5.1", | ||
| "cross-spawn": "^0.2.3", | "cross-spawn": "^0.2.3", | ||
| "download": "^3.1.2", | |||
| "download-status": "^2.1.0", | |||
| "get-stdin": "^3.0.0", | "get-stdin": "^3.0.0", | ||
| "meow": "^2.0.0", | "meow": "^2.0.0", | ||
| "mkdirp": "^0.5.0", | "mkdirp": "^0.5.0", | ||
| "mocha": "^2.0.1", | "mocha": "^2.0.1", | ||
| "nan": "^1.3.0", | "nan": "^1.3.0", | ||
| "node-watch": "^0.3.4", | "node-watch": "^0.3.4", | ||
| "object-assign": "^1.0.0", | "object-assign": "^1.0.0" | ||
| "shelljs": "^0.3.0" | |||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "coveralls": "^2.11.1", | "coveralls": "^2.11.1", | ||
| ... | ... |
scripts/install.js
0 → 100644
scripts/prepublish
deleted
100644 → 0
Please
register
or
sign in
to comment