2.0.5 • Published 3 years ago

commander-gulp-watch v2.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Commander Gulp Watch Dynamic

Instalación

$ npm install commander-gulp-watch

Comando a ejecutar

$ commander-gulp-watch w-templates 'entry' --wt 'ouput'
$ commander-gulp-watch w-scss 'entry' --wscss 'ouput'
$ commander-gulp-watch w-stylus 'entry' --wstyl 'ouput'

Configuración por el package.json

"scripts": {
  "watch": "npm run watch-templates watch-sass watch-templates watch-mailing",
  "watch-sass": "commander-gulp-watch w-scss \"frontend/src/static/styles/*.scss\" \"frontend/src/static/styles/**/*.scss\" --wscss  \"docs/styles/\"",
  "watch-stylus": "commander-gulp-watch w-stylus \"frontend/src/static/styles/*.styl\" \"frontend/src/static/styles/**/*.styl\" --wstyl  \"docs/styles/\"",
  "watch-templates": "commander-gulp-watch w-templates \"frontend/src/templates/*.pug\" \"frontend/src/templates/**/*.pug\" --wt  \"docs/\"",
  "watch-mailing": "commander-gulp-watch w-templates \"frontend/src/mail/*.pug\" \"frontend/src/mail/**/*.pug\" --wt  \"docs/\""
  }

Link

https://jugaz.github.io/commander-gulp-watch/