-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathGruntfile.js
More file actions
470 lines (462 loc) · 32.1 KB
/
Gruntfile.js
File metadata and controls
470 lines (462 loc) · 32.1 KB
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
name: 'kommonitor-client',
context_name: '<%= name %>##<%= pkg.version %>-<%= grunt.template.today("yyyymmddHHMM")%>',
kommonitor_client: [
'app/util/genericServices/kommonitorCacheHelperService/kommonitor-cache-helper-service.module.js',
'app/util/genericServices/kommonitorShareHelperService/kommonitor-share-helper-service.module.js',
'app/util/genericServices/kommonitorGlobalFilterHelperService/kommonitor-global-filter-helper-service.module.js',
'app/util/genericServices/kommonitorDataExchangeService/kommonitor-data-exchange-service.module.js',
'app/util/genericServices/kommonitorFavService/kommonitor-fav-service.module.js',
'app/util/genericServices/kommonitorDiagramHelperService/kommonitor-diagram-helper-service.module.js',
'app/util/genericServices/kommonitorImporterHelperService/kommonitor-importer-helper-service.module.js',
'app/util/genericServices/kommonitorScriptHelperService/kommonitor-script-helper-service.module.js',
'app/util/genericServices/kommonitorConfigStorageService/kommonitor-config-storage-service.module.js',
'app/util/genericServices/kommonitorMultiStepFormHelperService/kommonitor-multi-step-form-helper-service.module.js',
'app/util/genericServices/kommonitorKeycloakHelperService/kommonitor-keycloak-helper-service.module.js',
'app/util/genericServices/kommonitorDataGridHelperService/kommonitor-data-grid-helper-service.module.js',
'app/util/genericServices/kommonitorVisualStyleHelperService/kommonitor-visual-style-helper-service.module.js',
'app/util/genericServices/kommonitorElementVisibilityHelperService/kommonitor-element-visibility-helper-service.module.js',
'app/util/genericServices/kommonitorInfoLegendHelperService/kommonitor-info-legend-helper-service.module.js',
'app/util/genericServices/kommonitorBatchUpdateHelperService/kommonitor-batch-update-helper-service.module.js',
'app/util/genericServices/kommonitorFilterHelperService/kommonitor-filter-helper-service.module.js',
'app/util/genericServices/kommonitorGenericMapHelperService/kommonitor-generic-map-helper-service.module.js',
'app/util/genericServices/kommonitorSingleFeatureMapHelperService/kommonitor-single-feature-map-helper-service.module.js',
'app/util/genericServices/kommonitorReachabilityScenarioHelperService/kommonitor-reachability-scenario-helper-service.module.js',
'app/util/genericServices/kommonitorReachabilityMapHelperService/kommonitor-reachability-map-helper-service.module.js',
'app/util/genericServices/kommonitorReachabilityHelperService/kommonitor-reachability-helper-service.module.js',
'app/util/genericServices/kommonitorSpatialDataProcessorHelperService/kommonitor-spatial-data-processor-helper-service.module.js',
'app/util/genericServices/kommonitorToastHelperService/kommonitor-toast-helper-service.module.js',
'app/util/genericServices/kommonitorFileHelperService/kommonitor-file-helper-service.module.js',
'app/util/genericServices/kommonitorGeocoderHelperService/kommonitor-geocoder-helper-service.module.js',
'app/util/genericServices/kommonitorReachabilityCoverageReportsHelperService/kommonitor-reachability-coverage-reports-helper-service.module.js',
'app/util/genericServices/kommonitorLeafletScreenshotCacheHelperService/kommonitor-leaflet-screenshot-cache-helper-service.module.js',
'app/components/common/singleFeatureEdit/single-feature-edit.module.js',
'app/components/common/singleFeatureEdit/single-feature-edit.component.js',
'app/components/common/classificationMethodSelect/classification-method-select.module.js',
'app/components/common/classificationMethodSelect/classification-method-select.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorDataSetup/kommonitor-data-setup.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorDataSetup/kommonitor-data-setup.component.js',
'app/components/kommonitorAdmin/adminDashboardManagement/admin-dashboard-management.module.js',
'app/components/kommonitorAdmin/adminDashboardManagement/admin-dashboard-management.component.js',
'app/components/kommonitorAdmin/adminRoleExplanation/admin-role-explanation.module.js',
'app/components/kommonitorAdmin/adminRoleExplanation/admin-role-explanation.component.js',
'app/components/kommonitorAdmin/adminRoleManagement/admin-role-management.module.js',
'app/components/kommonitorAdmin/adminRoleManagement/admin-role-management.component.js',
'app/components/kommonitorAdmin/adminRoleManagement/roleAddModal/role-add-modal.module.js',
'app/components/kommonitorAdmin/adminRoleManagement/roleAddModal/role-add-modal.component.js',
'app/components/kommonitorAdmin/adminRoleManagement/roleEditMetadataModal/role-edit-metadata-modal.module.js',
'app/components/kommonitorAdmin/adminRoleManagement/roleEditMetadataModal/role-edit-metadata-modal.component.js',
'app/components/kommonitorAdmin/adminRoleManagement/roleEditGroupRightsModal/role-edit-group-rights-modal.module.js',
'app/components/kommonitorAdmin/adminRoleManagement/roleEditGroupRightsModal/role-edit-group-rights-modal.component.js',
'app/components/kommonitorAdmin/adminRoleManagement/roleDeleteModal/role-delete-modal.module.js',
'app/components/kommonitorAdmin/adminRoleManagement/roleDeleteModal/role-delete-modal.component.js',
'app/components/kommonitorAdmin/adminTopicsManagement/admin-topics-management.module.js',
'app/components/kommonitorAdmin/adminTopicsManagement/admin-topics-management.component.js',
'app/components/kommonitorAdmin/adminTopicsManagement/topicEditModal/topic-edit-modal.module.js',
'app/components/kommonitorAdmin/adminTopicsManagement/topicEditModal/topic-edit-modal.component.js',
'app/components/kommonitorAdmin/adminTopicsManagement/topicDeleteModal/topic-delete-modal.module.js',
'app/components/kommonitorAdmin/adminTopicsManagement/topicDeleteModal/topic-delete-modal.component.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/admin-spatial-units-management.module.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/admin-spatial-units-management.component.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitAddModal/spatial-unit-add-modal.module.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitAddModal/spatial-unit-add-modal.component.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitEditMetadataModal/spatial-unit-edit-metadata-modal.module.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitEditMetadataModal/spatial-unit-edit-metadata-modal.component.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitEditFeaturesModal/spatial-unit-edit-features-modal.module.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitEditFeaturesModal/spatial-unit-edit-features-modal.component.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitEditUserRolesModal/spatial-unit-edit-user-roles-modal.module.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitEditUserRolesModal/spatial-unit-edit-user-roles-modal.component.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitDeleteModal/spatial-unit-delete-modal.module.js',
'app/components/kommonitorAdmin/adminSpatialUnitsManagement/spatialUnitDeleteModal/spatial-unit-delete-modal.component.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/admin-indicators-management.module.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/admin-indicators-management.component.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorAddModal/indicator-add-modal.module.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorAddModal/indicator-add-modal.component.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorBatchUpdateModal/indicator-batch-update-modal.module.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorBatchUpdateModal/indicator-batch-update-modal.component.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorEditFeaturesModal/indicator-edit-features-modal.module.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorEditFeaturesModal/indicator-edit-features-modal.component.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorEditMetadataModal/indicator-edit-metadata-modal.module.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorEditMetadataModal/indicator-edit-metadata-modal.component.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorEditIndicatorSpatialUnitRolesModal/indicator-edit-indicator-spatial-unit-roles-modal.module.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorEditIndicatorSpatialUnitRolesModal/indicator-edit-indicator-spatial-unit-roles-modal.component.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorDeleteModal/indicator-delete-modal.module.js',
'app/components/kommonitorAdmin/adminIndicatorsManagement/indicatorDeleteModal/indicator-delete-modal.component.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/admin-georesources-management.module.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/admin-georesources-management.component.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceAddModal/georesource-add-modal.module.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceAddModal/georesource-add-modal.component.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceBatchUpdateModal/georesource-batch-update-modal.module.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceBatchUpdateModal/georesource-batch-update-modal.component.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceEditFeaturesModal/georesource-edit-features-modal.module.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceEditFeaturesModal/georesource-edit-features-modal.component.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceEditMetadataModal/georesource-edit-metadata-modal.module.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceEditMetadataModal/georesource-edit-metadata-modal.component.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceEditUserRolesModal/georesource-edit-user-roles-modal.module.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceEditUserRolesModal/georesource-edit-user-roles-modal.component.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceDeleteModal/georesource-delete-modal.module.js',
'app/components/kommonitorAdmin/adminGeoresourcesManagement/georesourceDeleteModal/georesource-delete-modal.component.js',
'app/components/kommonitorAdmin/adminMultiUseComponents/batchUpdateResultModal/batch-update-result-modal.module.js',
'app/components/kommonitorAdmin/adminMultiUseComponents/batchUpdateResultModal/batch-update-result-modal.component.js',
'app/components/kommonitorAdmin/adminMultiUseComponents/indicatorEditTimeseriesMapping/indicator-edit-timeseries-mapping.module.js',
'app/components/kommonitorAdmin/adminMultiUseComponents/indicatorEditTimeseriesMapping/indicator-edit-timeseries-mapping.component.js',
'app/components/kommonitorAdmin/adminScriptManagement/admin-script-management.module.js',
'app/components/kommonitorAdmin/adminScriptManagement/admin-script-management.component.js',
'app/components/kommonitorAdmin/adminScriptManagement/scriptAddModal/scriptDefinition/generic-script-ui/generic-script-ui.module.js',
'app/components/kommonitorAdmin/adminScriptManagement/scriptAddModal/scriptDefinition/generic-script-ui/generic-script-ui.component.js',
'app/components/kommonitorAdmin/adminScriptManagement/scriptAddModal/script-add-modal.module.js',
'app/components/kommonitorAdmin/adminScriptManagement/scriptAddModal/script-add-modal.component.js',
'app/components/kommonitorAdmin/adminScriptManagement/scriptDeleteModal/script-delete-modal.module.js',
'app/components/kommonitorAdmin/adminScriptManagement/scriptDeleteModal/script-delete-modal.component.js',
'app/components/kommonitorAdmin/adminScriptExecution/admin-script-execution.module.js',
'app/components/kommonitorAdmin/adminScriptExecution/admin-script-execution.component.js',
'app/components/kommonitorAdmin/adminConfig/adminAppConfig/admin-app-config.module.js',
'app/components/kommonitorAdmin/adminConfig/adminAppConfig/admin-app-config.component.js',
'app/components/kommonitorAdmin/adminConfig/adminControlsConfig/admin-controls-config.module.js',
'app/components/kommonitorAdmin/adminConfig/adminControlsConfig/admin-controls-config.component.js',
'app/components/kommonitorAdmin/adminConfig/adminFilterConfig/admin-filter-config.module.js',
'app/components/kommonitorAdmin/adminConfig/adminFilterConfig/admin-filter-config.component.js',
'app/components/kommonitorAdmin/adminConfig/adminFilterConfig/adminFilterAddModal/admin-filter-add-modal.module.js',
'app/components/kommonitorAdmin/adminConfig/adminFilterConfig/adminFilterAddModal/admin-filter-add-modal.component.js',
'app/components/kommonitorAdmin/adminConfig/adminFilterConfig/adminFilterEditModal/admin-filter-edit-modal.module.js',
'app/components/kommonitorAdmin/adminConfig/adminFilterConfig/adminFilterEditModal/admin-filter-edit-modal.component.js',
'app/components/kommonitorAdmin/adminConfig/adminKeycloakConfig/admin-keycloak-config.module.js',
'app/components/kommonitorAdmin/adminConfig/adminKeycloakConfig/admin-keycloak-config.component.js',
'app/components/kommonitorAdmin/kommonitor-admin.module.js',
'app/components/kommonitorAdmin/kommonitor-admin.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorIndividualIndicatorComputation/kommonitor-individual-indicator-computation.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorIndividualIndicatorComputation/kommonitor-individual-indicator-computation.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorDiagrams/kommonitor-diagrams.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorDiagrams/kommonitor-diagrams.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/indicatorRadar/indicator-radar.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/indicatorRadar/indicator-radar.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/regressionDiagram/regression-diagram.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/regressionDiagram/regression-diagram.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorFilter/kommonitor-filter.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorFilter/kommonitor-filter.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorBalance/kommonitor-balance.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorBalance/kommonitor-balance.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorClassification/kommonitor-classification.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorClassification/kommonitor-classification.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorLegend/kommonitor-legend.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorLegend/kommonitor-legend.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/reachabilityScenarioModal/reachabilityIndicatorStatistics/reachability-indicator-statistics.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/reachabilityScenarioModal/reachabilityIndicatorStatistics/reachability-indicator-statistics.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/reachabilityScenarioModal/reachabilityScenarioConfiguration/reachability-scenario-configuration.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/reachabilityScenarioModal/reachabilityScenarioConfiguration/reachability-scenario-configuration.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/reachabilityScenarioModal/reachabilityPoiInIso/reachability-poi-in-iso.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/reachabilityScenarioModal/reachabilityPoiInIso/reachability-poi-in-iso.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/reachabilityScenarioModal/reachability-scenario-modal.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/reachabilityScenarioModal/reachability-scenario-modal.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/kommonitor-reachability.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorReachability/kommonitor-reachability.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/poi/poi.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/poi/poi.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorDataImport/kommonitor-data-import.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorDataImport/kommonitor-data-import.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/poi/wmsModal/wms-modal.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/poi/wmsModal/wms-modal.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/poi/wfsModal/wfs-modal.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/poi/wfsModal/wfs-modal.component.js',
'app/components/kommonitorUserInterface/kommonitorMap/kommonitor-map.module.js',
'app/components/kommonitorUserInterface/kommonitorMap/kommonitor-map.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/versionInfo/version-info.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/versionInfo/version-info.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/infoModal/info-modal.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/infoModal/info-modal.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/spatialUnitNotificationModal/spatial-unit-notification-modal.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/spatialUnitNotificationModal/spatial-unit-notification-modal.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/feedbackModal/feedback-modal.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/feedbackModal/feedback-modal.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reporting-modal.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reporting-modal.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reportingWorkflowSelect/reporting-workflow-select.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reportingWorkflowSelect/reporting-workflow-select.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reportingTemplateSelect/reporting-template-select.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reportingTemplateSelect/reporting-template-select.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reportingOverview/reporting-overview.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reportingOverview/reporting-overview.component.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reportingIndicatorAdd/reporting-indicator-add.module.js',
'app/components/kommonitorUserInterface/kommonitorControls/reportingModal/reportingIndicatorAdd/reporting-indicator-add.component.js',
'app/components/kommonitorUserInterface/kommonitor-user-interface.module.js',
'app/components/kommonitorUserInterface/kommonitor-user-interface.component.js',
'app/app.js'
],
kommonitor_styles: [
'app/app.css',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorLegend/kommonitor-legend.css',
'app/components/common/classificationMethodSelect/classification-method-select.css',
'app/components/kommonitorUserInterface/kommonitorControls/kommonitorClassification/kommonitor-classification.css'
],
custom_styles: [
'app/kommonitor-custom.css'
],
copy_files: [
//the path prefix 'app/' will be set in the copy-command itself! Thus is omitted here.
'dependencies/**/*',
'kommonitor-script-resources/**/*',
'icons/**/*',
'logos/**/*',
'components/**/*.template.html',
'components/kommonitorUserInterface/kommonitorControls/poi/templates/*.html',
'components/kommonitorAdmin/adminScriptManagement/scriptAddModal/templates/*.html',
'config/**/*',
'favicon.ico'
],
// babel: {
// options: {
// sourceMap: true
// },
// dist: {
// files: [{
// expand: true,
// cwd: './app',
// src: '{,**/}*.js',
// dest: '.tmp/scripts',
// ext: '.es5.js'
// }]
// }
// },
babel: {
options: {
sourceMap: true,
presets: [
[
"env",
{
"targets": {
"browsers": [
"last 2 versions"
]
},
"forceAllTransforms": true // this line turns "let" into "var", etc
}
]
]
},
dist: {
files: {
"dist/kommonitor-client.es5.js": "dist/kommonitor-client.js"
}
}
},
clean: ["dist/"],
tags: {
options: {
scriptTemplate: '"{{ path }}",',
linkTemplate: '<link href="{{ path }}" rel="stylesheet" type="text/css"/>'
},
build_lib_scripts: {
options: {
openTag: '<!-- start lib script tags -->',
closeTag: '<!-- end lib script tags -->'
},
src: ['<%= lib_scripts %>'],
dest: 'app/index.html'
},
build_client_scripts: {
options: {
openTag: '<!-- start client script tags -->',
closeTag: '<!-- end client script tags -->'
},
src: ['<%= kommonitor_client %>'],
dest: 'app/index.html'
},
build_lib_styles: {
options: {
openTag: '<!-- start lib style tags -->',
closeTag: '<!-- end lib style tags -->'
},
src: ['<%= lib_styles %>'],
dest: 'app/index.html'
},
build_client_styles: {
options: {
openTag: '<!-- start client style tags -->',
closeTag: '<!-- end client style tags -->'
},
src: ['<%= kommonitor_styles %>'],
dest: 'app/index.html'
},
build_custom_styles: {
options: {
openTag: '<!-- start custom style tags -->',
closeTag: '<!-- end custom style tags -->'
},
src: ['<%= custom_styles %>'],
dest: 'app/index.html'
}
},
concat: {
// libs: {
// src: ['<%= lib_scripts %>'],
// dest: 'dist/js/deps.<%= name %>.min.js'
// },
kommonitor: {
src: '<%= kommonitor_client %>',
dest: 'dist/kommonitor-client.js'
},
styles: {
src: '<%= kommonitor_styles %>',
dest: 'dist/<%= name %>.css'
}
,
custom: {
src: '<%= custom_styles %>',
dest: 'dist/kommonitor-custom.css'
}
// libStyles: {
// src: '<%= lib_styles %>',
// dest: 'dist/css/deps.<%= name %>.css'
// }
},
uglify: {
options: {
banner: '/*! <%= name %> <%= grunt.template.today("yyyy-mm-dd HH:MM") %> */\n'
},
appJs: {
files: {
'dist/kommonitor-client.min.js': ['dist/kommonitor-client.es5.js']
}
}
},
cssmin: {
options: {
},
styles: {
files: {
'dist/<%= name %>.min.css': ['<%= concat.styles.dest %>']
}
},
// depStyles: {
// files: {
// 'dist/css/deps.<%= name %>.min.css': ['<%= concat.libStyles.dest %>']
// }
// }
},
copy: {
locals: {
files: [
{expand: true, flatten: false, cwd: 'app/', src: '<%= copy_files %>', dest: 'dist/'},
]
}
},
//lint the source files
jshint: {
files: ['gruntfile.js', 'app/util/**/*.js', 'app/components/**/*.js'],
options: {
globals: {
jQuery: true,
console: true,
module: true
}
}
},
processhtml: {
options: {
data: {
message: '<%= name %> - version <%= pkg.version %> - build at <%= grunt.template.today("yyyy-mm-dd HH:MM") %>'
}
},
index: {
files: {
'dist/index.html': ['app/index.html']
}
}
},
// watch: {
// less: {
// files: [ 'bower.json' ],
// tasks: [ 'exec:bower_install' ]
// },
// hint: {
// files: ['<%= jshint.files %>'],
// tasks: ['jshint']
// }
// },
// exec: {
// bower_install: {
// cmd: "bower install"
// }
// },
war: {
target: {
options: {
war_dist_folder: 'build/',
war_name: '<%= context_name %>',
webxml_welcome: 'index.html',
webxml_display_name: '<%= name %> - version <%= pkg.version %> - build at <%= grunt.template.today("yyyy-mm-dd HH:MM") %>',
webxml_mime_mapping: [
{
extension: 'xml',
mime_type: 'application/xml'
}]
},
files: [
{
expand: true,
cwd: 'dist/',
src: ['**'],
dest: ''
}
]
}
},
// 'modules-graph': {
// options: {
// externalDependenciesColor:'red'
// },
// files: {
// './dependency-graph.dot': ['app/app.js', 'app/util/**/*.js', 'app/components/**/*.js'],
// },
// },
// graphviz: {
// dependencies: {
// files: {
// 'dependencies-graph.png': 'dependencies-graph.dot'
// }
// },
// },
angular_architecture_graph: {
diagram: {
files: {
"./dependencyGraph_adminApp": ['app/components/kommonitorAdmin/**/*.js'], // admin app
"./dependencyGraph_mapApp": ['app/components/kommonitorUserInterface/**/*.js'], // map app
"./dependencyGraph_komMonitorMapComponent": ['app/components/kommonitorUserInterface/kommonitorMap/**/*.js'] // map app
// "architecture": [
// "<%= projectConfig.app %>/<%= projectConfig.project %>/**/*.js"
// ]
}
}
}
});
// grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-uglify-es');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-script-link-tags');
grunt.loadNpmTasks('grunt-processhtml');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-war');
grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-angular-modules-graph');
grunt.loadNpmTasks('grunt-graphviz');
grunt.loadNpmTasks('grunt-angular-architecture-graph');
// grunt.registerTask('generateDependenciesGraph', ['modules-graph', 'graphviz']);
grunt.registerTask('generateDependenciesGraph', ['angular_architecture_graph']);
grunt.registerTask('test', ['jshint']);
// grunt.registerTask('copy-all', ['copy:locals', 'copy:css', 'copy:fonts']);
// grunt.registerTask('copy-css', ['copy:css']);
// grunt.registerTask('copy-fonts', ['copy:fonts']);
grunt.registerTask('env-build', ['tags']);
grunt.registerTask('default', ['clean', 'concat', 'babel', 'uglify', 'cssmin', 'copy', 'processhtml']);
// grunt.registerTask('buildDebugScript', ['clean', 'concat']);
grunt.registerTask('buildWar', ['default', 'war']);
// grunt.registerTask('buildWar', ['test', 'default', 'war']);
};