@@ -17,48 +17,19 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
1717 config . ga = ! ! config . ga ;
1818 config . ga_siteId = config . ga ? config . ga_siteId || '' : undefined ;
1919
20- // An array of templates that are excluded from getting jQuery and
21- // Bootstrap scripts.
22- var excludeScripts = [
23- 'grid' ,
24- 'signin'
25- ] ;
26-
27- // An array of templates that get the Popper.js script.
28- var includePopper = [
29- 'starter' ,
30- 'jumbotron' ,
31- 'album' ,
32- 'pricing' ,
33- 'checkout' ,
34- 'product' ,
35- 'cover' ,
36- 'carousel' ,
37- 'blog' ,
38- 'dashboard'
39- ] ;
40-
41- // An array of templates that get the Holder script.
42- var includeHolder = [
43- 'album' ,
44- 'pricing' ,
45- 'checkout' ,
46- 'product' ,
47- 'carousel' ,
48- 'blog'
49- ] ;
50-
5120 // Add common files from the Bootstrap folder.
5221 var boilerplateInputNode = inputFolderNode . folderForPath ( 'bootstrap' ) ;
5322 var boilerplateOutputNode = outputFolderNode . addFolderAtPath (
5423 boilerplateInputNode , './' , OverwriteOnConflict
5524 ) ;
5625
26+ // Exclude these paths when copying files over.
5727 var excludePaths = [
5828 'examples/' ,
5929 'js/'
6030 ] ;
6131
32+ // Exclude these files if the user doesn't select the serverExtras option.
6233 if ( ! config . serverExtras ) {
6334 excludePaths = excludePaths . concat ( [
6435 '.htaccess' ,
@@ -70,12 +41,15 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
7041 ] ) ;
7142 }
7243
44+ // Don't copy over the browser-upgrade.css if user doesn't select the
45+ // ieTags option.
7346 if ( ! config . ieTags ) {
7447 excludePaths = excludePaths . concat ( [
7548 'css/browser-upgrade.css'
7649 ] ) ;
7750 }
7851
52+ // forEach loop on the excluded paths and files.
7953 excludePaths . forEach ( function ( excludePath ) {
8054 var currentNode = null ;
8155
@@ -88,7 +62,7 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
8862 boilerplateOutputNode . excludeNode ( currentNode ) ;
8963 } ) ;
9064
91- // Add vendor script libraries
65+ // Add vendor script libraries.
9266 function addVendorScript ( vendorFileName ) {
9367 if ( vendorFileName ) {
9468 var vendorInputFile = inputFolderNode . fileForPath (
@@ -119,7 +93,7 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
11993 addVendorScript ( vendorScriptMap . holder ) ;
12094 }
12195
122- // Add template styles
96+ // Add template styles.
12397 var styleInputFolderNode = inputFolderNode . folderForPath (
12498 'templates/' + config . base
12599 ) ;
@@ -137,7 +111,7 @@ generator.applyToOutputNode = function(outputFolderNode, inputFolderNode) {
137111 }
138112 }
139113
140- // Translate our configuration to the index page
114+ // Translate the configuration to the index page.
141115 var boilerplateIndexNode = outputFolderNode . fileForPath ( 'index.html' ) ;
142116
143117 if ( boilerplateIndexNode !== null ) {
0 commit comments