mod-build 4.0.102-beta.1 → 4.0.103

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.
Files changed (112) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +2 -2
  3. package/public/resources/scripts/abandonment/abandonment-a4bbb36fbc8ed64042b8.min.js +2 -0
  4. package/public/resources/scripts/abandonment/abandonment.min.js +2 -0
  5. package/public/resources/scripts/callrail/callrail-14011d73b50a928de4b4.min.js +2 -0
  6. package/public/resources/scripts/callrail/callrail.min.js +2 -0
  7. package/public/resources/scripts/footer/footer-component-46dc0d7ca6af4fc3b76b.min.js +2 -0
  8. package/public/resources/scripts/footer/footer-component.min.js +2 -0
  9. package/public/resources/scripts/geolocation/geolocation.min.js +2 -0
  10. package/public/resources/scripts/helpers/addVWOTestQueryParam.min.js +2 -0
  11. package/public/resources/scripts/helpers/addVWOTestQueryParam.min.js.map +1 -0
  12. package/public/resources/scripts/helpers/additionalOpts.min.js +2 -0
  13. package/public/resources/scripts/helpers/additionalOpts.min.js.map +1 -0
  14. package/public/resources/scripts/helpers/calls-only.min.js +2 -0
  15. package/public/resources/scripts/helpers/calls-only.min.js.map +1 -0
  16. package/public/resources/scripts/helpers/getPhoneAssignmentData.min.js +2 -0
  17. package/public/resources/scripts/helpers/getPhoneAssignmentData.min.js.map +1 -0
  18. package/public/resources/scripts/helpers/initNumericOnlyFields.min.js +2 -0
  19. package/public/resources/scripts/helpers/initNumericOnlyFields.min.js.map +1 -0
  20. package/public/resources/scripts/helpers/initQSForm.min.js +2 -0
  21. package/public/resources/scripts/helpers/initQSForm.min.js.map +1 -0
  22. package/public/resources/scripts/helpers/initQuadTransform.min.js +2 -0
  23. package/public/resources/scripts/helpers/initQuadTransform.min.js.map +1 -0
  24. package/public/resources/scripts/helpers/isZipCodeValid.min.js +2 -0
  25. package/public/resources/scripts/helpers/isZipCodeValid.min.js.map +1 -0
  26. package/public/resources/scripts/helpers/observeVWOVariation.min.js +2 -0
  27. package/public/resources/scripts/helpers/observeVWOVariation.min.js.map +1 -0
  28. package/public/resources/scripts/helpers/opts.min.js +2 -0
  29. package/public/resources/scripts/helpers/opts.min.js.map +1 -0
  30. package/public/resources/scripts/jornaya.hbs +35 -0
  31. package/public/resources/scripts/jornaya.html +35 -0
  32. package/public/resources/scripts/mod-alytics/modalytics-be44027508c0438f6709.min.js +2 -0
  33. package/public/resources/scripts/mod-alytics/modalytics.min.js +2 -0
  34. package/public/resources/scripts/mod-form/form/contractor-0918337caf3dfede1609.min.js +2 -0
  35. package/public/resources/scripts/mod-form/form/contractor.min.js +2 -0
  36. package/public/resources/scripts/mod-form/form/homeowner-19a121b0e596042326f4.min.js +2 -0
  37. package/public/resources/scripts/mod-form/form/homeowner.min.js +2 -0
  38. package/public/resources/scripts/mod-utils/modutils-bc275eb41af515f626ef.min.js +2 -0
  39. package/public/resources/scripts/mod-utils/modutils.min.js +2 -0
  40. package/public/resources/scripts/trusted-form.hbs +38 -0
  41. package/public/resources/scripts/trusted-form.html +38 -0
  42. package/public/resources/styles/components/abandonment/abandonment-8a673f060817db6cb7dc.min.css +1 -0
  43. package/public/resources/styles/components/abandonment/abandonment.min.css +1 -0
  44. package/public/resources/styles/components/footer/mod-footer-d233fa64b6c8297c70ec.min.css +1 -0
  45. package/public/resources/styles/components/footer/mod-footer.min.css +1 -0
  46. package/public/resources/styles/components/footer/qs-footer-926e67c28d10c729db46.min.css +1 -0
  47. package/public/resources/styles/components/footer/qs-footer.min.css +1 -0
  48. package/src/resources/templates/modals/privacy/index.hbs +88 -89
  49. package/src/resources/templates/modals/privacy/index.html +88 -89
  50. package/src/resources/templates/modals/terms/index.hbs +8 -7
  51. package/src/resources/templates/modals/terms/index.html +8 -7
  52. package/src/scripts/globals.js +1 -3
  53. package/src/scripts/plugins.js +0 -3
  54. package/tasks/get-default-trade-questions.js +121 -157
  55. package/tasks/templates.js +2 -4
  56. package/gulp-tasks/add-path-subdirectories.js +0 -34
  57. package/gulp-tasks/build-stat.js +0 -9
  58. package/gulp-tasks/build.js +0 -28
  59. package/gulp-tasks/cache-bust.js +0 -19
  60. package/gulp-tasks/check-seasonal-variations.js +0 -21
  61. package/gulp-tasks/clean.js +0 -10
  62. package/gulp-tasks/combine-files.js +0 -7
  63. package/gulp-tasks/compile.js +0 -44
  64. package/gulp-tasks/copy-files-to-build-path.js +0 -8
  65. package/gulp-tasks/copy-fonts.js +0 -6
  66. package/gulp-tasks/copy-json.js +0 -6
  67. package/gulp-tasks/copy-resources-to-dist.js +0 -6
  68. package/gulp-tasks/copy-videos.js +0 -6
  69. package/gulp-tasks/extras.js +0 -22
  70. package/gulp-tasks/grab-cdn.js +0 -74
  71. package/gulp-tasks/grab-form-helpers.js +0 -55
  72. package/gulp-tasks/grab-global-images.js +0 -121
  73. package/gulp-tasks/grab-images.js +0 -79
  74. package/gulp-tasks/grab-shared-components.js +0 -46
  75. package/gulp-tasks/grab-shared-scripts.js +0 -275
  76. package/gulp-tasks/grab-theme-json.js +0 -24
  77. package/gulp-tasks/grab-tooltips-json.js +0 -33
  78. package/gulp-tasks/js-lint-husky.js +0 -35
  79. package/gulp-tasks/js-lint.js +0 -24
  80. package/gulp-tasks/minify.js +0 -131
  81. package/gulp-tasks/sass-lint.js +0 -15
  82. package/gulp-tasks/serve.js +0 -74
  83. package/gulp-tasks/settings.js +0 -22
  84. package/gulp-tasks/styles.js +0 -42
  85. package/gulp-tasks/tasks.js +0 -475
  86. package/gulp-tasks/templates.js +0 -288
  87. package/src/data/footer.js +0 -119
  88. package/src/scripts/default/additional-assets.js +0 -60
  89. package/src/scripts/default/rage-clicking.js +0 -54
  90. package/src/scripts/default/show-utility-providers.js +0 -28
  91. package/src/scripts/url-cleaner.js +0 -8
  92. package/src/scripts/vendor/google-tag-manager-head.js +0 -6
  93. package/src/scripts/vendor/heap-addeventproperties-identify.js +0 -262
  94. package/src/scripts/vendor/heap-tracking.js +0 -9
  95. package/src/styles/partials/_contact-us.scss +0 -196
  96. package/src/styles/partials/_google-address-autocomplete.scss +0 -52
  97. package/src/styles/partials/_mixins.scss +0 -39
  98. package/src/styles/partials/_modal-pages.scss +0 -125
  99. package/src/styles/partials/_modernize-colors.scss +0 -128
  100. package/src/styles/partials/_qs-footer.scss +0 -68
  101. package/src/styles/partials/_quote-footer-v1.scss +0 -79
  102. package/src/styles/partials/_quote-footer-v2.scss +0 -64
  103. package/src/styles/partials/_quote-footer-v3.scss +0 -65
  104. package/src/templates/_partials/scripts/deferred-styles.html +0 -16
  105. package/src/templates/_partials/scripts/heap-bundle.html +0 -5
  106. package/src/templates/_partials/scripts/heap.html +0 -4
  107. package/src/templates/_partials/scripts/utm-params.html +0 -9
  108. package/src/templates/components/qs-footer.html +0 -55
  109. package/src/templates/components/quote-footer-v1.html +0 -148
  110. package/src/templates/components/quote-footer-v2.html +0 -169
  111. /package/tasks/{addSeasonalchanges.js → add-seasonal-changes.js} +0 -0
  112. /package/tasks/{setupDevOpsTrackingId.js → setup-dev-ops-tracking-id.js} +0 -0
