node.js - Converting Gulp tasks into Npm's script -


i have been using gulp while , discovered way run of gulp tasks such browserify/watchify/less via package.json's scripts. example:

"scripts": {     "watch": "npm run watch-js & npm run watch-less & npm run watch-server",     "watch-js": "watchify app/js/main.js -t -o static/bundle.js -dv",     "watch-less": "nodemon --watch app/less/*.less --ext less --exec 'npm run build-less'" } 

since browserify/watchify/less native npm packages know how can reproduce/convert (without writing custom bash/zsh scripts) other gulp tasks such gulp-rev, gulp-s3 work npm's scripts?

you can call specific gulpfile tasks cli. throw npm scripts.

tasks can executed running gulp <task> <othertask>. running gulp execute task registered called default. if there no default task gulp error.

https://github.com/gulpjs/gulp/blob/master/docs/cli.md#tasks


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -