mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
34 lines
633 B
JavaScript
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"
|
|
);
|
|
};
|