commander-gulp-watch

Watch dinámicamente

Usage no npm install needed!

<script type="module">
  import commanderGulpWatch from 'https://cdn.skypack.dev/commander-gulp-watch';
</script>

README

Commander Gulp Watch Dynamic

Watch dinámicamente

commander: version (tag) gulp: version (tag) MIT License npm: version (tag) node: version (tag

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/