This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
gruntfile.js
66 lines (64 loc) · 2.16 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = function(grunt){
grunt.initConfig({
watch: {
default: {
options: {
spawn: false,
interrupt: true
},
files: ["settings_edit.html", "js/settings_edit.js", "css/settings.css"],
tasks: ["vulcanize"]
},
editNotification: {
options: {
spawn: false,
interrupt: true
},
files: ["pages/edit-notification_edit.html", "pages/edit-notification_edit.js", "pages/edit-notification.css"],
tasks: ["vulcanize"]
},
uploadFileTemporary: {
options: {
spawn: false,
interrupt: true
},
files: ["pages/upload-file_edit.html", "pages/upload-file_edit.js", "pages/upload-file.css"],
tasks: ["vulcanize"]
}
},
vulcanize: {
default: {
options: {
inlineCss: false,
csp: "js/settings.js"
},
files: {
"settings.html": "settings_edit.html"
}
},
editNotification: {
options: {
inlineCss: false,
csp: "edit-notification.js"
},
files: {
"pages/edit-notification.html": "pages/edit-notification_edit.html"
}
},
uploadFileTemporary: {
options: {
inlineCss: false,
csp: "upload-file.js"
},
files: {
"pages/upload-file.html": "pages/upload-file_edit.html"
}
}
}
});
grunt.loadNpmTasks("grunt-vulcanize");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.registerTask("default", ["vulcanize", "watch"]);
grunt.registerTask("editNotification", ["vulcanize", "watch"]);
grunt.registerTask("uploadFileTemporary", ["vulcanize", "watch"]);
};