mod-build 3.4.36--beta.1 → 3.4.38-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/gulp-tasks/grab-cdn.js +2 -1
- package/gulp-tasks/templates.js +15 -0
- package/package.json +1 -1
package/gulp-tasks/grab-cdn.js
CHANGED
|
@@ -49,7 +49,8 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
49
49
|
const remoteFilesForLocalDev = {
|
|
50
50
|
'/scripts/mod-form.js': ['/temp/scripts/', 'mod-form.js'],
|
|
51
51
|
'/scripts/mod-utils.js': ['/temp/scripts/', 'mod-utils.js'],
|
|
52
|
-
'/scripts/qs-form.js': ['/temp/scripts/', 'qs-form.js']
|
|
52
|
+
'/scripts/qs-form.js': ['/temp/scripts/', 'qs-form.js'],
|
|
53
|
+
'/scripts/components/callrail.js': ['/temp/scripts/components', 'callrail.js']
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
if (!nodeEnv) {
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -99,6 +99,21 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
99
99
|
}
|
|
100
100
|
return expression.replace(mask, newValues);
|
|
101
101
|
}
|
|
102
|
+
},
|
|
103
|
+
// It will take the json object & variable name to assign the object & return it in the script tag
|
|
104
|
+
{
|
|
105
|
+
name: 'jsonVarScriptTag',
|
|
106
|
+
fn: function(json, variable) {
|
|
107
|
+
var check = (typeof json === 'object') && (typeof variable === 'string' && variable);
|
|
108
|
+
return check ? '<script>' + 'var ' + variable + '=' + JSON.stringify(json) + '</script>' : '';
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
// It will take & return json object
|
|
112
|
+
{
|
|
113
|
+
name: 'json',
|
|
114
|
+
fn: function(json) {
|
|
115
|
+
return JSON.stringify(json);
|
|
116
|
+
}
|
|
102
117
|
}
|
|
103
118
|
];
|
|
104
119
|
|