-
Notifications
You must be signed in to change notification settings - Fork 14
/
Gruntfile.js
496 lines (439 loc) · 24.6 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
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
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
const generateStaticFile = require('./StaticFileCreator.js');
const { compileEJSModule, extractEJSModuleMessages, mergeLanguageFiles } = require('./EJSModuleGenerator.js');
const { testCDTSFileLinks } = require('./TestLinks.js');
const { writeFilesSRIHashes, getSRIHashes } = require('./SRIUtilities.js');
const { downloadExternalResources } = require('./ExternalResGatherer.js');
/// ************************************************************
/// Optional command line options:
/// --cdts_version=<version> (e.g. --cdts_version=v4_0_40)
/// --cdts_samples_cdnenv=<environment name> (e.g. --cdts_samples_cdnenv=esdcprod)
///
/// ************************************************************
module.exports = function run(grunt) {
//---[ Line ending check (in copy and concat tasks)
//---[ (This helps making sure files have consistent lines endings no matter the build platform,
//---[ consistency is required to avoid problems with Sub-Resource Integrity)
function cdtsCheckLineEndings(content, srcpath) {
const lcSrcPath = srcpath.toLowerCase();
//Only check files applicable to Sub-Resource Integrity
if (lcSrcPath.endsWith('.js') || lcSrcPath.endsWith('.css')) {
if (content.includes('\r')) {
throw Error(`Found CR caracter in [${srcpath}]! Files must not contain Windows line-endings.`);
}
}
return content;
}
//---[ Content replacing function (in copy and concat tasks)
//(replaces CDTS version mentions in URLs and optionally environment in sample pages.)
function cdtsContentReplace(content, srcpath) {
const newVersionName = grunt.config('project.versionName');
const newEnvironment = grunt.option('cdts_samples_cdnenv') || null;
cdtsCheckLineEndings(content, srcpath);
//Replace version...
let vtr = content.replace(/\/v[0-9]+_[0-9]+_[0-9]+\//g, `/${newVersionName}/`); //replaces '/vX_X_X/' where X can be any number
//Replace environment in sample pages...
if (newEnvironment && (srcpath.includes('/samples/') || srcpath.includes('/appTop/'))) {
vtr = vtr.replace(/"cdnEnv": "esdcprod"/g, `"cdnEnv": "${newEnvironment}"`);
vtr = vtr.replace(/"cdnEnv": "prod"/g, `"cdnEnv": "${newEnvironment}"`);
vtr = vtr.replace(/cdnEnv: "esdcprod"/g, `cdnEnv: "${newEnvironment}"`);
vtr = vtr.replace(/cdnEnv: "prod"/g, `cdnEnv: "${newEnvironment}"`);
}
return vtr;
}
//---[ CSS file path replacing function (in copy tasks)
//(replaces the path found in the css files in the run folders)
function cdtsCSSPathReplace(content, srcpath, targetpath) {
const path = require('path');
const newVersionName = grunt.config('project.versionName');
const urlRegex = /(?<=url\(").*(?="\))/g;
let vtr = content;
if (srcpath.endsWith('.css')) {
//Files for the CDTS Canada.ca release
if (targetpath.includes('/etc/designs/canada/')) {
vtr = vtr.replaceAll(urlRegex, (item) => path.normalize(`../../${newVersionName}/cdts/${item}`).replaceAll('\\', '/'));
}
//Files for the CDTS Azure cloud release
else if (targetpath.includes('/rn/cls/WET/')) {
if (srcpath.includes('/gcweb/')) vtr = vtr.replaceAll(urlRegex, (item) => path.normalize(`../../../../../app/cls/WET/gcweb/${newVersionName}/cdts/${item}`).replaceAll('\\', '/'));
if (srcpath.includes('/gcintranet/')) vtr = vtr.replaceAll(urlRegex, (item) => path.normalize(`../../../../../app/cls/WET/gcintranet/${newVersionName}/cdts/${item}`).replaceAll('\\', '/'));
}
}
return vtr;
}
//---[ Grunt Modules
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-cssmin'); //could consider minifying cdts/*.css
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-eslint');
//---[ Task Definitions
grunt.registerTask('default', 'Default task (performs a dev build)', ['build']);
grunt.registerTask('build', 'Run non-minified build', ['clean', 'copy-public', 'build-ejs', 'genstatic', 'copy-run']);
grunt.registerTask('copy-public', 'Copy all public files', ['copy:wet', 'copy:gcweb-public', 'copy:gcintranet-public', 'copy:global-public']);
grunt.registerTask('copy-test', 'Copy all test files', ['copy:gcweb-test', 'copy:gcintranet-test']);
grunt.registerTask('copy-run', 'Copy all run files', ['copy:rn-cloud', 'copy:rn-canada']);
grunt.registerTask('build-ejs', 'Produce Javascript from EJS templates', ['eslint', 'i18n-ejs', 'sri-internal-hashes', 'compile-ejs', 'concat', 'sri-public-hashes']);
grunt.registerTask('build-prod', 'Run production build', ['build', 'minify', 'sri-public-hashes']);
grunt.registerTask('build-nowet', 'Run build without clean:target, copy-wet and genstatic (for convenience because of McAfee performance)', ['nowet-warning', 'clean:temp', 'copy:gcweb-public', 'copy:gcintranet-public', 'copy:global-public', 'build-ejs']);
grunt.registerTask('minify', 'Minify target files', ['uglify']);
grunt.registerTask('serve', 'Start development web server', ['build', 'copy-test', 'connect', 'watch']);
grunt.registerTask('serve-nobuild', 'Start development web server on current build (USE WITH CAUTION, only use with known state of directories dist and tmp)', ['nobuild-warning', 'connect', 'watch']);
grunt.registerTask('test', 'Start dev web server and run tests', ['setenv', 'build-prod', 'copy-test', 'connect', 'webdriver:maintests', 'test-links']);
grunt.registerTask('test-nobuild', 'Run tests on current build (USE WITH CAUTION, only use with known state of directories dist and tmp)', ['nobuild-warning', 'setenv', 'copy-test', 'connect', 'webdriver:maintests', 'test-links']);
grunt.registerTask('nobuild-warning', 'Issue a warning on screen about using serve-nobuild', () => {
grunt.log.writeln('***** WARNING ***** When using "serve-nobuild" or "test-nobuild", you have to be sure that the directories "dist" and "tmp" are in a known good state (as they would be after a build)');
grunt.log.writeln(' If ./dist and ./tmp are not consistent with a proper build, you may experience unexpected runtime errors.');
});
grunt.registerTask('nowet-warning', 'Issue a warning on screen about using build-nowet', () => {
grunt.log.writeln('***** WARNING ***** When using "build-nowet", the "dist" directory is not cleaned, the WET files are not copied to "dist" and the static files are not re-generated (as they would be with a build).');
grunt.log.writeln(' "build-nowet" IS FOR CONVENIENCE/TROUBLESHOOTING ONLY AND MUST NOT BE USED IN THE CONTEXT OF A CI/CD PIPELINE.');
});
grunt.registerTask('setenv', 'Set environment variable from grunt configuration', function (target) { //eslint-disable-line
if (!target || target === 'test') {
process.env.CDTS_TEST_VERSION_NAME = grunt.config('project.versionName');
}
});
//---[ Can get called with 'compile-ejs', 'compile-ejs:gcweb' or 'compile-ejs:gcintranet'
grunt.registerTask('compile-ejs', 'Compile EJS templates', async function (target) { //eslint-disable-line
const fs = require('fs');
const projectTempDir = grunt.config('project.temp');
const done = this.async();
try {
//load SRI hash map
const sriHashesMap = JSON.parse(await fs.promises.readFile(`${grunt.config('project.temp')}/SRIFileHashes.json`, 'utf8'));
const themes = ['gcweb', 'gcintranet'];
for (let i = 0; i < themes.length; i++) {
const themeName = themes[i]; //themes.forEach((themeName) => {
//(if target specified, only run for that one)
if ((!target) || (themeName === target)) {
await compileEJSModule(`./src/${themeName}`, `${projectTempDir}/${themeName}/wet-en.js`, 'en', sriHashesMap, false); // eslint-disable-line no-await-in-loop
await compileEJSModule(`./src/${themeName}`, `${projectTempDir}/${themeName}/wet-fr.js`, 'fr', sriHashesMap, false); // eslint-disable-line no-await-in-loop
//NOTE: Following is from the conversion from SOY to EJS, kept as comment for posterity
// (requires the "xmldom" and "xpath" npm packages to be installed.)
//const {convertXliffToJSON} = require('./EJSModuleGenerator.js');
//await convertXliffToJSON(`./src/${themeName}/wet-messages.en.xlf`, `./src/${themeName}/wet-messages-conv.en.json`);
//await convertXliffToJSON(`./src/${themeName}/wet-messages.fr.xlf`, `./src/${themeName}/wet-messages-conv.fr.json`);
}
}
done(true); //return true;
}
catch (error) {
console.error('Error occured in compile-ejs: ', error);
done(false);
}
});
grunt.registerTask('sri-internal-hashes', 'Generate SRI hashes of css and js files for internal use', function () { //eslint-disable-line
writeFilesSRIHashes('sri-fileslist.json', `${grunt.config('project.temp')}/SRIFileHashes.json`);
return true;
});
//---[ Can get called with 'sri-public-hashes', 'sri-public-hashes:gcweb' or 'sri-public-hashes:gcintranet'
grunt.registerTask('sri-public-hashes', 'Generate SRI hashes of css and js files for public use', function (target) { //eslint-disable-line
const fs = require('fs');
['gcweb', 'gcintranet'].forEach((themeName) => {
//(if target specified, only run for that one)
if ((!target) || (themeName === target)) {
const pathPrefix = `${grunt.config('project.target')}/${themeName}/${grunt.config('project.versionName')}/cdts/`;
const targetFileName = `${pathPrefix}SRI-INFO.md`;
const targetJsonFileName = `${pathPrefix}SRI-INFO.json`;
const sourceFiles = [
`${pathPrefix}compiled/wet-en.js`,
`${pathPrefix}compiled/wet-fr.js`,
`${pathPrefix}cdts-styles.css`,
`${pathPrefix}cdts-app-styles.css`, //gcweb only
`${pathPrefix}cdts-splash-styles.css`,
`${pathPrefix}cdts-eccc-styles.css`, //gcintranet only
`${pathPrefix}cdts-esdc-styles.css`, //gcintranet only
`${pathPrefix}cdts-labour-styles.css`, //gcintranet only
];
const hashesMap = getSRIHashes(sourceFiles);
const outputObject = { cdtsPath: pathPrefix.replace(grunt.config('project.target') + '/', '') };
let fileContents = `# Subresource Integrity (SRI)\n\nHash values for ${outputObject.cdtsPath}:\n`;
Object.keys(hashesMap).forEach((key) => {
fileContents += `- ${key.replace(pathPrefix, '')}: \`${hashesMap[key]}\`\n`;
outputObject[key.replace(pathPrefix, '')] = hashesMap[key];
});
console.log(`Writing public SRI info to: ${targetFileName}`);
fs.writeFileSync(targetFileName, fileContents, { encoding: 'utf8' });
console.log(`Writing public SRI info to: ${targetJsonFileName}`);
fs.writeFileSync(targetJsonFileName, JSON.stringify(outputObject), { encoding: 'utf8' });
}
});
return true;
});
//---[ Can get called with 'i18n-ejs', 'i18n-ejs:gcweb' or 'i18n-ejs:gcintranet'
grunt.registerTask('i18n-ejs', 'Internationalize EJS templates', async function (target) { //eslint-disable-line
const done = this.async();
try {
const themes = ['gcweb', 'gcintranet'];
for (let i = 0; i < themes.length; i++) {
const themeName = themes[i]; //themes.forEach((themeName) => {
//(if target specified, only run for that one)
if ((!target) || (themeName === target)) {
await extractEJSModuleMessages(`./src/${themeName}`, 'en'); // eslint-disable-line no-await-in-loop
await mergeLanguageFiles(`./src/${themeName}`, 'en', ['fr'], false, true); // eslint-disable-line no-await-in-loop
}
}
done(true); //return true;
}
catch (error) {
console.error('Error occured in i18n-ejs: ', error);
done(false);
}
});
grunt.registerTask('test-links', 'Test all links in files in the src and public (minus the WET folder) directories', function (target) { //eslint-disable-line
if (!target || target === 'test') {
const done = this.async();
testCDTSFileLinks().then(done).catch(() => done(false));
}
});
//---[ Can get called with 'genstatic', 'genstatic:gcweb' or 'genstatic:gcintranet'
grunt.registerTask('genstatic', 'Generate static fallback files.', function (target) { //eslint-disable-line
const fs = require('fs');
const path = require('path');
const definitionPath = './src/fallbackFileDefinitions';
grunt.log.writeln('--- Generating static fallback files...', target || '<all>');
['gcweb', 'gcintranet'].forEach((themeName) => {
//(if target specified, only run for that one)
if ((!target) || (themeName === target)) {
const files = fs.readdirSync(definitionPath);
grunt.log.writeln(`--- ${themeName}: Processing ${files.length} definition file(s)...`);
files.forEach((fallbackFile) => {
const fallbackFileDefPath = `${definitionPath}/${fallbackFile}`;
const getStaticFileDefinition = require(fallbackFileDefPath);
generateStaticFile(grunt, themeName, path.basename(fallbackFile, path.extname(fallbackFile)), getStaticFileDefinition);
});
}
});
return true;
});
grunt.registerTask('update-extfiles', 'Update external files (menus, footer) by downloading them from their source web sites.', function (target) { //eslint-disable-line
if (!target || target === 'all') {
const done = this.async();
downloadExternalResources().then(done).catch(() => done(false));
}
});
grunt.registerMultiTask('webdriver', 'run wdio test runner', async function (target) { //eslint-disable-line
const done = this.async();
try {
//const Launcher = require('@wdio/cli').default; //"require" no longer supported for webdriver v8, switching to using "dynamic import"
const Launcher = (await import('@wdio/cli')).Launcher;
if (typeof this.data.configFile !== 'string') {
grunt.log.error('You need to define "configFile" property with the path to your wdio.conf.js')
return done(false);
}
const wdio = new Launcher(this.data.configFile, this.data);
grunt.log.debug(`spawn wdio with these attributes:\n${JSON.stringify(this.data, null, 2)}`)
const returnCode = await wdio.run();
grunt.log.debug(`wdio testrunner finished with exit code ${returnCode}`)
return done(returnCode === 0);
}
catch (error) {
console.error('Error occured launching webdriver: ', error);
done(false);
}
});
//---[ Configuration
grunt.util.linefeed = '\n';
grunt.initConfig({
//---[ Global Configuration Properties
project: {
pkg: grunt.file.readJSON('package.json'),
versionName: grunt.option('cdts_version') || 'v<%= project.pkg.version.replace(/\\./g, "_")%>',
target: './dist/app/cls/WET',
targetCloud: './dist/rn/cls/WET',
targetCanada: './dist/etc/designs/canada/cdts/gcweb/rn/cdts',
temp: './tmp',
banner: '/*!\n * Centrally Deployed Templates Solution (CDTS) / Solution de gabarits à déploiement centralisé (SGDC)\n' +
' * Version <%= project.pkg.version %> - <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %>\n *\n */',
},
clean: {
target: '<%= project.target %>',
temp: '<%= project.temp %>',
},
copy: {
options: {
noProcess: ['**/*.{png,gif,jpg,jpeg,eot,otf,ttf,woff,woff2,ico,svg}'], //do NOT put binary files (and SVGs) through the process functions otherwise they get corrupted
},
wet: {
files: [
{ cwd: 'public/wet', src: ['**'], dest: '<%= project.target %>/gcweb/<%= project.versionName %>', expand: true },
{ cwd: 'public/wet', src: ['**'], dest: '<%= project.target %>/gcintranet/<%= project.versionName %>', expand: true },
],
options: {
process: cdtsCheckLineEndings,
},
},
'gcweb-public': {
files: [
{ cwd: 'public/gcweb', src: ['**'], dest: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts', expand: true },
{ cwd: 'public/common', src: ['**'], dest: '<%= project.target %>/gcweb/<%= project.versionName %>', expand: true },
],
options: {
process: cdtsContentReplace,
},
},
'gcintranet-public': {
files: [
{ cwd: 'public/gcintranet', src: ['**'], dest: '<%= project.target %>/gcintranet/<%= project.versionName %>/cdts', expand: true },
{ cwd: 'public/common', src: ['**'], dest: '<%= project.target %>/gcintranet/<%= project.versionName %>', expand: true },
],
options: {
process: cdtsContentReplace,
},
},
'global-public': {
files: [
{ cwd: 'public/global', src: ['**'], dest: '<%= project.target %>/global', expand: true }
],
options: {
process: cdtsCheckLineEndings,
},
},
'rn-cloud': {
files: [
{ cwd: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts/compiled', src: ['**'], dest: '<%= project.targetCloud %>/gcweb/cdts/compiled', expand: true },
{ cwd: '<%= project.target %>/gcintranet/<%= project.versionName %>/cdts/compiled', src: ['**'], dest: '<%= project.targetCloud %>/gcintranet/cdts/compiled', expand: true },
{ cwd: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts', src: ['cdts-*.css'], dest: '<%= project.targetCloud %>/gcweb/cdts', expand: true },
{ cwd: '<%= project.target %>/gcintranet/<%= project.versionName %>/cdts', src: ['cdts-*.css'], dest: '<%= project.targetCloud %>/gcintranet/cdts', expand: true },
],
options: {
process: cdtsCSSPathReplace,
},
},
'rn-canada': {
files: [
{ cwd: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts/compiled', src: ['**'], dest: '<%= project.targetCanada %>/compiled', expand: true },
{ cwd: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts', src: ['cdts-*.css'], dest: '<%= project.targetCanada %>', expand: true },
],
options: {
process: cdtsCSSPathReplace,
},
},
'gcweb-test': {
files: [
{ cwd: 'test/html/gcweb', src: ['**'], dest: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts/test', expand: true }
],
options: {
process: cdtsContentReplace,
},
},
'gcintranet-test': {
files: [
{ cwd: 'test/html/gcintranet', src: ['**'], dest: '<%= project.target %>/gcintranet/<%= project.versionName %>/cdts/test', expand: true }
],
options: {
process: cdtsContentReplace,
},
},
},
eslint: {
target: ['*.js', 'src', 'public'],
options: {
overrideConfig: {
},
},
},
concat: {
options: {
banner: '<%= project.banner %>',
stripBanners: false,
process: cdtsContentReplace,
},
'gcweb-en': {
src: ['<%= project.temp %>/gcweb/wet-en.js', './src/common/*.js', './src/common-footer/*.js'],
dest: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts/compiled/wet-en.js',
},
'gcweb-fr': {
src: ['<%= project.temp %>/gcweb/wet-fr.js', './src/common/*.js', './src/common-footer/*.js'],
dest: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts/compiled/wet-fr.js',
},
'gcintranet-en': {
src: ['<%= project.temp %>/gcintranet/wet-en.js', './src/common/*.js', './src/common-footer/*.js'],
dest: '<%= project.target %>/gcintranet/<%= project.versionName %>/cdts/compiled/wet-en.js',
},
'gcintranet-fr': {
src: ['<%= project.temp %>/gcintranet/wet-fr.js', './src/common/*.js', './src/common-footer/*.js'],
dest: '<%= project.target %>/gcintranet/<%= project.versionName %>/cdts/compiled/wet-fr.js',
},
},
uglify: {
options: {
sourceMap: true,
output: { comments: false },
banner: '<%= project.banner %>'
},
gcweb: {
cwd: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts/compiled',
src: ['wet-en.js', 'wet-fr.js'],
dest: '<%= project.target %>/gcweb/<%= project.versionName %>/cdts/compiled',
ext: '.js',
expand: true,
},
gcintranet: {
cwd: '<%= project.target %>/gcintranet/<%= project.versionName %>/cdts/compiled',
src: ['wet-en.js', 'wet-fr.js'],
dest: '<%= project.target %>/gcintranet/<%= project.versionName %>/cdts/compiled',
ext: '.js',
expand: true,
},
},
connect: {
server: {
options: {
port: 8080,
base: './dist',
},
},
},
watch: {
options: {
spawn: true,
interrupt: false,
},
'gcweb-public': {
files: ['./public/gcweb/**', './public/common/**'],
tasks: ['copy:gcweb-public'],
},
'gcintranet-public': {
files: ['./public/gcintranet/**', './public/common/**'],
tasks: ['copy:gcintranet-public'],
},
'global-public': {
files: ['./public/global/**'],
tasks: ['copy:global-public'],
},
'gcweb-test': {
files: ['./test/html/gcweb/**'],
tasks: ['copy:gcweb-test'],
},
'gcintranet-test': {
files: ['./test/html/gcintranet/**'],
tasks: ['copy:gcintranet-test'],
},
'gcweb-ejs': {
files: ['./src/gcweb/*.ejs', './src/common/*.js'],
tasks: ['i18n-ejs:gcweb', 'compile-ejs:gcweb', 'concat:gcweb-en', 'concat:gcweb-fr', 'genstatic:gcweb'],
},
'gcweb-fr-xlf': {
files: ['./src/gcweb/wet-messages.fr.json'],
tasks: ['compile-ejs:gcweb', 'concat:gcweb-fr', 'genstatic:gcweb'],
},
'gcintranet-ejs': {
files: ['./src/gcintranet/*.ejs', './src/common/*.js'],
tasks: ['i18n-ejs:gcintranet', 'compile-ejs:gcintranet', 'concat:gcintranet-en', 'concat:gcintranet-fr', 'genstatic:gcintranet'],
},
'gcintranet-fr-xlf': {
files: ['./src/gcintranet/wet-messages.fr.json'],
tasks: ['compile-ejs:gcintranet', 'concat:gcintranet-fr', 'genstatic:gcintranet'],
},
},
webdriver: {
maintests: {
configFile: './wdio.conf.js',
},
},
});
};