File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ var Generator = module.exports = function Generator(args, options) {
99 yeoman . generators . Base . apply ( this , arguments ) ;
1010 this . argument ( 'appname' , { type : String , required : false } ) ;
1111 this . appname = this . appname || path . basename ( process . cwd ( ) ) ;
12- this . indexFile = this . engine ( this . read ( '../../templates/common/index.html' ) ,
13- this ) ;
1412
1513 args = [ 'main' ] ;
1614
@@ -130,6 +128,10 @@ Generator.prototype.askForModules = function askForModules() {
130128 } . bind ( this ) ) ;
131129} ;
132130
131+ Generator . prototype . readIndex = function readIndex ( ) {
132+ this . indexFile = this . engine ( this . read ( '../../templates/common/index.html' ) , this ) ;
133+ } ;
134+
133135// Waiting a more flexible solution for #138
134136Generator . prototype . bootstrapFiles = function bootstrapFiles ( ) {
135137 var sass = this . compassBootstrap ;
Original file line number Diff line number Diff line change 3535 ga ( 'send' , 'pageview' ) ;
3636 </ script >
3737
38- < script src ="bower_components/jquery/jquery.js "> </ script >
38+ < % if (bootstrap) { % > < script src ="bower_components/jquery/jquery.js "> </ script > < % } % >
3939 < script src ="bower_components/angular/angular.js "> </ script >
4040 </ body >
4141</ html >
You can’t perform that action at this time.
0 commit comments