Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 9f0bbdf

Browse files
committed
Restructured the placement of the arrays.
1 parent e1eb3e4 commit 9f0bbdf

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

_generator.js

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,37 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
4949
]);
5050
}
5151

52+
// An array of templates that are excluded from getting jQuery and
53+
// Bootstrap scripts.
54+
var excludeScripts = [
55+
'grid',
56+
'signin'
57+
];
58+
59+
// An array of templates that get the Popper.js script.
60+
var includePopper = [
61+
'starter',
62+
'jumbotron',
63+
'album',
64+
'pricing',
65+
'checkout',
66+
'product',
67+
'cover',
68+
'carousel',
69+
'blog',
70+
'dashboard'
71+
];
72+
73+
// An array of templates that get the Holder script.
74+
var includeHolder = [
75+
'album',
76+
'pricing',
77+
'checkout',
78+
'product',
79+
'carousel',
80+
'blog'
81+
];
82+
5283
// forEach loop on the excluded paths and files.
5384
excludePaths.forEach(function(excludePath) {
5485
var currentNode = null;
@@ -76,37 +107,6 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
76107
}
77108
};
78109

79-
// An array of templates that get the Popper.js script.
80-
var includePopper = [
81-
'starter',
82-
'jumbotron',
83-
'album',
84-
'pricing',
85-
'checkout',
86-
'product',
87-
'cover',
88-
'carousel',
89-
'blog',
90-
'dashboard'
91-
];
92-
93-
// An array of templates that get the Holder script.
94-
var includeHolder = [
95-
'album',
96-
'pricing',
97-
'checkout',
98-
'product',
99-
'carousel',
100-
'blog'
101-
];
102-
103-
// An array of templates that are excluded from getting jQuery and
104-
// Bootstrap scripts.
105-
var excludeScripts = [
106-
'grid',
107-
'signin'
108-
];
109-
110110
// Add jQuery and Bootstrap to templates that are not in the excludeScripts
111111
// array.
112112
if (!excludeScripts.includes(config.base)) {

0 commit comments

Comments
 (0)