Compare commits
85 Commits
Author | SHA1 | Date |
---|---|---|
Jack Grigg | 69b3b1ce67 | |
Jack Grigg | e62b7d8633 | |
Gabe Gattis | 265a231820 | |
Braydon Fuller | 9d349ce5fd | |
Gabe Gattis | 4f5f76918f | |
Braydon Fuller | 5b0889a043 | |
Marty Alcala | a93a9970e3 | |
Braydon Fuller | 95be4a1213 | |
Braydon Fuller | e9fab401d5 | |
Braydon Fuller | 9360425ad8 | |
Stephen Pair | 2b1f8a481f | |
Chris Kleeschulte | d0078a8f1a | |
Gabe Gattis | 785856bb00 | |
Braydon Fuller | 36e15f14ae | |
Manuel Aráoz | 057c3303bf | |
Braydon Fuller | 660179f711 | |
Manuel Aráoz | 34c1e3e614 | |
Braydon Fuller | 2a4b25fe88 | |
Esteban Ordano | c3c8e4d1ab | |
Manuel Araoz | ad9a79e343 | |
Manuel Aráoz | 9fae3572ae | |
eordano | 3d68578993 | |
eordano | f3e9f3e43d | |
eordano | d33a9d8322 | |
eordano | 6f19ea1f30 | |
Manuel Araoz | 4cc0c76115 | |
Manuel Aráoz | bb8ceb5480 | |
Manuel Araoz | aa0454e4e3 | |
Manuel Aráoz | ac6a0ef79c | |
Manuel Araoz | 3a8bac2f72 | |
Manuel Araoz | f60902938b | |
Manuel Araoz | 15852cfb42 | |
Manuel Aráoz | ce4dd67558 | |
Manuel Araoz | a817664f61 | |
Manuel Aráoz | 0b8c8fe07c | |
Esteban Ordano | 2ce88f7aeb | |
Manuel Aráoz | 781d3f37f7 | |
Esteban Ordano | 4821521282 | |
Yemel Jardi | 96d5d05002 | |
Manuel Araoz | bd979d61bb | |
Manuel Araoz | e6fdafe7cb | |
Manuel Araoz | 9ab2a84b21 | |
Manuel Araoz | de8627c55a | |
Esteban Ordano | fcd4e20ead | |
Braydon Fuller | b5364cd397 | |
Esteban Ordano | ace265d73c | |
Manuel Aráoz | 1eb057b7b4 | |
Braydon Fuller | ed9851c214 | |
Braydon Fuller | 89e277337f | |
Braydon Fuller | 8ffe1270af | |
Manuel Aráoz | c21531b1cb | |
Braydon Fuller | f0bdc81a8f | |
Manuel Aráoz | 98c022f7c0 | |
Esteban Ordano | fdb0360348 | |
Esteban Ordano | e8dd0143d3 | |
Yemel Jardi | 3defc11a3b | |
Manuel Aráoz | 2e0ac3442d | |
Esteban Ordano | c54da1264f | |
Yemel Jardi | 9d66fe59d5 | |
Yemel Jardi | 45941d499e | |
Yemel Jardi | eddffcc682 | |
Manuel Aráoz | 38225d959a | |
Braydon Fuller | ab930504b7 | |
Manuel Araoz | 36100b6a7b | |
Manuel Araoz | b63376b1ed | |
Manuel Araoz | e8b682f289 | |
Braydon Fuller | 7c30479052 | |
Esteban Ordano | 2b72065478 | |
Manuel Aráoz | 16252b253e | |
Esteban Ordano | 2a3a06739c | |
Esteban Ordano | 2a2ded07ca | |
Manuel Aráoz | 97f4c49b17 | |
Esteban Ordano | 7f9e5030d5 | |
Esteban Ordano | 46ba553a0a | |
Esteban Ordano | 1677980ec1 | |
Esteban Ordano | 70d6e3a0c9 | |
Esteban Ordano | 750d8c10ee | |
Manuel Aráoz | d5a4b80676 | |
Esteban Ordano | 6eb6d31385 | |
Manuel Araoz | 378c4db9a0 | |
Manuel Araoz | 0d136a13a1 | |
Esteban Ordano | 488fdb5b4e | |
Esteban Ordano | 16ab6adcdd | |
Manuel Araoz | ffc379d8b5 | |
Esteban Ordano | 5b193440c8 |
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
node_modules/
|
|
@ -0,0 +1,41 @@
|
||||||
|
# bitcore-build-zcash
|
||||||
|
|
||||||
|
A helper to add tasks to gulp.
|
||||||
|
|
||||||
|
## Getting started
|
||||||
|
|
||||||
|
Install with:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install bitcore-build-zcash
|
||||||
|
```
|
||||||
|
|
||||||
|
and use and require in your gulp file:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
var gulp = require('gulp');
|
||||||
|
var bitcoreTasks = require('bitcore-build-zcash');
|
||||||
|
|
||||||
|
bitcoreTasks('submodule');
|
||||||
|
gulp.task('default', ['lint', 'test', 'browser', 'coverage']);
|
||||||
|
```
|
||||||
|
|
||||||
|
### Notes
|
||||||
|
|
||||||
|
* There's no default task to allow for each submodule to set up their own configuration
|
||||||
|
* If the module is node-only, avoid adding the browser tasks with:
|
||||||
|
```javascript
|
||||||
|
var bitcoreTasks = require('bitcore-build-zcash');
|
||||||
|
bitcoreTasks('submodule', {skipBrowsers: true});
|
||||||
|
```
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
See [CONTRIBUTING.md](https://github.com/bitpay/bitcore) on the main bitcore repo for information about how to contribute.
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).
|
||||||
|
|
||||||
|
Copyright 2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.
|
||||||
|
|
265
index.js
265
index.js
|
@ -1,7 +1,3 @@
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var gulp = require('gulp');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file gulpfile.js
|
* @file gulpfile.js
|
||||||
*
|
*
|
||||||
|
@ -21,18 +17,19 @@ var gulp = require('gulp');
|
||||||
* </ul>`
|
* </ul>`
|
||||||
* <li> `browser` - generate files needed for browser (browserify)
|
* <li> `browser` - generate files needed for browser (browserify)
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li> `browser:uncompressed` - build `bitcore-*.js`
|
* <li> `browser:uncompressed` - build uncomprssed browser bundle (`bitcore-*.js`)
|
||||||
* <li> `browser:compressed` - build `bitcore-*.min.js`
|
* <li> `browser:compressed` - build compressed browser bundle (`bitcore-*.min.js`)
|
||||||
* <li> `browser:maketests` - build `tests.js`, needed for testing without karma
|
* <li> `browser:maketests` - build `tests.js`, needed for testing without karma
|
||||||
* </ul>`
|
* </ul>`
|
||||||
* <li> `errors` - autogenerate the `./lib/errors/index.js` file with error definitions
|
|
||||||
* <li> `lint` - run `jshint`
|
* <li> `lint` - run `jshint`
|
||||||
* <li> `coverage` - run `istanbul` with mocha to generate a report of test coverage
|
* <li> `coverage` - run `istanbul` with mocha to generate a report of test coverage
|
||||||
* <li> `coveralls` - updates coveralls info
|
* <li> `coveralls` - updates coveralls info
|
||||||
* <li> `release` - automates release process (only for bitcore maintainers)
|
* <li> `release` - automates release process (only for maintainers)
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
function startGulp(name) {
|
'use strict';
|
||||||
|
|
||||||
|
var gulp = require('gulp');
|
||||||
|
|
||||||
var coveralls = require('gulp-coveralls');
|
var coveralls = require('gulp-coveralls');
|
||||||
var gutil = require('gulp-util');
|
var gutil = require('gulp-util');
|
||||||
|
@ -40,12 +37,11 @@ function startGulp(name) {
|
||||||
var mocha = require('gulp-mocha');
|
var mocha = require('gulp-mocha');
|
||||||
var rename = require('gulp-rename');
|
var rename = require('gulp-rename');
|
||||||
var runsequence = require('run-sequence');
|
var runsequence = require('run-sequence');
|
||||||
|
runsequence.use(gulp);
|
||||||
var shell = require('gulp-shell');
|
var shell = require('gulp-shell');
|
||||||
var uglify = require('gulp-uglify');
|
var uglify = require('gulp-uglify');
|
||||||
|
var bump = require('gulp-bump');
|
||||||
var files = ['lib/**/*.js'];
|
var git = require('gulp-git');
|
||||||
var tests = ['test/**/*.js'];
|
|
||||||
var alljs = files.concat(tests);
|
|
||||||
|
|
||||||
function ignoreerror() {
|
function ignoreerror() {
|
||||||
/* jshint ignore:start */ // using `this` in this context is weird
|
/* jshint ignore:start */ // using `this` in this context is weird
|
||||||
|
@ -53,6 +49,22 @@ function startGulp(name) {
|
||||||
/* jshint ignore:end */
|
/* jshint ignore:end */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function startGulp(name, opts) {
|
||||||
|
|
||||||
|
opts = opts || {};
|
||||||
|
var browser = !opts.skipBrowser;
|
||||||
|
var fullname = name ? 'bitcore-' + name : 'bitcore';
|
||||||
|
var files = ['lib/**/*.js'];
|
||||||
|
var tests = ['test/**/*.js'];
|
||||||
|
var alljs = files.concat(tests);
|
||||||
|
|
||||||
|
var buildPath = './node_modules/bitcore-build-zcash/';
|
||||||
|
var buildModulesPath = buildPath + 'node_modules/';
|
||||||
|
var buildBinPath = buildPath + 'node_modules/.bin/';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* testing
|
||||||
|
*/
|
||||||
var testmocha = function() {
|
var testmocha = function() {
|
||||||
return gulp.src(tests).pipe(new mocha({
|
return gulp.src(tests).pipe(new mocha({
|
||||||
reporter: 'spec'
|
reporter: 'spec'
|
||||||
|
@ -60,57 +72,64 @@ function startGulp(name) {
|
||||||
};
|
};
|
||||||
|
|
||||||
var testkarma = shell.task([
|
var testkarma = shell.task([
|
||||||
'./node_modules/karma/bin/karma start'
|
buildModulesPath + 'karma/bin/karma start ' + buildPath + 'karma.conf.js'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
/**
|
gulp.task('test:node', testmocha);
|
||||||
* testing
|
|
||||||
*/
|
|
||||||
|
|
||||||
gulp.task('test:node', ['errors'], testmocha);
|
gulp.task('test:node:nofail', function() {
|
||||||
|
|
||||||
gulp.task('test:node:nofail', ['errors'], function() {
|
|
||||||
return testmocha().on('error', ignoreerror);
|
return testmocha().on('error', ignoreerror);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('test:browser', ['browser:uncompressed', 'browser:maketests'], testkarma);
|
gulp.task('test:browser', ['browser:uncompressed', 'browser:maketests'], testkarma);
|
||||||
|
|
||||||
|
if (browser) {
|
||||||
gulp.task('test', function(callback) {
|
gulp.task('test', function(callback) {
|
||||||
runsequence(['test:node'], ['test:browser'], callback);
|
runsequence(['test:node'], ['test:browser'], callback);
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
gulp.task('test', ['test:node']);
|
||||||
|
}
|
||||||
|
|
||||||
|
gulp.task('noop', function() {
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* file generation
|
* file generation
|
||||||
*/
|
*/
|
||||||
|
if (browser) {
|
||||||
|
|
||||||
gulp.task('browser:uncompressed', ['errors'], shell.task([
|
var browserifyCommand;
|
||||||
'./node_modules/.bin/browserify index.js --insert-global-vars=true --standalone=bitcore-' +
|
|
||||||
name + ' -o bitcore-' + name + '.js'
|
if (name !== 'lib') {
|
||||||
|
browserifyCommand = buildBinPath + 'browserify --require ./index.js:' + fullname + ' --external bitcore-lib-zcash -o ' + fullname + '.js';
|
||||||
|
} else {
|
||||||
|
browserifyCommand = buildBinPath + 'browserify --require ./index.js:bitcore-lib-zcash -o bitcore-lib-zcash.js';
|
||||||
|
}
|
||||||
|
|
||||||
|
gulp.task('browser:uncompressed', shell.task([
|
||||||
|
browserifyCommand
|
||||||
]));
|
]));
|
||||||
|
|
||||||
gulp.task('browser:compressed', ['browser:uncompressed'], function() {
|
gulp.task('browser:compressed', ['browser:uncompressed'], function() {
|
||||||
return gulp.src('bitcore-' + name + '.js')
|
return gulp.src(fullname + '.js')
|
||||||
.pipe(uglify({
|
.pipe(uglify({
|
||||||
mangle: true,
|
mangle: true,
|
||||||
compress: true
|
compress: true
|
||||||
}))
|
}))
|
||||||
.pipe(rename('bitcore-' + name + '.min.js'))
|
.pipe(rename(fullname + '.min.js'))
|
||||||
.pipe(gulp.dest('.'))
|
.pipe(gulp.dest('.'))
|
||||||
.on('error', gutil.log);
|
.on('error', gutil.log);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('browser:maketests', shell.task([
|
gulp.task('browser:maketests', shell.task([
|
||||||
'find test/ -type f -name "*.js" | xargs ./node_modules/.bin/browserify -t brfs -o tests.js'
|
'find test/ -type f -name "*.js" | xargs ' + buildBinPath + 'browserify -t brfs -o tests.js'
|
||||||
]));
|
]));
|
||||||
|
|
||||||
gulp.task('browser', function(callback) {
|
gulp.task('browser', function(callback) {
|
||||||
runsequence(['browser:compressed'], ['browser:maketests'], callback);
|
runsequence(['browser:compressed'], callback);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
gulp.task('errors', shell.task([
|
|
||||||
'node ./lib/errors/build.js'
|
|
||||||
]));
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* code quality and documentation
|
* code quality and documentation
|
||||||
|
@ -122,9 +141,9 @@ function startGulp(name) {
|
||||||
.pipe(jshint.reporter('default'));
|
.pipe(jshint.reporter('default'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('plato', shell.task(['plato -d report -r -l .jshintrc -t bitcore-' + name + ' lib']));
|
gulp.task('plato', shell.task([buildBinPath + 'plato -d report -r -l .jshintrc -t ' + fullname + ' lib']));
|
||||||
|
|
||||||
gulp.task('coverage', shell.task(['node_modules/.bin/./istanbul cover node_modules/.bin/_mocha -- --recursive']));
|
gulp.task('coverage', shell.task([buildBinPath + './istanbul cover ' + buildBinPath + '_mocha -- --recursive']));
|
||||||
|
|
||||||
gulp.task('coveralls', ['coverage'], function() {
|
gulp.task('coveralls', ['coverage'], function() {
|
||||||
gulp.src('coverage/lcov.info').pipe(coveralls());
|
gulp.src('coverage/lcov.info').pipe(coveralls());
|
||||||
|
@ -146,17 +165,13 @@ function startGulp(name) {
|
||||||
return gulp.watch(alljs, ['test:node']);
|
return gulp.watch(alljs, ['test:node']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (browser) {
|
||||||
gulp.task('watch:test:browser', function() {
|
gulp.task('watch:test:browser', function() {
|
||||||
// todo: only run tests that are linked to file changes by doing
|
// todo: only run tests that are linked to file changes by doing
|
||||||
// something smart like reading through the require statements
|
// something smart like reading through the require statements
|
||||||
return gulp.watch(alljs, ['test:browser']);
|
return gulp.watch(alljs, ['test:browser']);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
gulp.task('watch:jsdoc', function() {
|
|
||||||
// todo: only run tests that are linked to file changes by doing
|
|
||||||
// something smart like reading through the require statements
|
|
||||||
return gulp.watch(alljs, ['jsdoc']);
|
|
||||||
});
|
|
||||||
|
|
||||||
gulp.task('watch:coverage', function() {
|
gulp.task('watch:coverage', function() {
|
||||||
// todo: only run tests that are linked to file changes by doing
|
// todo: only run tests that are linked to file changes by doing
|
||||||
|
@ -170,15 +185,177 @@ function startGulp(name) {
|
||||||
return gulp.watch(alljs, ['lint']);
|
return gulp.watch(alljs, ['lint']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (browser) {
|
||||||
gulp.task('watch:browser', function() {
|
gulp.task('watch:browser', function() {
|
||||||
return gulp.watch(alljs, ['browser']);
|
return gulp.watch(alljs, ['browser']);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/* default task */
|
/**
|
||||||
gulp.task('default', function(callback) {
|
* Release automation
|
||||||
return runsequence(['lint'], ['browser:uncompressed', 'test'], ['coverage', 'browser:compressed'],
|
*/
|
||||||
callback);
|
|
||||||
|
gulp.task('release:install', function() {
|
||||||
|
return shell.task([
|
||||||
|
'npm install',
|
||||||
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var releaseFiles = ['./package.json'];
|
||||||
|
if (browser) {
|
||||||
|
releaseFiles.push('./bower.json');
|
||||||
|
}
|
||||||
|
|
||||||
|
var bump_version = function(importance) {
|
||||||
|
return gulp.src(releaseFiles)
|
||||||
|
.pipe(bump({
|
||||||
|
type: importance
|
||||||
|
}))
|
||||||
|
.pipe(gulp.dest('./'));
|
||||||
|
};
|
||||||
|
|
||||||
|
var tempBranch = 'releases/' + new Date().getTime() + '-build';
|
||||||
|
gulp.task('release:checkout-releases', function(cb) {
|
||||||
|
git.branch(tempBranch, {
|
||||||
|
args: ''
|
||||||
|
}, function() {
|
||||||
|
git.checkout(tempBranch, {
|
||||||
|
args: ''
|
||||||
|
}, cb);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('release:cleanup', function(cb) {
|
||||||
|
git.branch(tempBranch, {
|
||||||
|
args: '-D'
|
||||||
|
}, cb);
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('release:checkout-master', function(cb) {
|
||||||
|
git.checkout('master', {
|
||||||
|
args: ''
|
||||||
|
}, cb);
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('release:sign-built-files', shell.task([
|
||||||
|
'gpg --yes --out ' + fullname + '.js.sig --detach-sig ' + fullname + '.js',
|
||||||
|
'gpg --yes --out ' + fullname + '.min.js.sig --detach-sig ' + fullname + '.min.js'
|
||||||
|
]));
|
||||||
|
|
||||||
|
var buildFiles = ['./package.json'];
|
||||||
|
var signatureFiles = [];
|
||||||
|
if (browser) {
|
||||||
|
buildFiles.push(fullname + '.js');
|
||||||
|
buildFiles.push(fullname + '.js.sig');
|
||||||
|
buildFiles.push(fullname + '.min.js');
|
||||||
|
buildFiles.push(fullname + '.min.js.sig');
|
||||||
|
|
||||||
|
buildFiles.push('./bower.json');
|
||||||
|
|
||||||
|
signatureFiles.push(fullname + '.js.sig');
|
||||||
|
signatureFiles.push(fullname + '.min.js.sig');
|
||||||
|
}
|
||||||
|
var addFiles = function() {
|
||||||
|
var pjson = require('../../package.json');
|
||||||
|
return gulp.src(buildFiles)
|
||||||
|
.pipe(git.add({
|
||||||
|
args: '-f'
|
||||||
|
}));
|
||||||
|
};
|
||||||
|
|
||||||
|
var buildCommit = function() {
|
||||||
|
var pjson = require('../../package.json');
|
||||||
|
return gulp.src(buildFiles)
|
||||||
|
.pipe(git.commit('Build: ' + pjson.version, {
|
||||||
|
args: ''
|
||||||
|
}));
|
||||||
|
};
|
||||||
|
|
||||||
|
gulp.task('release:add-signed-files', ['release:sign-built-files'], addFiles);
|
||||||
|
gulp.task('release:add-built-files', addFiles);
|
||||||
|
|
||||||
|
if (browser) {
|
||||||
|
gulp.task('release:build-commit', [
|
||||||
|
'release:add-signed-files'
|
||||||
|
], buildCommit);
|
||||||
|
} else {
|
||||||
|
gulp.task('release:build-commit', [
|
||||||
|
'release:add-built-files'
|
||||||
|
], buildCommit);
|
||||||
|
}
|
||||||
|
|
||||||
|
gulp.task('release:version-commit', function() {
|
||||||
|
var pjson = require('../../package.json');
|
||||||
|
return gulp.src(releaseFiles)
|
||||||
|
.pipe(git.commit('Bump package version to ' + pjson.version, {
|
||||||
|
args: ''
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('release:push', function(cb) {
|
||||||
|
git.push('bitpay', 'master', {
|
||||||
|
args: ''
|
||||||
|
}, cb);
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('release:push-tag', function(cb) {
|
||||||
|
var pjson = require('../../package.json');
|
||||||
|
var name = 'v' + pjson.version;
|
||||||
|
git.tag(name, 'Release ' + name, function() {
|
||||||
|
git.push('bitpay', name, cb);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('release:publish', shell.task([
|
||||||
|
'npm publish'
|
||||||
|
]));
|
||||||
|
|
||||||
|
|
||||||
|
// requires https://hub.github.com/
|
||||||
|
var release = function(importance, cb) {
|
||||||
|
var bumper = 'release:bump:' + importance;
|
||||||
|
return runsequence(
|
||||||
|
// Checkout the release temporal branch
|
||||||
|
'release:checkout-releases',
|
||||||
|
// Run npm install
|
||||||
|
'release:install',
|
||||||
|
// Run tests with gulp test
|
||||||
|
'test',
|
||||||
|
// Update package.json and bower.json
|
||||||
|
bumper,
|
||||||
|
// build browser files
|
||||||
|
browser ? 'browser' : 'noop',
|
||||||
|
// Commit
|
||||||
|
'release:build-commit',
|
||||||
|
// Run git push bitpay $VERSION
|
||||||
|
'release:push-tag',
|
||||||
|
// Run npm publish
|
||||||
|
'release:publish',
|
||||||
|
// Checkout the `master` branch
|
||||||
|
'release:checkout-master',
|
||||||
|
// Bump package.json and bower.json, again
|
||||||
|
bumper,
|
||||||
|
// Version commit with no binary files to master
|
||||||
|
'release:version-commit',
|
||||||
|
// Push to master
|
||||||
|
'release:push',
|
||||||
|
// remove release branch
|
||||||
|
'release:cleanup',
|
||||||
|
cb);
|
||||||
|
};
|
||||||
|
|
||||||
|
['patch', 'minor', 'major'].forEach(function(importance) {
|
||||||
|
gulp.task('release:' + importance, function(cb) {
|
||||||
|
release(importance, cb);
|
||||||
|
});
|
||||||
|
gulp.task('release:bump:' + importance, function() {
|
||||||
|
bump_version(importance);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
gulp.task('release', ['release:patch']);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = startGulp;
|
module.exports = startGulp;
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// karma.conf.js
|
||||||
|
module.exports = function(config) {
|
||||||
|
|
||||||
|
config.set({
|
||||||
|
browsers: ['Firefox'],
|
||||||
|
frameworks: ['mocha'],
|
||||||
|
singleRun: true,
|
||||||
|
files: [
|
||||||
|
'./../../tests.js' // project root
|
||||||
|
],
|
||||||
|
plugins: [
|
||||||
|
'karma-mocha',
|
||||||
|
'karma-firefox-launcher'
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
46
package.json
46
package.json
|
@ -1,37 +1,65 @@
|
||||||
{
|
{
|
||||||
"name": "gulp-bitcore",
|
"name": "bitcore-build-zcash",
|
||||||
"version": "0.1.0",
|
"version": "0.5.4",
|
||||||
"description": "A helper for common tasks across bitcore modules'",
|
"description": "A helper for common tasks to build bitcore-zcash modules'",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "gulp test"
|
"test": "gulp test"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git://github.com/bitpay/gulp-bitcore"
|
"url": "git://github.com/str4d/bitcore-build-zcash"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"bitcore"
|
"bitcore"
|
||||||
],
|
],
|
||||||
"author": "Esteban Ordano",
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Esteban Ordano",
|
||||||
|
"email": "esteban@bitpay.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Manuel Araoz",
|
||||||
|
"email": "maraoz@bitpay.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Braydon Fuller",
|
||||||
|
"email": "braydon@bitpay.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Yemel Jardi",
|
||||||
|
"email": "yemel@bitpay.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/bitpay/gulp-bitcore/issues"
|
"url": "https://github.com/str4d/bitcore-build-zcash/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/bitpay/gulp-bitcore",
|
"homepage": "https://github.com/str4d/bitcore-build-zcash",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"brfs": "^1.2.0",
|
"brfs": "^1.2.0",
|
||||||
"browserify": "~6.3.3",
|
"browserify": "~13.1.0",
|
||||||
|
"chai": "~1.10.0",
|
||||||
"gulp": "^3.8.10",
|
"gulp": "^3.8.10",
|
||||||
|
"gulp-bump": "^0.1.11",
|
||||||
"gulp-coveralls": "^0.1.3",
|
"gulp-coveralls": "^0.1.3",
|
||||||
|
"gulp-git": "^0.5.5",
|
||||||
"gulp-jshint": "^1.9.0",
|
"gulp-jshint": "^1.9.0",
|
||||||
"gulp-mocha": "^2.0.0",
|
"gulp-mocha": "^2.0.0",
|
||||||
"gulp-rename": "^1.2.0",
|
"gulp-rename": "^1.2.0",
|
||||||
"gulp-shell": "^0.2.10",
|
"gulp-shell": "^0.2.10",
|
||||||
"gulp-uglify": "^1.0.2",
|
"gulp-uglify": "^1.0.2",
|
||||||
"gulp-util": "=3.0.1",
|
"gulp-util": "=3.0.1",
|
||||||
|
"istanbul": "^0.3.5",
|
||||||
|
"karma": "^0.12.28",
|
||||||
|
"karma-chrome-launcher": "^0.1.8",
|
||||||
|
"karma-detect-browsers": "^2.0.0",
|
||||||
|
"karma-firefox-launcher": "^0.1.4",
|
||||||
|
"karma-mocha": "^0.1.9",
|
||||||
"lodash": "^2.4.1",
|
"lodash": "^2.4.1",
|
||||||
|
"mocha": "^2.0.1",
|
||||||
"plato": "^1.3.0",
|
"plato": "^1.3.0",
|
||||||
"run-sequence": "^1.0.2"
|
"run-sequence": "^1.0.2",
|
||||||
|
"zuul": "1.16.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue