gulp-npm-script-sync
Syncs all your gulp tasks into the scripts section of your package.json. For instance: gulp watch
can be run as npm run watch
. npm will use the local gulp inside your node_modules
folder, so there is no need to install gulp globally to run the tasks. inspired by this stackoverflow question.
install
npm install --save-dev gulp-npm-script-sync
usage
// gulpfile.jsvar gulp = ;var sync = ; // your gulpfile contents ;
Using the configurations:
// gulpfile.jsvar gulp = ;var sync = ; // your gulpfile contents ;