How to run gulp tasks from a node script

后端 未结 2 1587
日久生厌
日久生厌 2021-02-06 23:34

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(\'de         


        
相关标签:
2条回答
  • 2021-02-07 00:14

    Eventually I found the way:

    gulp.start('default');
    
    0 讨论(0)
  • 2021-02-07 00:17

    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' ] );
    
    0 讨论(0)
提交回复
热议问题