2014-06-17 13:38:08 +00:00
|
|
|
module.exports = function(grunt) {
|
2014-06-26 16:14:45 +00:00
|
|
|
var files = ["*.js", "lib/*"];
|
2014-06-17 13:38:08 +00:00
|
|
|
grunt.initConfig({
|
2014-06-26 16:14:45 +00:00
|
|
|
jshint: {
|
|
|
|
files: files
|
|
|
|
},
|
2014-06-17 13:38:08 +00:00
|
|
|
uglify: {
|
|
|
|
js: {
|
|
|
|
files: {
|
2014-06-17 16:20:22 +00:00
|
|
|
"client/js/components.min.js": ["client/components/*.js"]
|
2014-06-17 13:38:08 +00:00
|
|
|
}
|
|
|
|
}
|
2014-06-26 16:14:45 +00:00
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
files: files,
|
|
|
|
tasks: ["default"]
|
2014-06-17 13:38:08 +00:00
|
|
|
}
|
|
|
|
});
|
2014-06-26 16:14:45 +00:00
|
|
|
["jshint", "uglify", "watch"]
|
|
|
|
.forEach(function(task) {
|
|
|
|
grunt.loadNpmTasks("grunt-contrib-" + task);
|
|
|
|
});
|
2014-06-17 13:38:08 +00:00
|
|
|
grunt.registerTask(
|
|
|
|
"default",
|
2014-06-26 16:14:45 +00:00
|
|
|
["jshint", "uglify"]
|
2014-06-17 13:38:08 +00:00
|
|
|
);
|
|
|
|
};
|