Shuo/Gruntfile.js

26 lines
438 B
JavaScript
Raw Normal View History

2014-06-17 13:38:08 +00:00
module.exports = function(grunt) {
2014-08-25 22:39:10 +00:00
var libs = "client/js/**/*.js";
2014-06-17 13:38:08 +00:00
grunt.initConfig({
2014-07-24 00:16:00 +00:00
watch: {
files: libs,
tasks: ["uglify"]
},
2014-06-17 13:38:08 +00:00
uglify: {
2014-07-09 01:38:38 +00:00
options: {
compress: false
},
2014-06-17 13:38:08 +00:00
js: {
files: {
2014-08-29 20:54:11 +00:00
"client/build/build.js": libs
2014-06-17 13:38:08 +00:00
}
}
}
});
2014-07-07 23:13:12 +00:00
grunt.loadNpmTasks("grunt-contrib-uglify");
2014-07-24 00:16:00 +00:00
grunt.loadNpmTasks("grunt-contrib-watch");
2014-06-17 13:38:08 +00:00
grunt.registerTask(
"default",
2014-07-20 21:22:23 +00:00
["uglify"]
2014-06-17 13:38:08 +00:00
);
};