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.
 
 
 

40 lines
1.0 KiB

module.exports = function(grunt) {
'use strict';
grunt.initConfig({
echo: {
one: { message: 'one has changed' },
two: { message: 'two has changed' },
wait: { message: 'I waited 2s', wait: 2000 },
interrupt: { message: 'I want to be interrupted', wait: 5000 },
fail: { fail: 1, message: 'This task should fail' }
},
watch: {
one: {
files: ['lib/one.js', 'Gruntfile.js'],
tasks: ['echo:one']
},
two: {
files: ['lib/two.js'],
tasks: ['echo:two']
},
wait: {
files: ['lib/wait.js'],
tasks: ['echo:wait']
},
interrupt: {
files: ['lib/interrupt.js'],
tasks: ['echo:interrupt'],
options: { interrupt: true }
},
fail: {
files: ['lib/fail.js'],
tasks: ['echo:fail']
}
}
});
// Load the echo task
grunt.loadTasks('../tasks');
// Load this watch task
grunt.loadTasks('../../../tasks');
grunt.registerTask('default', ['echo']);
};