How to run gulp tasks from a node script
问题 I have a node script and I want to run a gulp task I have in the same script, how can I call it? #!/usr/bin/env node var gulp = require('gulp'); gulp.task('default', function (arg) { }); // How do I call the task 'default' 回答1: Eventually I found the way: gulp.start('default'); 回答2: Use an array in start method, in the case someone is looking for a way of running multiple tasks from search engines. gulp.start( [ 'task1', 'task2' ] ); 来源: https://stackoverflow.com/questions/28481020/how-to-run