File tree Expand file tree Collapse file tree 3 files changed +21
-18
lines changed
Expand file tree Collapse file tree 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() {
445445 '\n' +
446446 chalk . yellow . bold ( '\n grunt bower-install' ) ;
447447
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+
448464 if ( this . options [ 'skip-install' ] ) {
449465 console . log ( howToInstall ) ;
450466 } 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 ) ;
468468 }
469469} ;
470470
Original file line number Diff line number Diff line change 11<% if (compassBootstrap) { %>$icon-font-path : " /bower_components/sass-bootstrap/fonts/" ;
22
3+ @import ' sass-bootstrap/lib/bootstrap' ;
4+
35<% } %>.browsehappy {
46 margin : 0.2em 0 ;
57 background : #ccc ;
Original file line number Diff line number Diff line change @@ -171,7 +171,8 @@ module.exports = function (grunt) {
171171 app : { < % if ( jade ) { % >
172172 html : '<%%= yeoman.app %>/views/index.jade' , < % } else { % >
173173 html : '<%%= yeoman.app %>/views/index.html' , < % } % >
174- ignorePath: '< % %= yeoman . app % > /'
174+ ignorePath: '< % %= yeoman . app % > /'< % if ( compass && bootstrap ) { % > ,
175+ exclude: ['sass-bootstrap']< % } % >
175176 }
176177 } , < % if ( coffee ) { % >
177178
You can’t perform that action at this time.
0 commit comments