Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

dog-trainer

WilliamRADFunk25MIT1.0.1

An npm package that watches pug files for change, and compiling only those that do.

pug, watch, watcher, fs, glob, globs, pug compiler, jade compiler, jade-compiler, jade, pug2html, angular, angular 2, angular 4, angular 5, lightweight, code style, formatter, style guide, validate, compiler pug, compiler jade, pug compiler, jade compiler, watcher pug, watcher jade, pug watcher, jade watcher, pug-watcher, jade-watcher, pug to html, compiling pug, compiling jade, pug compiling, jade compiling, pug-compiling, jade-compiling, hint, hint pug, hint jade, pug hint, jade hint, pug-hint, jade-hint, hinter, hinter pug, hinter jade, pug hinter, jade hinter, pug-hinter, jade-hinter, hinting, hinting pug, hinting jade, pug hinting, jade hinting, pug-hinting, jade-hinting

readme

dog-trainer

An npm package that watches pug files for change, and compiling only those that do.

Credit

Most of the magic is done by:

Pug

Glob

Filewatcher

A more efficient way to watch and compile pug 2 html on an individual basis. Great for Angular 2 through 5 projects.

I just brought the three together to solve a problem of mine.

If it helps you to solve a problem, too, then all the better.

To Use:

~~ Create an npm script with one of the following choices:

~~ dog-trainer ~~ watches all pugs starting at root level, compiling each (only the altered file) to html upon detected change.

~~ dog-trainer --source=<your-starting-folder> ~~ watches all pugs starting at <your-starting-folder>, compiling each (only the altered file) to html upon detected change.

Contact

If you discover any bugs or limitations to this library, feel free to let me know. I'll update when I can.