watch.config.js 566 B

12345678910111213141516
  1. var path = require('path');
  2. var watch = require(path.join('..', '..', 'node_modules', '@ionic', 'app-scripts', 'dist', 'watch'));
  3. var entryPointDirectory = path.dirname(process.env.IONIC_APP_ENTRY_POINT)
  4. module.exports = {
  5. demoSrc: {
  6. paths: [path.join(entryPointDirectory, '..', '**', '*.(ts|html|s(c|a)ss)')],
  7. options: { ignored: [path.join(entryPointDirectory, '..', '**', '*.spec.ts'),
  8. path.join(entryPointDirectory, '..', '**', '*.e2e.ts'),
  9. path.join('**', '*.DS_Store')] },
  10. callback: watch.buildUpdate
  11. }
  12. }