hardlounge/Gruntfile.js

35 lines
633 B
JavaScript
Raw Normal View History

2014-06-17 13:38:08 +00:00
module.exports = function(grunt) {
grunt.initConfig({
uglify: {
2014-07-09 01:38:38 +00:00
options: {
compress: false
},
2014-06-17 13:38:08 +00:00
js: {
files: {
2014-07-09 01:38:38 +00:00
"client/js/components.min.js": "client/components/**/*.js"
2014-06-17 13:38:08 +00:00
}
}
2014-07-09 01:38:38 +00:00
},
nodewebkit: {
src: "./**/*",
options: {
build_dir: "./build",
mac: false
}
2014-06-17 13:38:08 +00:00
}
});
2014-07-07 23:13:12 +00:00
grunt.loadNpmTasks("grunt-contrib-uglify");
2014-07-09 01:38:38 +00:00
grunt.loadNpmTasks("grunt-node-webkit-builder");
grunt.registerTask(
"build",
function() {
require("child_process").exec("rm -rf ./build");
grunt.task.run("nodewebkit");
}
);
2014-06-17 13:38:08 +00:00
grunt.registerTask(
"default",
2014-07-09 01:38:38 +00:00
"uglify"
2014-06-17 13:38:08 +00:00
);
};