mod-build 3.6.57 → 3.6.58-beta.1

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.6.58
4
+
5
+ - removing the copying of mod-form & qs-form JS files out of `grab-shared-scripts` gulp task, now that all S3 sites have been migrated over to use homeowner.min.js
6
+
3
7
  ## 3.6.56
4
8
 
5
9
  - `noheap` + `nogtm` conditionals no longer needed (those variables will & have been set to "true" for all sites in our shared components / configs)
@@ -13,8 +13,6 @@ const fileNames = {
13
13
  footerComponentJsFileName: '',
14
14
  modFooterStylesFileName: '',
15
15
  qsFooterStylesFileName: '',
16
- modFormFileName: '',
17
- qsFormFileName: '',
18
16
  homeownerFormFileName: ''
19
17
  };
20
18
  var isQuotePageOrUseRelativePath = false;
@@ -31,15 +29,9 @@ function replaceFootAssetScripts(gulp, gulpPlugins, siteSettings, siteData) {
31
29
  console.log('>> STARTING Replacing Foot Asset Scripts');
32
30
  const resourcePath = isQuotePageOrUseRelativePath ? `${pathSubdirectory}{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}resources/scripts` : '/resources/scripts';
33
31
  return gulp.src(siteSettings.srcFolder + '/shared-components/foot-assets/foot-assets.html')
34
- .pipe(replace(/"(?:(?!"|js")[\s\S])+(modutils|mod-utils.*?)js"|"(?:(?!"|")[\s\S])+(footer\/footer-component.*?)js"|"(?:(?!"|")[\s\S])+(mod-form\/mod-form.*?)js"|"(?:(?!"|")[\s\S])+(qs-form.*?)js"|"(?:(?!"|")[\s\S])+(mod-form\/form.*?)js"/g, function(match) {
35
- if (match.includes('mod-form')) {
36
- if (match.includes('mod-form/form')) {
37
- return `"${resourcePath}/mod-form/form/${fileNames.homeownerFormFileName}"`;
38
- } else if (match.includes('qs-form')) {
39
- return `"${resourcePath}/mod-form/${fileNames.qsFormFileName}"`;
40
- } else {
41
- return `"${resourcePath}/mod-form/${fileNames.modFormFileName}"`;
42
- }
32
+ .pipe(replace(/"(?:(?!"|js")[\s\S])+(modutils|mod-utils.*?)js"|"(?:(?!"|")[\s\S])+(footer\/footer-component.*?)js"|"(?:(?!"|")[\s\S])+(mod-form\/form.*?)js"/g, function(match) {
33
+ if (match.includes('mod-form/form')) {
34
+ return `"${resourcePath}/mod-form/form/${fileNames.homeownerFormFileName}"`;
43
35
  } else if (match.includes('modutils') || match.includes('mod-utils')) {
44
36
  return `"${resourcePath}/mod-utils/${fileNames.modUtilsFileName}"`;
45
37
  } else if (match.includes('footer-component')) {
@@ -167,26 +159,6 @@ const TASKS = {
167
159
  srcReplaceFn: null,
168
160
  additionalSrcReplaceFns: []
169
161
  },
170
- copyModForm: {
171
- url: 'mod-form/mod-form.min.js',
172
- config: {
173
- fileName: 'modFormFileName',
174
- dest: 'scripts/mod-form',
175
- mapUrl: 'mod-form/mod-form.min.js.map',
176
- },
177
- srcReplaceFn: null,
178
- additionalSrcReplaceFns: []
179
- },
180
- copyQsForm: {
181
- url: 'mod-form/qs-form.min.js',
182
- config: {
183
- fileName: 'qsFormFileName',
184
- dest: 'scripts/mod-form',
185
- mapUrl: 'mod-form/qs-form.min.js.map',
186
- },
187
- srcReplaceFn: null,
188
- additionalSrcReplaceFns: []
189
- },
190
162
  copyHomeownerForm: {
191
163
  url: 'mod-form/form/homeowner.min.js',
192
164
  config: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.57",
3
+ "version": "3.6.58-beta.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",