catlogjs
Version:
Static site generator, translate human readable text format(such as markdown) into html, with a lot of other functions
41 lines (40 loc) • 1.04 kB
JavaScript
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', wait: 1000 }
},
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']);
};