mod-build 3.6.2--beta.9 → 3.6.3--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.3
4
+
5
+ - Updating `cache-bust` gulp task to use dashes instead of a period. For example, cached files will now be `home-51fbcbac.js` instead of `home.51fbcbac.js`
6
+
3
7
  ## 3.6.2
4
8
 
5
9
  - Adding `check-seasonal-variations` to grab seasons json; loop through the siteData for `seasonalVariations: {}`; find any active seasons; merge the json objects and adjust json content accordingly;
@@ -3,7 +3,7 @@ var source = require('vinyl-source-stream');
3
3
 
4
4
  // helper to allow us to define an "end" event to multiple streams
5
5
  function streamToDestination(gulp, siteSettings, inputPath, destPath, fileName) {
6
- var url = `https://${siteSettings.nodeEnv}/quote/resources/mod-site${inputPath}`;
6
+ var url = `https://${siteSettings.nodeEnv}/quote/resources${inputPath}`;
7
7
 
8
8
  return new Promise(resolve => { // eslint-disable-line no-undef
9
9
  request(url)
@@ -30,21 +30,23 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
30
30
  // key: inputPath, value: destPath
31
31
 
32
32
  externalResources = {
33
- '/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html']
33
+ '/mod-site/templates/scripts/trusted-form.html': ['/templates/scripts/', 'trusted-form.html'],
34
+ '/mod-alytics/modalytics.min.js': ['/scripts/resources/', 'modalytics.min.js'],
35
+ '/mod-utils/modutils.min.js': ['/scripts/resources/', 'modutils.min.js']
34
36
  };
35
37
 
36
- Object.assign(externalResources, {'/templates/scripts/jornaya.html': ['/templates/scripts/', 'jornaya.html']});
38
+ Object.assign(externalResources, {'/mod-site/templates/scripts/jornaya.html': ['/templates/scripts/', 'jornaya.html']});
37
39
 
38
40
  if (isModWhiteLabel || domainHasModernize) {
39
- Object.assign(externalResources, {'/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
41
+ Object.assign(externalResources, {'/mod-site/templates/scripts/recaptcha.html': ['/templates/scripts/', 'recaptcha.html']});
40
42
  }
41
43
 
42
44
  // local dev files
43
45
  const remoteFilesForLocalDev = {
44
- '/scripts/mod-form.js': ['/temp/scripts/', 'mod-form.js'],
45
- '/scripts/mod-utils.js': ['/temp/scripts/', 'mod-utils.js'],
46
- '/scripts/qs-form.js': ['/temp/scripts/', 'qs-form.js'],
47
- '/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
46
+ '/mod-site/scripts/mod-form.js': ['/temp/scripts/', 'mod-form.js'],
47
+ '/mod-site/scripts/mod-utils.js': ['/temp/scripts/', 'mod-utils.js'],
48
+ '/mod-site/scripts/qs-form.js': ['/temp/scripts/', 'qs-form.js'],
49
+ '/mod-site/scripts/vendor/maxmind-geoip2.js': ['/temp/scripts/', 'maxmind-geoip2.js']
48
50
  };
49
51
 
50
52
  if (!nodeEnv) {
@@ -14,6 +14,7 @@ module.exports = function(gulp, gulpPlugins, siteSettings) {
14
14
  'gulpfile.babel.js',
15
15
  'gulp-tasks/*.js',
16
16
  '!' + siteSettings.srcFolder + '/' + siteSettings.scriptsSubfolder + '/vendor/**/*.js', // do not lint 3rd party scripts,
17
+ '!' + siteSettings.srcFolder + '/' + siteSettings.scriptsSubfolder + '/resources/**/*.js', // do not lint copied shared resource scripts,
17
18
  '!' + siteSettings.srcFolder + '/' + siteSettings.scriptsCompiledFolder + '**/*.js' // do not lint compiled scripts
18
19
  ])
19
20
  .pipe(gulpPlugins.eslint(siteSettings.jsLint))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.6.2--beta.9",
3
+ "version": "3.6.3--beta.1",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -37,7 +37,6 @@
37
37
  "gulp-replace": "^0.5.4",
38
38
  "gulp-rev": "^7.1.2",
39
39
  "gulp-rev-all": "^0.9.7",
40
- "gulp-rev-append-all": "^0.1.8",
41
40
  "gulp-rev-delete-original": "^0.2.3",
42
41
  "gulp-rev-replace": "^0.4.3",
43
42
  "gulp-sass": "^5.1.0",