123456789101112131415161718
  1. var watch = require('../dist/watch');
  2. var copy = require('../dist/copy');
  3. var copyConfig = require('./copy.config');
  4. // this is a custom dictionary to make it easy to extend/override
  5. // provide a name for an entry, it can be anything such as 'srcFiles' or 'copyConfig'
  6. // then provide an object with the paths, options, and callback fields populated per the Chokidar docs
  7. // https://www.npmjs.com/package/chokidar
  8. module.exports = {
  9. srcFiles: {
  10. paths: ['{{SRC}}/**/*.(ts|html|s(c|a)ss)'],
  11. options: { ignored: ['{{SRC}}/**/*.spec.ts', '{{SRC}}/**/*.e2e.ts', '**/*.DS_Store', '{{SRC}}/index.html'] },
  12. callback: watch.buildUpdate
  13. },
  14. copyConfig: copy.copyConfigToWatchConfig()
  15. };