UNPKG

test-scribe

Version:

Your sidekick for analog machine development. Run machines interactively and generate automated test scripts based on the outcome.

35 lines (30 loc) 826 B
/** * Run predefined tasks whenever watched file patterns are added, changed or deleted. * * --------------------------------------------------------------- * * Watch for changes on * - files in the `assets` folder * - the `tasks/pipeline.js` file * and re-run the appropriate tasks. * * For usage docs see: * https://github.com/gruntjs/grunt-contrib-watch * */ module.exports = function(grunt) { grunt.config.set('watch', { assets: { // Assets to watch: files: [ 'assets/**/*', 'node_modules/@rachaelshaw/treeline-assets/styles/**/*', 'node_modules/@rachaelshaw/treeline-assets/fonts/**/*', 'tasks/pipeline.js' ], // When assets are changed: tasks: ['syncAssets', 'linkAssets'] } }); grunt.loadNpmTasks('grunt-contrib-watch'); };