hardlounge/Gruntfile.js

35 lines
597 B
JavaScript
Raw Normal View History

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