thelounge/Gruntfile.js

35 lines
633 B
JavaScript
Raw Normal View History

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