You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
765 B
35 lines
765 B
10 years ago
|
/**
|
||
|
* 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', {
|
||
|
api: {
|
||
|
|
||
|
// API files to watch:
|
||
|
files: ['api/**/*', '!**/node_modules/**']
|
||
|
},
|
||
|
assets: {
|
||
|
|
||
|
// Assets to watch:
|
||
|
files: ['assets/**/*', 'tasks/pipeline.js', '!**/node_modules/**'],
|
||
|
|
||
|
// When assets are changed:
|
||
|
tasks: ['syncAssets' , 'linkAssets']
|
||
|
}
|
||
|
});
|
||
|
|
||
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||
|
};
|