-
Notifications
You must be signed in to change notification settings - Fork 25
/
Gruntfile.js
171 lines (167 loc) · 8.12 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
module.exports = function(grunt) {
// 1. All configuration goes here
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
dist_audit: {
src: [
'public/javascripts/SVLabel/src/SVLabel/*.js',
'public/javascripts/SVLabel/src/SVLabel/alert/*.js',
'public/javascripts/SVLabel/src/SVLabel/canvas/*.js',
'public/javascripts/SVLabel/src/SVLabel/data/*.js',
'public/javascripts/SVLabel/src/SVLabel/game/*.js',
'public/javascripts/SVLabel/src/SVLabel/keyboard/*.js',
'public/javascripts/SVLabel/src/SVLabel/label/*.js',
'public/javascripts/SVLabel/src/SVLabel/menu/*.js',
'public/javascripts/SVLabel/src/SVLabel/mission/*.js',
'public/javascripts/SVLabel/src/SVLabel/modal/*.js',
'public/javascripts/SVLabel/src/SVLabel/navigation/*.js',
'public/javascripts/SVLabel/src/SVLabel/neighborhood/*.js',
'public/javascripts/SVLabel/src/SVLabel/onboarding/*.js',
'public/javascripts/SVLabel/src/SVLabel/panorama/*.js',
'public/javascripts/SVLabel/src/SVLabel/ribbon/*.js',
'public/javascripts/SVLabel/src/SVLabel/status/*.js',
'public/javascripts/SVLabel/src/SVLabel/task/*.js',
'public/javascripts/SVLabel/src/SVLabel/user/*.js',
'public/javascripts/SVLabel/src/SVLabel/zoom/*.js',
'public/javascripts/common/Panomarker.js',
'public/javascripts/common/Utilities.js',
'public/javascripts/common/UtilitiesMath.js',
'public/javascripts/common/UtilitiesPanomarker.js',
'public/javascripts/common/UtilitiesSidewalk.js',
'public/javascripts/common/GSVInfoPopover.js',
'public/javascripts/common/SpeedLimit.js',
'public/javascripts/common/MissionStartTutorial.js'
],
dest: 'public/javascripts/SVLabel/build/SVLabel.js'
},
dist_progress: {
src: [
'public/javascripts/Admin/src/*.js',
'public/javascripts/SVValidate/src/util/*.js',
'public/javascripts/common/Panomarker.js',
'public/javascripts/Progress/src/*.js',
'public/javascripts/common/Utilities.js',
'public/javascripts/common/UtilitiesSidewalk.js',
],
dest: 'public/javascripts/Progress/build/Progress.js'
},
dist_admin: {
src: [
'public/javascripts/Admin/src/*.js',
'public/javascripts/common/Utilities.js',
'public/javascripts/common/UtilitiesMath.js',
'public/javascripts/common/UtilitiesSidewalk.js',
'public/javascripts/common/Panomarker.js',
'public/javascripts/common/UtilitiesPanomarker.js'
],
dest: 'public/javascripts/Admin/build/Admin.js'
},
dist_help: {
src: [
'public/javascripts/Help/src/*.js'
],
dest: 'public/javascripts/Help/build/help.js'
},
dist_validate: {
src: [
'public/javascripts/SVValidate/src/*.js',
'public/javascripts/SVValidate/src/data/*.js',
'public/javascripts/SVValidate/src/keyboard/*.js',
'public/javascripts/SVValidate/src/label/*.js',
'public/javascripts/SVValidate/src/menu/*.js',
'public/javascripts/SVValidate/src/mission/*.js',
'public/javascripts/SVValidate/src/modal/*.js',
'public/javascripts/SVValidate/src/panorama/*.js',
'public/javascripts/SVValidate/src/status/*.js',
'public/javascripts/SVValidate/src/user/*.js',
'public/javascripts/SVValidate/src/util/*.js',
'public/javascripts/SVValidate/src/zoom/*.js',
'public/javascripts/common/Panomarker.js',
'public/javascripts/common/UtilitiesSidewalk.js',
'public/javascripts/common/GSVInfoPopover.js',
'public/javascripts/common/SpeedLimit.js',
'public/javascripts/common/MissionStartTutorial.js'
],
dest: 'public/javascripts/SVValidate/build/SVValidate.js'
},
dist_gallery: {
src: [
'public/javascripts/Gallery/src/cards/*.js',
'public/javascripts/Gallery/src/data/*.js',
'public/javascripts/Gallery/src/filter/*.js',
'public/javascripts/Gallery/src/keyboard/*.js',
'public/javascripts/Gallery/src/validation/*.js',
'public/javascripts/Gallery/src/displays/*.js',
'public/javascripts/Gallery/src/expandedview/*.js',
'public/javascripts/Gallery/src/*.js',
'public/javascripts/common/Panomarker.js',
'public/javascripts/common/GSVInfoPopover.js'
],
dest: 'public/javascripts/Gallery/build/Gallery.js'
},
dist_map: {
src: [
'public/javascripts/PSMap/*.js',
],
dest: 'public/javascripts/PSMap/build/PSMap.js'
}
},
concat_css: {
dist_audit: {
src: [
'public/javascripts/SVLabel/css/*.css',
'public/stylesheets/common/missionStartTutorial.css'
],
dest: 'public/javascripts/SVLabel/build/SVLabel.css'
},
dist_validate: {
src: [
'public/javascripts/SVValidate/css/*.css',
'public/stylesheets/common/missionStartTutorial.css'
],
dest: 'public/javascripts/SVValidate/build/SVValidate.css'
},
gallery_all: {
src: [
'public/javascripts/Gallery/css/*.css'
],
dest: 'public/javascripts/Gallery/build/Gallery.css'
}
},
watch : {
scripts: {
files: [
'public/javascripts/common/*.js',
'public/javascripts/SVLabel/src/**/*.js',
'public/javascripts/SVLabel/css/*.css',
'public/javascripts/Progress/src/**/*.js',
'public/javascripts/Admin/src/**/*.js',
'public/javascripts/Help/src/*.js',
'public/javascripts/SVValidate/src/*.js',
'public/javascripts/SVValidate/src/**/*.js',
'public/javascripts/SVValidate/css/*.css',
'public/javascripts/Gallery/src/*.js',
'public/javascripts/Gallery/src/**/*.js',
'public/javascripts/Gallery/css/*.css',
'public/javascripts/PSMap/*.js',
'public/stylesheets/common/*.css'
],
tasks: [
'concat',
'concat_css'
],
options: {
interrupt: true
}
}
}
});
// 3. Where we tell Grunt we plan to use this plug-in.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-concat-css');
grunt.loadNpmTasks('grunt-contrib-watch');
// 4. Where we tell Grunt what to do when we type "grunt" into the terminal.
grunt.registerTask('default', ['concat', 'concat_css']);
grunt.registerTask('dist', ['concat:dist_audit', 'concat:dist_progress', 'concat:dist_admin', 'concat:dist_validate', 'concat:dist_gallery']);
};