File tree 3 files changed +21
-18
lines changed
3 files changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -445,26 +445,26 @@ Generator.prototype._injectDependencies = function _injectDependencies() {
445
445
'\n' +
446
446
chalk . yellow . bold ( '\n grunt bower-install' ) ;
447
447
448
+ var wireDepConfig = {
449
+ directory : 'app/bower_components' ,
450
+ bowerJson : JSON . parse ( fs . readFileSync ( './bower.json' ) ) ,
451
+ ignorePath : 'app/' ,
452
+ htmlFile : 'app/views/index.html' ,
453
+ cssPattern : '<link rel="stylesheet" href="{{filePath}}">'
454
+ } ;
455
+
456
+ if ( this . jade ) {
457
+ wireDepConfig . htmlFile = 'app/views/index.jade' ;
458
+ }
459
+
460
+ if ( this . compass && this . bootstrap ) {
461
+ wireDepConfig . exclude = [ 'sass-bootstrap' ] ;
462
+ }
463
+
448
464
if ( this . options [ 'skip-install' ] ) {
449
465
console . log ( howToInstall ) ;
450
466
} else {
451
- if ( this . jade ) {
452
- wiredep ( {
453
- directory : 'app/bower_components' ,
454
- bowerJson : JSON . parse ( fs . readFileSync ( './bower.json' ) ) ,
455
- ignorePath : 'app/' ,
456
- htmlFile : 'app/views/index.jade' ,
457
- cssPattern : '<link rel="stylesheet" href="{{filePath}}">'
458
- } ) ;
459
- } else {
460
- wiredep ( {
461
- directory : 'app/bower_components' ,
462
- bowerJson : JSON . parse ( fs . readFileSync ( './bower.json' ) ) ,
463
- ignorePath : 'app/' ,
464
- htmlFile : 'app/views/index.html' ,
465
- cssPattern : '<link rel="stylesheet" href="{{filePath}}">'
466
- } ) ;
467
- }
467
+ wiredep ( wireDepConfig ) ;
468
468
}
469
469
} ;
470
470
Original file line number Diff line number Diff line change 1
1
<% if (compassBootstrap) { %>$icon-font-path : " /bower_components/sass-bootstrap/fonts/" ;
2
2
3
+ @import ' sass-bootstrap/lib/bootstrap' ;
4
+
3
5
<% } %>.browsehappy {
4
6
margin : 0.2em 0 ;
5
7
background : #ccc ;
Original file line number Diff line number Diff line change @@ -171,7 +171,8 @@ module.exports = function (grunt) {
171
171
app : { < % if ( jade ) { % >
172
172
html : '<%%= yeoman.app %>/views/index.jade' , < % } else { % >
173
173
html : '<%%= yeoman.app %>/views/index.html' , < % } % >
174
- ignorePath: '< % %= yeoman . app % > /'
174
+ ignorePath: '< % %= yeoman . app % > /'< % if ( compass && bootstrap ) { % > ,
175
+ exclude: ['sass-bootstrap']< % } % >
175
176
}
176
177
} , < % if ( coffee ) { % >
177
178
You can’t perform that action at this time.
0 commit comments