📜  gulp 顺序任务 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:35.792000             🧑  作者: 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();
        }
    );
});