mod-build 3.6.36-beta.5 → 3.6.36-beta.7
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 +4 -0
- package/gulp-tasks/grab-shared-scripts.js +19 -19
- package/package.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.6.37
|
|
4
|
+
|
|
5
|
+
- implementing a buffer to our `grab-shared-scripts` task, which fixes the hashing issue we were facing for our larger files. updated the hashing algorithm to MD5, so it matches our CircleCI CLI hash. updated `mod-form-beta.min.js` to `homeowner.min.js`
|
|
6
|
+
|
|
3
7
|
## 3.6.36
|
|
4
8
|
|
|
5
9
|
- implementing fix needed for grabbing SVG sprites in our `grab-global-images` task. also removed consoles running in `grab-shared-scripts`
|
|
@@ -96,7 +96,7 @@ function getResource(url, config = {}, fn, fnArray) {
|
|
|
96
96
|
throw new Error(`${resp.statusCode} Error while fetching ${file}`);
|
|
97
97
|
}
|
|
98
98
|
})
|
|
99
|
-
.pipe(source(
|
|
99
|
+
.pipe(source(file))
|
|
100
100
|
.pipe(buffer())
|
|
101
101
|
.pipe(hash({
|
|
102
102
|
hashLength: 20,
|
|
@@ -123,7 +123,7 @@ function getResource(url, config = {}, fn, fnArray) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
})
|
|
126
|
-
.pipe(source(
|
|
126
|
+
.pipe(source(file))
|
|
127
127
|
.pipe(config.gulp.dest(`${config.siteSettings.srcFolder}/resources/${config.dest}`))
|
|
128
128
|
.on('finish', resolve);
|
|
129
129
|
});
|
|
@@ -140,27 +140,27 @@ function getResource(url, config = {}, fn, fnArray) {
|
|
|
140
140
|
}
|
|
141
141
|
const TASKS = {
|
|
142
142
|
copyModalytics: {
|
|
143
|
-
url:
|
|
143
|
+
url: 'mod-alytics/modalytics.min.js',
|
|
144
144
|
config: {
|
|
145
145
|
fileName: 'modAlyticsFileName',
|
|
146
146
|
dest: 'scripts/mod-alytics',
|
|
147
|
-
mapUrl:
|
|
147
|
+
mapUrl: 'mod-alytics/modalytics.min.js.map',
|
|
148
148
|
},
|
|
149
149
|
srcReplaceFn: replaceModalyticsSrc,
|
|
150
150
|
additionalSrcReplaceFns: []
|
|
151
151
|
},
|
|
152
152
|
copyModutils: {
|
|
153
|
-
url:
|
|
153
|
+
url: 'mod-utils/modutils.min.js',
|
|
154
154
|
config: {
|
|
155
155
|
fileName: 'modUtilsFileName',
|
|
156
156
|
dest: 'scripts/mod-utils',
|
|
157
|
-
mapUrl:
|
|
157
|
+
mapUrl: 'mod-utils/modutils.min.js.map',
|
|
158
158
|
},
|
|
159
159
|
srcReplaceFn: null,
|
|
160
160
|
additionalSrcReplaceFns: []
|
|
161
161
|
},
|
|
162
162
|
copyAbandonmentComponentStyles: {
|
|
163
|
-
url:
|
|
163
|
+
url: 'shared-resources/styles/components/abandonment/abandonment.min.css',
|
|
164
164
|
config: {
|
|
165
165
|
fileName: 'abandonmentStylesFileName',
|
|
166
166
|
dest: 'styles/components/abandonment',
|
|
@@ -170,57 +170,57 @@ const TASKS = {
|
|
|
170
170
|
additionalSrcReplaceFns: []
|
|
171
171
|
},
|
|
172
172
|
copyAbandonmentJs: {
|
|
173
|
-
url:
|
|
173
|
+
url: 'shared-resources/scripts/abandonment/abandonment.min.js',
|
|
174
174
|
config: {
|
|
175
175
|
fileName: 'abandonmentJsFileName',
|
|
176
176
|
dest: 'scripts/abandonment',
|
|
177
|
-
mapUrl:
|
|
177
|
+
mapUrl: 'shared-resources/scripts/abandonment/abandonment.min.js.map',
|
|
178
178
|
},
|
|
179
179
|
srcReplaceFn: replaceAbandonmentJsCssSrc,
|
|
180
180
|
additionalSrcReplaceFns: []
|
|
181
181
|
},
|
|
182
182
|
copyFooterComponentJs: {
|
|
183
|
-
url:
|
|
183
|
+
url: 'shared-resources/scripts/footer/footer-component.min.js',
|
|
184
184
|
config: {
|
|
185
185
|
fileName: 'footerComponentJsFileName',
|
|
186
186
|
dest: 'scripts/footer',
|
|
187
|
-
mapUrl:
|
|
187
|
+
mapUrl: 'shared-resources/scripts/footer/footer-component.min.js.map',
|
|
188
188
|
},
|
|
189
189
|
srcReplaceFn: null,
|
|
190
190
|
additionalSrcReplaceFns: []
|
|
191
191
|
},
|
|
192
192
|
copyModForm: {
|
|
193
|
-
url:
|
|
193
|
+
url: 'mod-form/mod-form.min.js',
|
|
194
194
|
config: {
|
|
195
195
|
fileName: 'modFormFileName',
|
|
196
196
|
dest: 'scripts/mod-form',
|
|
197
|
-
mapUrl:
|
|
197
|
+
mapUrl: 'mod-form/mod-form.min.js.map',
|
|
198
198
|
},
|
|
199
199
|
srcReplaceFn: null,
|
|
200
200
|
additionalSrcReplaceFns: []
|
|
201
201
|
},
|
|
202
202
|
copyHomeownerForm: {
|
|
203
|
-
url:
|
|
203
|
+
url: 'mod-form/form/homeowner.min.js',
|
|
204
204
|
config: {
|
|
205
205
|
fileName: 'homeownerFormFileName',
|
|
206
206
|
dest: 'scripts/mod-form/form',
|
|
207
|
-
mapUrl:
|
|
207
|
+
mapUrl: 'mod-form/form/homeowner.min.js.map',
|
|
208
208
|
},
|
|
209
209
|
srcReplaceFn: null,
|
|
210
210
|
additionalSrcReplaceFns: []
|
|
211
211
|
},
|
|
212
212
|
copyQsForm: {
|
|
213
|
-
url:
|
|
213
|
+
url: 'mod-form/qs-form.min.js',
|
|
214
214
|
config: {
|
|
215
215
|
fileName: 'qsFormFileName',
|
|
216
216
|
dest: 'scripts/mod-form',
|
|
217
|
-
mapUrl:
|
|
217
|
+
mapUrl: 'mod-form/qs-form.min.js.map',
|
|
218
218
|
},
|
|
219
219
|
srcReplaceFn: replaceFootAssetScripts,
|
|
220
220
|
additionalSrcReplaceFns: []
|
|
221
221
|
},
|
|
222
222
|
copyModFooterComponentStyles: {
|
|
223
|
-
url:
|
|
223
|
+
url: 'shared-resources/styles/components/footer/mod-footer.min.css',
|
|
224
224
|
config: {
|
|
225
225
|
fileName: 'modFooterStylesFileName',
|
|
226
226
|
dest: 'styles/components/footer',
|
|
@@ -230,7 +230,7 @@ const TASKS = {
|
|
|
230
230
|
additionalSrcReplaceFns: [replaceFooterStylesReference, replaceFooterStylesReferenceInMap]
|
|
231
231
|
},
|
|
232
232
|
copyQsFooterComponentStyles: {
|
|
233
|
-
url:
|
|
233
|
+
url: 'shared-resources/styles/components/footer/qs-footer.min.css',
|
|
234
234
|
config: {
|
|
235
235
|
fileName: 'qsFooterStylesFileName',
|
|
236
236
|
dest: 'styles/components/footer',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mod-build",
|
|
3
|
-
"version": "3.6.36-beta.
|
|
3
|
+
"version": "3.6.36-beta.7",
|
|
4
4
|
"description": "Share components for S3 sites.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"bootstrap-sass": "^3.4.3",
|
|
16
16
|
"browser-sync": "^2.18.6",
|
|
17
17
|
"del": "^3.0.0",
|
|
18
|
-
"fancy-log": "^2.0.0",
|
|
19
18
|
"gulp": "^3.9.1",
|
|
20
19
|
"gulp-autoprefixer": "^3.1.1",
|
|
21
20
|
"gulp-babel": "^8.0.0",
|
|
@@ -34,7 +33,6 @@
|
|
|
34
33
|
"gulp-imagemin": "^3.2.0",
|
|
35
34
|
"gulp-insert": "^0.5.0",
|
|
36
35
|
"gulp-load-plugins": "^0.10.0",
|
|
37
|
-
"gulp-md5": "^0.1.3",
|
|
38
36
|
"gulp-minify": "0.0.14",
|
|
39
37
|
"gulp-mocha-phantomjs": "^0.12.1",
|
|
40
38
|
"gulp-plumber": "^1.1.0",
|
|
@@ -60,7 +58,6 @@
|
|
|
60
58
|
"lodash.merge": "^4.6.2",
|
|
61
59
|
"nouislider": "^10.1.0",
|
|
62
60
|
"path": "^0.12.7",
|
|
63
|
-
"plugin-error": "^2.0.1",
|
|
64
61
|
"request": "^2.88.0",
|
|
65
62
|
"run-sequence": "^2.2.1",
|
|
66
63
|
"sass": "^1.49.9",
|