mod-build 3.6.69-beta.1 → 3.6.70-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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.6.70-beta.1
|
|
4
|
+
|
|
5
|
+
- Implemented copy-font gulp task based on configuration . Also update cache-bust task to not to include font files.
|
|
6
|
+
|
|
7
|
+
## 3.6.69
|
|
8
|
+
|
|
9
|
+
- Adjusting the `browserSyncServeFolders` to include the `mod-base/src`
|
|
10
|
+
|
|
3
11
|
## 3.6.67
|
|
4
12
|
|
|
5
13
|
- Adjusting the `grab-theme-json` task conditional to also check for `opts.siteData.page` to exist as well as the `themeFile` before running the task!
|
package/gulp-tasks/build.js
CHANGED
|
@@ -16,6 +16,10 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
16
16
|
sequenceOpts = ['clean', 'grab-cdn', 'grab-shared-components', 'grab-shared-scripts', 'grab-form-helpers', 'templates', 'styles', 'copy-videos', 'js-lint', 'html-min', 'css-min', 'js-min', 'img-min', 'extras', 'cache-bust', 'add-path-subdirectories', 'copy-resources-to-dist', 'build-stat'];
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
if (siteData.isFontPresent) {
|
|
20
|
+
sequenceOpts.push('copy-fonts');
|
|
21
|
+
}
|
|
22
|
+
|
|
19
23
|
runSequence(...sequenceOpts, function() {
|
|
20
24
|
console.log('\x1b[42m%s\x1b[0m', '✔ Build completed!');
|
|
21
25
|
console.log('You can run \'gulp serve:dist\' to see production version.');
|
package/gulp-tasks/cache-bust.js
CHANGED
|
@@ -3,9 +3,9 @@ module.exports = function(gulp, gulpPlugins, siteSettings) {
|
|
|
3
3
|
return function() {
|
|
4
4
|
return gulp.src(siteSettings.distFolder + '/**')
|
|
5
5
|
.pipe(gulpPlugins.revAll.revision({
|
|
6
|
-
dontSearchFile: [/(resources)\/.*/, /(scripts\/components)\/.*/],
|
|
7
|
-
dontRenameFile: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/],
|
|
8
|
-
dontUpdateReference: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/],
|
|
6
|
+
dontSearchFile: [/(resources)\/.*/, /(scripts\/components)\/.*/, /(fonts)\/.*/],
|
|
7
|
+
dontRenameFile: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/, /(fonts)\/.*/],
|
|
8
|
+
dontUpdateReference: [/^\/favicon.ico$/g, '.html', '.txt', /modlogo([\w|\s|-])*\.(?:svg)/g, /(resources)\/.*/, /(fonts)\/.*/],
|
|
9
9
|
transformFilename: function (file, hash) {
|
|
10
10
|
var ext = path.extname(file.path);
|
|
11
11
|
return path.basename(file.path, ext) + '-' + hash.substr(0, 8) + ext;
|
package/gulp-tasks/settings.js
CHANGED
|
@@ -6,7 +6,7 @@ module.exports = function() {
|
|
|
6
6
|
return {
|
|
7
7
|
tmpFolder: '.tmp',
|
|
8
8
|
srcFolder: 'src',
|
|
9
|
-
browserSyncServeFolders: ['.tmp', 'src', 'node_modules/mod-style-bootstrap/src'],
|
|
9
|
+
browserSyncServeFolders: ['.tmp', 'src', 'node_modules/mod-style-bootstrap/src', 'node_modules/mod-base/src'],
|
|
10
10
|
distFolder: 'dist',
|
|
11
11
|
fontsSubfolder: 'fonts',
|
|
12
12
|
imagesSubfolder: 'images',
|
package/gulp-tasks/tasks.js
CHANGED
|
@@ -453,6 +453,18 @@ module.exports = function() {
|
|
|
453
453
|
|
|
454
454
|
return require(opts.gulpTasksFolderPath + '/build')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
|
|
455
455
|
}
|
|
456
|
+
},
|
|
457
|
+
|
|
458
|
+
// Copy fonts
|
|
459
|
+
'copy-fonts': {
|
|
460
|
+
subtasks: [],
|
|
461
|
+
func: function(opts) {
|
|
462
|
+
if ('undefined' === typeof opts.gulpTasksFolderPath) {
|
|
463
|
+
opts.gulpTasksFolderPath = '.';
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
return require(opts.gulpTasksFolderPath + '/copy-fonts')(opts.gulp, opts.gulpSettings);
|
|
467
|
+
}
|
|
456
468
|
}
|
|
457
469
|
};
|
|
458
470
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
if (window.Modalytics && !window.Modalytics.privacyPreferencesDetected) {
|
|
2
|
+
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=t.forceSSL||"https:"===document.location.protocol,a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=(r?"https:":"http:")+"//cdn.heapanalytics.com/js/heap-"+e+".js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(a,n);for(var o=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],c=0;c<p.length;c++)heap[p[c]]=o(p[c])};
|
|
3
|
+
|
|
2
4
|
var heapIsDevEnv = window.location.host.match(new RegExp('(' + ['qa.', 'staging.', 'localhost', '.local', '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}'].join('|') + ')', 'i'));
|
|
3
|
-
// dev env id "3986615799"
|
|
4
|
-
if (!heapIsDevEnv) {
|
|
5
|
-
window.heap = window.heap || [], heap.load = function(e, t) { window.heap.appid = e, window.heap.config = t = t || {}; var r = t.forceSSL || "https:" === document.location.protocol, a = document.createElement("script"); a.type = "text/javascript", a.async = !0, a.src = (r ? "https:" : "http:") + "//cdn.heapanalytics.com/js/heap-" + e + ".js"; var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(a, n); for (var o = function(e) { return function() { heap.push([e].concat(Array.prototype.slice.call(arguments, 0))) } }, p = ["addEventProperties", "addUserProperties", "clearEventProperties", "identify", "resetIdentity", "removeEventProperty", "setEventProperties", "track", "unsetEventProperty"], c = 0; c < p.length; c++)heap[p[c]] = o(p[c]) };
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
}
|
|
6
|
+
heap.load(heapIsDevEnv ? "3986615799" : "3246578271"); // dynamic tracker ID based on env
|
|
9
7
|
}
|