📜  gulp 运行序列 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:35.085000             🧑  作者: Mango

代码示例1
//GULP - RUN TASKS SEQUENTIALLY
var gulp = require('gulp');
var gutil = require('gulp-util');
var runSequence = require('run-sequence');

gulp.task('some-task', function (done){
    runSequence(
        'clean',
        'build', 
        function() {
            gutil.log("the end");
            done();
        }
    );
});