javascript - Splitting tasks in gulp -
right have multiple gulpfiles. everytime work need run mulptiple "gulp --gulpfile path/to/another-gulpfile.js". can run 1 command? tried "gulp --gulpfile gulpfile1.js gulpfile2.js gulpfile3.js", didn't work.
edit:
"scripts": { "gulp": "gulp --gulpfile bin/gulp-tasks/config.js && gulp --gulpfile bin/gulp-tasks/deploy.js" }
i tried running multiple gulp instances using npm scripts, looks watchers first specified gulpfile working. simple console.logging showed, second gulpfile not started. work when launched separately.
one way can try put gulp command in npm package.json
scripts: { gulp: gulp --gulpfile path/to/gulpfile1.js && gulp --gulpfile path/to/gulpfile2.js }
then can run 1 command npm run gulp
;
the other way can refer post more details http://macr.ae/article/splitting-gulpfile-multiple-files.html
Comments
Post a Comment