thelounge/Gruntfile.js
2014-07-09 03:38:53 +02:00

34 lines
633 B
JavaScript

module.exports = function(grunt) {
grunt.initConfig({
uglify: {
options: {
compress: false
},
js: {
files: {
"client/js/components.min.js": "client/components/**/*.js"
}
}
},
nodewebkit: {
src: "./**/*",
options: {
build_dir: "./build",
mac: false
}
}
});
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-node-webkit-builder");
grunt.registerTask(
"build",
function() {
require("child_process").exec("rm -rf ./build");
grunt.task.run("nodewebkit");
}
);
grunt.registerTask(
"default",
"uglify"
);
};