mod-build 3.6.36 → 3.6.37

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.37
4
+
5
+ - removing the mod-form-beta functionality in `grab-shared-scripts` while we rename the files.
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`
@@ -89,21 +89,18 @@ function getResource(url, config = {}, fn, fnArray) {
89
89
 
90
90
  return new Promise(resolve => {
91
91
  const file = getFileFromURL(url);
92
- const doNotAddHash = ['mod-form-beta.min.js']
93
- let stream = request(`${resourceURL}/${url}`)
92
+ request(`${resourceURL}/${url}`)
94
93
  .on('response', resp => {
95
94
  if (resp.statusCode !== 200) {
96
95
  throw new Error(`${resp.statusCode} Error while fetching ${file}`);
97
96
  }
98
97
  })
99
98
  .pipe(source(`${file}`))
100
- if (!doNotAddHash.includes(file)) {
101
- stream = stream.pipe(hash({
102
- hashLength: 20,
103
- template: file.replace(/^([^.]*)\.(.*)$/, '$1-<%= hash %>.$2')
104
- }))
105
- }
106
- stream.pipe(tap(function(file, t) {
99
+ .pipe(hash({
100
+ hashLength: 20,
101
+ template: file.replace(/^([^.]*)\.(.*)$/, '$1-<%= hash %>.$2')
102
+ }))
103
+ .pipe(tap(function(file, t) {
107
104
  fileNames[config.fileName] = path.basename(file.path);
108
105
  }))
109
106
  .pipe(config.gulp.dest(`${config.siteSettings.srcFolder}/resources/${config.dest}`))
@@ -199,16 +196,6 @@ const TASKS = {
199
196
  srcReplaceFn: null,
200
197
  additionalSrcReplaceFns: []
201
198
  },
202
- copyNewModForm: {
203
- url: `mod-form/form/mod-form-beta.min.js`,
204
- mapUrl: `mod-form/form/mod-form-beta.min.js.map`,
205
- config: {
206
- fileName: 'newModFormFileName',
207
- dest: 'scripts/mod-form/form'
208
- },
209
- srcReplaceFn: null,
210
- additionalSrcReplaceFns: []
211
- },
212
199
  copyQsForm: {
213
200
  url: `mod-form/qs-form.min.js`,
214
201
  config: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.36",
3
+ "version": "3.6.37",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"