dog-trainer

1.0.1 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i dog-trainer

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.41 kB

Total Files

4

Last publish

Collaborators

  • william-rad-funk