mod-build 3.6.61-beta.9 → 3.6.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -1
- package/gulp-tasks/grab-shared-scripts.js +8 -1
- package/gulp-tasks/templates.js +15 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.6.62
|
|
4
|
+
|
|
5
|
+
- Adding the accessible components to the `grab-shared-components` task; As well as pulling the accessible `defaultFormFieldConfig` for the new template.js configuration (& merging to the new template stucture appropriately); As well as updating the `grab-shared-scripts` to pull in / edit the necessary accessible components (including the accessible abandonment JS file);
|
|
6
|
+
|
|
3
7
|
## 3.6.61
|
|
4
8
|
|
|
5
|
-
-
|
|
9
|
+
- added functionality to increase the fileInclude maxRecursion value from site level
|
|
10
|
+
- fixed bug in `templates` task. Noticed that the task was not completing as expected.
|
|
6
11
|
|
|
7
12
|
## 3.6.60
|
|
8
13
|
|
|
@@ -242,6 +242,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
242
242
|
resourceURL = `https://${siteSettings.nodeEnv}/quote/resources`;
|
|
243
243
|
const isPathSubdirectory = siteData.siteData && siteData.siteData.pathSubdirectory || siteData && siteData.pathSubdirectory;
|
|
244
244
|
pathSubdirectory = !isLocal && isPathSubdirectory ? isPathSubdirectory : '';
|
|
245
|
+
|
|
245
246
|
return function() {
|
|
246
247
|
const { nodeEnv } = siteSettings;
|
|
247
248
|
if (!nodeEnv) {
|
|
@@ -249,9 +250,15 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
249
250
|
}
|
|
250
251
|
return (function() {
|
|
251
252
|
const tasks = Object.values(TASKS)
|
|
252
|
-
|
|
253
|
+
|
|
253
254
|
if (tasks.length) {
|
|
254
255
|
var getAllResources = tasks.map(function(task) {
|
|
256
|
+
if (useAccessibleComponents === true) {
|
|
257
|
+
if (task.url.includes('abandonment.min.js')) {
|
|
258
|
+
task.url = 'shared-resources/scripts/abandonment/accessible/abandonment.min.js';
|
|
259
|
+
task.config.mapUrl = 'shared-resources/scripts/abandonment/accessible/abandonment.min.js.map';
|
|
260
|
+
}
|
|
261
|
+
}
|
|
255
262
|
Object.assign(task.config, { gulp, gulpPlugins, siteSettings, siteData });
|
|
256
263
|
return getResource(task.url, task.config, task.srcReplaceFn, task.additionalSrcReplaceFns)
|
|
257
264
|
});
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -65,7 +65,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
65
65
|
name: 'xif',
|
|
66
66
|
fn: function(expression, options) {
|
|
67
67
|
return handlebarsX(expression, this, options) ? options.fn(this) : options.inverse(this);
|
|
68
|
-
}
|
|
68
|
+
}
|
|
69
69
|
},
|
|
70
70
|
// Reverse array
|
|
71
71
|
{
|
|
@@ -260,14 +260,19 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
return
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
263
|
+
return new Promise(function(resolve) {
|
|
264
|
+
return gulp.src([
|
|
265
|
+
siteSettings.srcFolder + '/' + siteSettings.templatesSubfolder + '/**/*.html',
|
|
266
|
+
'!' + siteSettings.srcFolder + '/' + siteSettings.templatesSubfolder + '/_partials/**/*.html'
|
|
267
|
+
])
|
|
268
|
+
.pipe(gulpPlugins.handlebarsFileInclude(templatesData, {
|
|
269
|
+
maxRecursion: siteData.fileIncludeMaxRecursion ? siteData.fileIncludeMaxRecursion : 500,
|
|
270
|
+
handlebarsHelpers: handlebarsHelpers
|
|
271
|
+
}))
|
|
272
|
+
.pipe(gulp.dest(siteSettings.tmpFolder))
|
|
273
|
+
.on('finish', function() {
|
|
274
|
+
resolve();
|
|
275
|
+
});
|
|
276
|
+
});
|
|
272
277
|
};
|
|
273
278
|
};
|