forked from ProjectSidewalk/SidewalkWebpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
171 lines (166 loc) · 7.85 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_svl: {
src: [
'public/javascripts/SVLabel/lib/gsv/GSVPano.js',
'public/javascripts/SVLabel/lib/gsv/GSVPanoPointCloud.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/util/*.js',
'public/javascripts/SVLabel/src/SVLabel/zoom/*.js',
'public/javascripts/SVLabel/src/SVLabel/*.js'
],
dest: 'public/javascripts/SVLabel/build/SVLabel.js'
},
dist_progress: {
src: [
'public/javascripts/Progress/src/*.js'
],
dest: 'public/javascripts/Progress/build/Progress.js'
},
dist_admin: {
src: [
'public/javascripts/Admin/src/*.js'
],
dest: 'public/javascripts/Admin/build/Admin.js'
},
dist_help: {
src: [
'public/javascripts/Help/src/*.js'
],
dest: 'public/javascripts/Help/build/help.js'
},
validation_svl: {
src: [
'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/SVValidate/src/*.js',
'public/javascripts/SVLabel/src/SVLabel/Panomarker.js',
'public/javascripts/SVLabel/src/SVLabel/util/UtilitiesSidewalk.js'
],
dest: 'public/javascripts/SVValidate/build/SVValidate.js'
}
},
uglify: {
build: {
src: 'public/javascripts/SVLabel/build/SVLabel.js',
dest: 'public/javascripts/SVLabel/build/SVLabel.min.js'
}
},
concat_css: {
dist_all: {
src: [
'public/javascripts/SVLabel/css/svl.css',
'public/javascripts/SVLabel/css/*.css'
],
dest: 'public/javascripts/SVLabel/build/SVLabel.css'
},
validation_all: {
src: [
'public/javascripts/SVValidate/css/*.css'
],
dest: 'public/javascripts/SVValidate/build/SVValidate.css'
}
},
jasmine: {
src: [
'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/util/*.js',
'public/javascripts/SVLabel/src/SVLabel/zoom/*.js',
'public/javascripts/SVLabel/src/SVLabel/*.js'
],
options: {
specs: [
'public/javascripts/SVLabel/spec/SVLabel/*.js',
'public/javascripts/SVLabel/spec/SVLabel/**/*.js'
],
helpers: 'public/javascripts/SVLabel/spec/SpecHelper.js',
vendor: [
'public/javascripts/SVLabel/lib/jquery-2.1.4.min.js',
'public/javascripts/SVLabel/lib/d3.v3.js',
'public/javascripts/SVLabel/lib/turf.min.js',
'public/javascripts/SVLabel/lib/gsv/*.js',
'public/javascripts/SVLabel/lib/kinetic-v4.3.3.min.js'
]
}
},
jsdoc : {
dist : {
src: 'public/javascripts/SVLabel/src/SVLabel/*.js'
}
},
watch : {
scripts: {
files: [
'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'
],
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-uglify');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jasmine');
// 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_svl', 'concat:dist_progress', 'concat:dist_admin', 'concat:validation_svl']);
};