@@ -13,32 +13,35 @@ var DEST = 'dist/'
1313
1414var paths = [ 'gulpfile.js' , 'src/dot-object.js' , 'test/**/*.js' ]
1515
16- gulp . task ( 'lint' , function ( ) {
16+ gulp . task ( 'lint' , function ( done ) {
1717 gulp . src ( paths )
1818 . pipe ( standard ( ) )
1919 . pipe ( standard . reporter ( 'default' , {
2020 breakOnError : true
2121 } ) )
22+ done ( )
2223} )
2324
24- gulp . task ( 'mocha' , function ( ) {
25+ gulp . task ( 'mocha' , function ( done ) {
2526 gulp . src ( [ 'test/**/*.js' ] )
2627 . pipe ( mocha ( ) )
2728 . on ( 'error' , gutil . log )
29+ done ( )
2830} )
2931
3032gulp . task ( 'watch' , function ( ) {
31- gulp . watch ( paths , [ 'build-node' , 'mocha' ] )
33+ gulp . watch ( paths , gulp . series ( 'build-node' , 'mocha' ) )
3234} )
3335
34- gulp . task ( 'build-node' , function ( ) {
36+ gulp . task ( 'build-node' , function ( done ) {
3537 gulp . src ( 'src/dot-object.js' )
3638 . pipe ( hf . footer ( '\nmodule.exports = DotObject\n' ) )
3739 . pipe ( rename ( { basename : 'index' } ) )
3840 . pipe ( gulp . dest ( './' ) )
41+ done ( )
3942} )
4043
41- gulp . task ( 'build-bower' , function ( ) {
44+ gulp . task ( 'build-bower' , function ( done ) {
4245 gulp . src ( 'src/dot-object.js' )
4346 . pipe ( hf . header ( 'src/header.tpl' ) )
4447 . pipe ( hf . footer ( 'src/footer.tpl' ) )
@@ -47,10 +50,11 @@ gulp.task('build-bower', function () {
4750 . pipe ( uglify ( ) )
4851 . pipe ( rename ( { extname : '.min.js' } ) )
4952 . pipe ( gulp . dest ( DEST ) )
53+ done ( )
5054} )
5155
52- gulp . task ( 'dist' , [ 'lint' , 'build-node' , 'mocha' , 'build-bower' ] )
56+ gulp . task ( 'dist' , gulp . parallel ( 'lint' , 'build-node' , 'mocha' , 'build-bower' ) )
5357
54- gulp . task ( 'test' , [ 'lint' , 'build-node' , 'mocha' ] )
58+ gulp . task ( 'test' , gulp . parallel ( 'lint' , 'build-node' , 'mocha' ) )
5559
56- gulp . task ( 'default' , [ 'test' ] )
60+ gulp . task ( 'default' , gulp . parallel ( 'test' ) )
0 commit comments