# dog-trainer

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

Latest version **1.0.1** (published 2018-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install dog-trainer
pnpm add dog-trainer
yarn add dog-trainer
bun add dog-trainer
```

Provides the command `dog-trainer`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-04-17 |
| First published | 2018-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | William Funk |
| Maintainers | william-rad-funk |
| Keywords | 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 |

## Links

- npm: https://www.npmjs.com/package/dog-trainer
- Repository: https://github.com/WilliamRADFunk/dog-trainer
- Homepage: https://github.com/WilliamRADFunk/dog-trainer#readme
- Issues: https://github.com/WilliamRADFunk/dog-trainer/issues
- npm.io page: https://npm.io/package/dog-trainer

## Dependencies (4)

- [pug](https://npm.io/package/pug.md) ^2.0.3
- [glob](https://npm.io/package/glob.md) ^7.1.2
- [yargs](https://npm.io/package/yargs.md) ^11.0.0
- [filewatcher](https://npm.io/package/filewatcher.md) ^3.0.1

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-04-17
- 1.0.0 — 2018-04-17

## 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](https://www.npmjs.com/package/pug)

[Glob](https://www.npmjs.com/package/glob)

[Filewatcher](https://www.npmjs.com/package/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.

---
_Source: https://npm.io/package/dog-trainer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
