Created
January 22, 2014 01:14
-
-
Save stevenyxu/8551836 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.registerTask('check', function() { | |
grunt.log.writeln('Checking!'); | |
}); | |
grunt.registerTask('buildFoo', function() { | |
grunt.log.writeln('Building Foo!'); | |
}); | |
grunt.registerTask('buildBar', function() { | |
grunt.log.writeln('Building Bar!'); | |
}); | |
grunt.initConfig({ | |
watch: { | |
check: { | |
files: ['*'], | |
tasks: ['check'] | |
}, | |
foo: { | |
files: ['foo'], | |
tasks: ['buildFoo'] | |
}, | |
bar: { | |
files: ['bar'], | |
tasks: ['buildBar'] | |
} | |
} | |
}); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Grunttest", | |
"version": "0.0.1", | |
"dependencies": { | |
"grunt": "0.4.1", | |
"grunt-contrib-watch": "0.4.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment