hardlounge/Gruntfile.js

35 lines
633 B
JavaScript
Raw Normal View History

2014-06-17 09:38:08 -04:00
module.exports = function(grunt) {
grunt.initConfig({
uglify: {
2014-07-08 21:38:38 -04:00
options: {
compress: false
},
2014-06-17 09:38:08 -04:00
js: {
files: {
2014-07-08 21:38:38 -04:00
"client/js/components.min.js": "client/components/**/*.js"
2014-06-17 09:38:08 -04:00
}
}
2014-07-08 21:38:38 -04:00
},
nodewebkit: {
src: "./**/*",
options: {
build_dir: "./build",
mac: false
}
2014-06-17 09:38:08 -04:00
}
});
2014-07-07 19:13:12 -04:00
grunt.loadNpmTasks("grunt-contrib-uglify");
2014-07-08 21:38:38 -04: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 09:38:08 -04:00
grunt.registerTask(
"default",
2014-07-08 21:38:38 -04:00
"uglify"
2014-06-17 09:38:08 -04:00
);
};