Skip to content

Commit

Permalink
preba
Browse files Browse the repository at this point in the history
  • Loading branch information
eordano committed Dec 24, 2014
1 parent 17e3ef7 commit 97eb9a1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,15 @@ gulp.task('release:checkout-master', function(cb) {
git.checkout('master', {args: ''}, cb);
});

gulp.task('release:build-commit', function(cb) {
gulp.task('release:add-built-files', function() {
return gulp.src(['./browser/bitcore.js', './browser/bitcore.min.js', './package.json', './bower.json'])
.pipe(git.add({args: '-f'}));
});

gulp.task('release:build-commit', ['release:add-built-files'], function() {
var pjson = require('./package.json');
gulp.src(['./browser/bitcore.js', './browser/bitcore.min.js', './package.json', './bower.json'])
.pipe(git.add({args: '-f'}, function() {
git.commit('Build: ' + pjson.version, {args: ''}, cb);
}));
return gulp.src(['./browser/bitcore.js', './browser/bitcore.min.js', './package.json', './bower.json'])
.pipe(git.commit('Build: ' + pjson.version, {args: ''}));
});

gulp.task('release:version-commit', function() {
Expand Down Expand Up @@ -290,9 +293,9 @@ gulp.task('release', function(cb) {
// Run npm install
['release:install'],
// Build browser bundle
['browser'],
['browser:compressed'],
// Run tests with gulp test
['test'],
// ['test'],
// Update package.json and bower.json
['release:bump'],
// Commit
Expand Down

0 comments on commit 97eb9a1

Please sign in to comment.