mod-build 3.6.34-beta.1 → 3.6.35
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.35
|
|
4
|
+
|
|
5
|
+
- trying one replace pipe for `replaceFootAssetScripts` function inside our `grab-shared-scripts` task. also added some console logs so within build.sh in circleci — you will be able to see it complete all the replacements.
|
|
6
|
+
|
|
3
7
|
## 3.6.34
|
|
4
8
|
|
|
5
9
|
- undid the chaining in `replaceFootAssetScripts` function inside our `grab-shared-scripts` task. seemed to make things worse in terms of replacing paths.
|
|
@@ -30,12 +30,12 @@ function replaceFootAssetScripts(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
30
30
|
return gulp.src(siteSettings.srcFolder + '/shared-components/foot-assets/foot-assets.html')
|
|
31
31
|
.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\/mod-form.*?)js"/g, function(match) {
|
|
32
32
|
if (match.includes('mod-form')) {
|
|
33
|
-
if (match.includes('
|
|
34
|
-
console.log('replaced qs-form');
|
|
35
|
-
return `"${resourcePath}/mod-form/${fileNames.qsFormFileName}"`;
|
|
36
|
-
} else if (match.includes('mod-form/form')) {
|
|
33
|
+
if (match.includes('mod-form/form')) {
|
|
37
34
|
console.log('replaced modular mod-form');
|
|
38
35
|
return `"${resourcePath}/mod-form/form/${fileNames.newModFormFileName}"`;
|
|
36
|
+
} else if (match.includes('qs-form')) {
|
|
37
|
+
console.log('replaced qs-form');
|
|
38
|
+
return `"${resourcePath}/mod-form/${fileNames.qsFormFileName}"`;
|
|
39
39
|
} else {
|
|
40
40
|
console.log('replaced mod-form');
|
|
41
41
|
return `"${resourcePath}/mod-form/${fileNames.modFormFileName}"`;
|