mod-build 3.6.33 → 3.6.34

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.34
4
+
5
+ - undid the chaining in `replaceFootAssetScripts` function inside our `grab-shared-scripts` task. seemed to make things worse in terms of replacing paths.
6
+
3
7
  ## 3.6.33
4
8
 
5
9
  - chained the `.pipe(replace())` lines within the `replaceFootAssetScripts` function inside our `grab-shared-scripts` task to run after the previous has been completed — in hopes to keep our foot assets paths from getting incomplete paths during deployment
@@ -28,27 +28,11 @@ function replaceFootAssetScripts(gulp, gulpPlugins, siteSettings, siteData) {
28
28
  const resourcePath = isQuotePageOrUseRelativePath ? '{{#if this.nodeModulesPath}}{{this.nodeModulesPath}}{{/if}}resources/scripts' : '/resources/scripts';
29
29
  return gulp.src(siteSettings.srcFolder + '/shared-components/foot-assets/foot-assets.html')
30
30
  .pipe(replace(/"(?:(?!"|js")[\s\S])+(modutils|mod-utils.*?)js"/, `"${resourcePath}/mod-utils/${fileNames.modUtilsFileName}"`))
31
- .pipe(gulp.dest(siteSettings.srcFolder + '/shared-components/foot-assets'))
32
- .on('end', function(){
33
- gulp.src(siteSettings.srcFolder + '/shared-components/foot-assets/foot-assets.html')
34
- .pipe(replace(/"(?:(?!"|")[\s\S])+(footer\/footer-component.*?)js"/, `"${resourcePath}/footer/${fileNames.footerComponentJsFileName}"`))
35
- .pipe(gulp.dest(siteSettings.srcFolder + '/shared-components/foot-assets'))
36
- .on('end', function(){
37
- gulp.src(siteSettings.srcFolder + '/shared-components/foot-assets/foot-assets.html')
38
- .pipe(replace(/"(?:(?!"|")[\s\S])+(mod-form\/mod-form.*?)js"/, `"${resourcePath}/mod-form/${fileNames.modFormFileName}"`))
39
- .pipe(gulp.dest(siteSettings.srcFolder + '/shared-components/foot-assets'))
40
- .on('end', function(){
41
- gulp.src(siteSettings.srcFolder + '/shared-components/foot-assets/foot-assets.html')
42
- .pipe(replace(/"(?:(?!"|")[\s\S])+(mod-form\/form\/mod-form.*?)js"/, `"${resourcePath}/mod-form/form/${fileNames.newModFormFileName}"`))
43
- .pipe(gulp.dest(siteSettings.srcFolder + '/shared-components/foot-assets'))
44
- .on('end', function(){
45
- gulp.src(siteSettings.srcFolder + '/shared-components/foot-assets/foot-assets.html')
46
- .pipe(replace(/"(?:(?!"|")[\s\S])+(qs-form.*?)js"/, `"${resourcePath}/mod-form/${fileNames.qsFormFileName}"`))
47
- .pipe(gulp.dest(siteSettings.srcFolder + '/shared-components/foot-assets'))
48
- })
49
- })
50
- })
51
- })
31
+ .pipe(replace(/"(?:(?!"|")[\s\S])+(footer\/footer-component.*?)js"/, `"${resourcePath}/footer/${fileNames.footerComponentJsFileName}"`))
32
+ .pipe(replace(/"(?:(?!"|")[\s\S])+(mod-form\/mod-form.*?)js"/, `"${resourcePath}/mod-form/${fileNames.modFormFileName}"`))
33
+ .pipe(replace(/"(?:(?!"|")[\s\S])+(qs-form.*?)js"/, `"${resourcePath}/mod-form/${fileNames.qsFormFileName}"`))
34
+ .pipe(replace(/"(?:(?!"|")[\s\S])+(mod-form\/form\/mod-form.*?)js"/, `"${resourcePath}/mod-form/form/${fileNames.newModFormFileName}"`))
35
+ .pipe(gulp.dest(siteSettings.srcFolder + '/shared-components/foot-assets'));
52
36
  }
53
37
  function replaceAbandonmentJsCssSrc(gulp, gulpPlugins, siteSettings, siteData) {
54
38
  const jsResourcePath = isQuotePageOrUseRelativePath ? 'resources/scripts/abandonment/' : '/resources/scripts/abandonment/';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.33",
3
+ "version": "3.6.34",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"