Skip to content

Commit 4900ef4

Browse files
author
Hugo Rodrigues
committed
New gulp tasks
1 parent 397a1a5 commit 4900ef4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

gulpfile.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ var bump = require('gulp-bump')
1010
var filter = require('gulp-filter')
1111
var tag_version = require('gulp-tag-version')
1212

13+
var spawn = require('child_process').spawn;
14+
1315

1416
/**
1517
* Bumping version number and tagging the repository with it.
@@ -40,18 +42,23 @@ function inc(importance) {
4042
.pipe(tag_version());
4143
}
4244

43-
gulp.task('patch', ['directives', 'less', 'demo', 'distribution'], function() { return inc('patch'); })
44-
gulp.task('feature', ['directives', 'less', 'demo', 'distribution'], function() { return inc('minor'); })
45-
gulp.task('release', ['directives', 'less', 'demo', 'distribution'], function() { return inc('major'); })
45+
gulp.task('patch', ['directives', 'less', 'demo', 'dist'], function() { return inc('patch'); })
46+
gulp.task('feature', ['directives', 'less', 'demo', 'dist'], function() { return inc('minor'); })
47+
gulp.task('release', ['directives', 'less', 'demo', 'dist'], function() { return inc('major'); })
4648

4749

48-
gulp.task('distribution', function(){
50+
gulp.task('dist', function(){
4951
return gulp.src('./dist/*')
5052
.pipe(git.add())
5153
.pipe(git.commit("[BOT] New distribution release"));
5254
});
5355

5456

57+
gulp.task('npm', function (done) {
58+
spawn('npm', ['publish'], { stdio: 'inherit' }).on('close', done);
59+
});
60+
61+
5562
gulp.task('directives', function(){
5663
return gulp.src('./src/*.js')
5764
.pipe(directiveReplace({root: 'src'}))

0 commit comments

Comments
 (0)