3.0.0 • Published 4 years ago

customize-watch v3.0.0

Weekly downloads
976
License
MIT
Repository
github
Last release
4 years ago

customize-watch

NPM version Travis Build Status Coverage Status

A file watcher for customize

customize-watch is a file watcher for customize It attaches watchers (using chokidar) to the files and directories that are relevant for computing a result with customize.

If files are added, removed or changed the result will be recomputed.

Installation

npm install customize-watch

Usage

The following example is almost identical to the "merging another configuration"-example of the customize-module.

const customize = require('customize-watch')

// Load files from one directory and merge with second
customize()
  .registerEngine('files', require('./engine-concat-files'))
  .merge({
    files: 'dir1'
  })
  .merge({
    files: 'dir2'
  })
  .watch()
  .on('update', function(result) {
    console.log('result', result.files)
  })

It will generate the same output, but every time the files in dir1 and dir2 are changed, removed or added, the output will be recomputed. The update-event will be sent with the result as argument, every time the computation has finished.

License

customize-watch is published under the MIT-license.

See LICENSE.md for details.

Release-Notes

For release notes, see CHANGELOG.md

Contributing guidelines

See CONTRIBUTING.md.

3.0.0

4 years ago

1.0.1

4 years ago

1.0.0

7 years ago

0.5.4

8 years ago

0.5.3

8 years ago

0.5.2

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.2

8 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago