watchbuild
Watch files and transform them with streams.
var wb = ;var marked = ;var through = ; // convert 'test.md' to html and write the result to 'test.html'// whenever 'test.md' it changes; // also supports streams; // and globs;
Installation
$ npm install watchbuild
API
watchbuild(files, transform)
files
is an object mapping glob patterns to output paths. If a file is mapped to undefined
or null
, it isn't written anywhere.
transform
can return a transform stream or a function that takes and returns a string.
License
MIT. See ./LICENSE
for details.
TODO
- more tests