How to run Gulp tasks sequentially one after the other

前端 未结 14 1027
眼角桃花
眼角桃花 2020-11-22 13:00

in the snippet like this:

gulp.task \"coffee\", ->
    gulp.src(\"src/server/**/*.coffee\")
        .pipe(coffee {bare: true}).on(\"error\",gutil.log)
           


        
14条回答
  •  误落风尘
    2020-11-22 13:17

    I generated a node/gulp app using the generator-gulp-webapp Yeoman generator. It handled the "clean conundrum" this way (translating to the original tasks mentioned in the question):

    gulp.task('develop', ['clean'], function () {
      gulp.start('coffee');
    });
    

提交回复
热议问题