@@ -1,475 +0,0 @@
1
- /**
2
- * All Gulp tasks that could be used in mod-site powered sites
3
- * @returns {Object} - Gulp tasks object
4
- */
5
- module.exports = function() {
6
- var tasks = {
7
- // Compile templates into html files
8
- 'templates': {
9
- subtasks: [],
10
- func: function(opts) {
11
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
12
- opts.gulpTasksFolderPath = '.';
13
- }
14
-
15
- return require(opts.gulpTasksFolderPath + '/templates')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
16
- }
17
- },
18
-
19
- // Compile scss files into css files
20
- 'styles': {
21
- subtasks: ['sass-lint'],
22
- func: function(opts) {
23
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
24
- opts.gulpTasksFolderPath = '.';
25
- }
26
-
27
- return require(opts.gulpTasksFolderPath + '/styles')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
28
- }
29
- },
30
-
31
- // Grab html files from CDN so they can be swapped into build
32
- 'grab-cdn': {
33
- subtasks: [],
34
- func: function(opts) {
35
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
36
- opts.gulpTasksFolderPath = '.';
37
- }
38
-
39
- if (opts.siteData.useCDN) {
40
- return require(opts.gulpTasksFolderPath + '/grab-cdn')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
41
- }
42
- }
43
- },
44
-
45
- // Grab form helpers files from CDN
46
- 'grab-form-helpers': {
47
- subtasks: [],
48
- func: function(opts) {
49
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
50
- opts.gulpTasksFolderPath = '.';
51
- }
52
-
53
- if (opts.siteData.useCDN) {
54
- return require(opts.gulpTasksFolderPath + '/grab-form-helpers')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
55
- }
56
- }
57
- },
58
-
59
- // Grab component files from CDN so they can be swapped into build
60
- 'grab-shared-components': {
61
- subtasks: [],
62
- func: function(opts) {
63
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
64
- opts.gulpTasksFolderPath = '.';
65
- }
66
-
67
- return require(opts.gulpTasksFolderPath + '/grab-shared-components')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
68
- }
69
- },
70
-
71
- // Grab shared scripts from CDN so they can swapped into build
72
- 'grab-shared-scripts': {
73
- subtasks: [],
74
- func: function(opts) {
75
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
76
- opts.gulpTasksFolderPath = '.';
77
- }
78
-
79
- return require(opts.gulpTasksFolderPath + '/grab-shared-scripts')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
80
- }
81
- },
82
-
83
- // Link scss files
84
- 'sass-lint': {
85
- subtasks: [],
86
- func: function(opts) {
87
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
88
- opts.gulpTasksFolderPath = '.';
89
- }
90
-
91
- return require(opts.gulpTasksFolderPath + '/sass-lint')(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
92
- }
93
- },
94
-
95
- // Link JS files
96
- 'js-lint': {
97
- subtasks: [],
98
- func: function(opts) {
99
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
100
- opts.gulpTasksFolderPath = '.';
101
- }
102
-
103
- return require(opts.gulpTasksFolderPath + '/js-lint')(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
104
- }
105
- },
106
-
107
- // Link JS files and fail on errors and warnings (for Husky)
108
- 'js-lint-husky': {
109
- subtasks: [],
110
- func: function(opts) {
111
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
112
- opts.gulpTasksFolderPath = '.';
113
- }
114
-
115
- return require(opts.gulpTasksFolderPath + '/js-lint-husky')(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
116
- }
117
- },
118
-
119
- // Minify html files & copy into dist folder
120
- 'html-min': {
121
- subtasks: [],
122
- func: function(opts) {
123
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
124
- opts.gulpTasksFolderPath = '.';
125
- }
126
-
127
- return require(opts.gulpTasksFolderPath + '/minify').html(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
128
- }
129
- },
130
-
131
- // Minify css files & copy into dist folder
132
- 'css-min': {
133
- subtasks: [],
134
- func: function(opts) {
135
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
136
- opts.gulpTasksFolderPath = '.';
137
- }
138
-
139
- return require(opts.gulpTasksFolderPath + '/minify').css(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
140
- }
141
- },
142
-
143
- // Compile typescript
144
- 'compile': {
145
- subtasks: [],
146
- func: function(opts) {
147
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
148
- opts.gulpTasksFolderPath = '.';
149
- }
150
-
151
- if (opts.siteData.useTypescript) {
152
- return require(opts.gulpTasksFolderPath + '/compile')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, 'development');
153
- }
154
- }
155
- },
156
-
157
- // Compile for prod
158
- 'compile-prod': {
159
- subtasks: [],
160
- func: function(opts) {
161
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
162
- opts.gulpTasksFolderPath = '.';
163
- }
164
-
165
- if (opts.siteData.useTypescript) {
166
- return require(opts.gulpTasksFolderPath + '/compile')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, 'production');
167
- }
168
- }
169
- },
170
-
171
- // Minify js files & copy into dist folder
172
- 'js-min': {
173
- subtasks: [],
174
- func: function(opts) {
175
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
176
- opts.gulpTasksFolderPath = '.';
177
- }
178
-
179
- return require(opts.gulpTasksFolderPath + '/minify').js(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
180
- }
181
- },
182
-
183
- // Minify JPG images
184
- 'img-min-jpg': {
185
- subtasks: [],
186
- func: function(opts) {
187
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
188
- opts.gulpTasksFolderPath = '.';
189
- }
190
-
191
- return require(opts.gulpTasksFolderPath + '/minify').imgJpg(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
192
- }
193
- },
194
-
195
- // Minify PNG images
196
- 'img-min-png': {
197
- subtasks: [],
198
- func: function(opts) {
199
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
200
- opts.gulpTasksFolderPath = '.';
201
- }
202
-
203
- return require(opts.gulpTasksFolderPath + '/minify').imgPng(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
204
- }
205
- },
206
-
207
- // Minify GIF images
208
- 'img-min-gif': {
209
- subtasks: [],
210
- func: function(opts) {
211
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
212
- opts.gulpTasksFolderPath = '.';
213
- }
214
-
215
- return require(opts.gulpTasksFolderPath + '/minify').imgGif(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
216
- }
217
- },
218
-
219
- // Minify SVG images
220
- 'img-min-svg': {
221
- subtasks: [],
222
- func: function(opts) {
223
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
224
- opts.gulpTasksFolderPath = '.';
225
- }
226
-
227
- return require(opts.gulpTasksFolderPath + '/minify').imgSvg(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
228
- }
229
- },
230
-
231
- // Minify WEBP images
232
- 'img-min-webp': {
233
- subtasks: [],
234
- func: function(opts) {
235
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
236
- opts.gulpTasksFolderPath = '.';
237
- }
238
-
239
- return require(opts.gulpTasksFolderPath + '/minify').imgWebp(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
240
- }
241
- },
242
-
243
- // Minify images & copy into dist folder
244
- 'img-min': {
245
- subtasks: ['img-min-jpg', 'img-min-png', 'img-min-gif', 'img-min-svg', 'img-min-webp'],
246
- func: function(opts) {
247
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
248
- opts.gulpTasksFolderPath = '.';
249
- }
250
-
251
- return require(opts.gulpTasksFolderPath + '/minify').img(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
252
- }
253
- },
254
-
255
- // Extra actions on build
256
- 'extras': {
257
- subtasks: [],
258
- func: function(opts) {
259
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
260
- opts.gulpTasksFolderPath = '.';
261
- }
262
-
263
- return require(opts.gulpTasksFolderPath + '/extras')(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
264
- }
265
- },
266
-
267
- // Remove .tmp and dist folders from the repo
268
- 'clean': {
269
- subtasks: [],
270
- func: function(opts) {
271
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
272
- opts.gulpTasksFolderPath = '.';
273
- }
274
-
275
- return require(opts.gulpTasksFolderPath + '/clean')(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
276
- }
277
- },
278
-
279
- // Cache bust assets
280
- 'cache-bust': {
281
- subtasks: [],
282
- func: function(opts) {
283
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
284
- opts.gulpTasksFolderPath = '.';
285
- }
286
-
287
- return require(opts.gulpTasksFolderPath + '/cache-bust')(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
288
- }
289
- },
290
-
291
- // Start dev mode
292
- 'serve': {
293
- subtasks: [],
294
- func: function(opts) {
295
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
296
- opts.gulpTasksFolderPath = '.';
297
- }
298
-
299
- return require(opts.gulpTasksFolderPath + '/serve').src(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
300
- }
301
- },
302
-
303
- // Serve files from dist folder
304
- 'serve:dist': {
305
- func: function(opts) {
306
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
307
- opts.gulpTasksFolderPath = '.';
308
- }
309
-
310
- return require(opts.gulpTasksFolderPath + '/serve').dist(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
311
- }
312
- },
313
-
314
- // Show production site stay
315
- 'build-stat': {
316
- func: function(opts) {
317
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
318
- opts.gulpTasksFolderPath = '.';
319
- }
320
-
321
- return require(opts.gulpTasksFolderPath + '/build-stat')(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
322
- }
323
- },
324
-
325
- // Get images
326
- 'combine-files': {
327
- subtasks: [],
328
- func: function(opts) {
329
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
330
- opts.gulpTasksFolderPath = '.';
331
- }
332
-
333
- return require(opts.gulpTasksFolderPath + '/combine-files')(opts.gulp, opts.gulpPlugins, opts.gulpSettings);
334
- }
335
- },
336
-
337
- // Get images
338
- 'grab-images': {
339
- subtasks: [],
340
- func: function(opts) {
341
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
342
- opts.gulpTasksFolderPath = '.';
343
- }
344
-
345
- return require(opts.gulpTasksFolderPath + '/grab-images')(opts.gulp, opts.gulpSettings, opts.siteData);
346
- }
347
- },
348
-
349
- // Get global images
350
- 'grab-global-images': {
351
- subtasks: [],
352
- func: function(opts) {
353
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
354
- opts.gulpTasksFolderPath = '.';
355
- }
356
-
357
- return require(opts.gulpTasksFolderPath + '/grab-global-images')(opts.gulp, opts.gulpSettings, opts.siteData);
358
- }
359
- },
360
-
361
- // Copy json files to dist
362
- 'copy-json': {
363
- subtasks: [],
364
- func: function(opts) {
365
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
366
- opts.gulpTasksFolderPath = '.';
367
- }
368
-
369
- return require(opts.gulpTasksFolderPath + '/copy-json')(opts.gulp, opts.gulpSettings);
370
- }
371
- },
372
-
373
- // Copy files to build path
374
- 'copy-files-to-build-path': {
375
- subtasks: [],
376
- func: function(opts) {
377
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
378
- opts.gulpTasksFolderPath = '.';
379
- }
380
-
381
- return require(opts.gulpTasksFolderPath + '/copy-files-to-build-path')(opts.gulp, opts.gulpSettings);
382
- }
383
- },
384
-
385
- // Copy videos
386
- 'copy-videos': {
387
- subtasks: [],
388
- func: function(opts) {
389
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
390
- opts.gulpTasksFolderPath = '.';
391
- }
392
-
393
- return require(opts.gulpTasksFolderPath + '/copy-videos')(opts.gulp, opts.gulpSettings);
394
- }
395
- },
396
-
397
- // Grab theme json file from shared resources
398
- 'grab-theme-json': {
399
- subtasks: [],
400
- func: function(opts) {
401
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
402
- opts.gulpTasksFolderPath = '.';
403
- }
404
-
405
- if (opts.siteData.page && opts.siteData.page.themeFile) {
406
- return require(opts.gulpTasksFolderPath + '/grab-theme-json')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
407
- }
408
- }
409
- },
410
-
411
- // Grab tooltips json file from shared resources
412
- 'grab-tooltips-json': {
413
- subtasks: [],
414
- func: function(opts) {
415
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
416
- opts.gulpTasksFolderPath = '.';
417
- }
418
-
419
- return require(opts.gulpTasksFolderPath + '/grab-tooltips-json')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
420
- }
421
- },
422
-
423
- // copy resources directory into dist
424
- 'copy-resources-to-dist': {
425
- subtasks: [],
426
- func: function(opts) {
427
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
428
- opts.gulpTasksFolderPath = '.';
429
- }
430
-
431
- return require(opts.gulpTasksFolderPath + '/copy-resources-to-dist')(opts.gulp, opts.gulpSettings);
432
- }
433
- },
434
-
435
- // If siteData.pathSubdirectory exists...append the directory path to all of the existing RELATIVE URL paths
436
- 'add-path-subdirectories': {
437
- subtasks: [],
438
- func: function(opts) {
439
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
440
- opts.gulpTasksFolderPath = '.';
441
- }
442
-
443
- return require(opts.gulpTasksFolderPath + '/add-path-subdirectories')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
444
- }
445
- },
446
-
447
- // Create a build
448
- 'build': {
449
- func: function(opts) {
450
- if ('undefined' === typeof opts.gulpTasksFolderPath) {
451
- opts.gulpTasksFolderPath = '.';
452
- }
453
-
454
- return require(opts.gulpTasksFolderPath + '/build')(opts.gulp, opts.gulpPlugins, opts.gulpSettings, opts.siteData);
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
- }
468
- }
469
- };
470
-
471
- // Set 'gulp' to run 'build'
472
- tasks.default = tasks.build;
473
-
474
- return tasks;
475
- };