-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Gruntfile.js
43 lines (38 loc) · 1.1 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = (grunt) => {
// Load all grunt tasks matching the ['grunt-*', '@*/grunt-*'] patterns
require("load-grunt-tasks")(grunt);
let srcFiles = ["Gruntfile.js", "src/**/*.js"];
grunt.initConfig({
uglify: {
options: {
mangle: { webkit: true },
compress: { webkit: true },
sourceMap: true,
//beautify: true,
},
dist: {
files: {
"resources/dist/deconz-editor.js": [
"src/editor/DeconzEditor.js",
"src/editor/DeconzMainEditor.js",
"src/editor/DeconzStatusTextEditor.js",
"src/editor/DeconzDeviceListEditor.js",
"src/editor/DeconzQueryEditor.js",
"src/editor/DeconzDeviceEditor.js",
"src/editor/DeconzSpecific*Editor.js",
"src/editor/DeconzListItem*Editor.js",
"src/editor/DeconzOutput*Editor.js",
"src/editor/DeconzCommand*Editor.js",
],
},
},
},
watch: {
js: {
files: srcFiles,
tasks: ["build"],
},
},
});
grunt.registerTask("build", ["uglify"]);
};