Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Commit

Permalink
Update Bower dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
silvenon committed Jun 27, 2015
1 parent a5d8cc8 commit 5c5af36
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
27 changes: 23 additions & 4 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,16 +149,35 @@ module.exports = generators.Base.extend({

if (this.includeBootstrap) {
if (this.includeSass) {
bowerJson.dependencies['bootstrap-sass'] = '~3.3.0';
bowerJson.dependencies['bootstrap-sass'] = '~3.3.5';
bowerJson.overrides = {
'bootstrap-sass': {
'main': [
'assets/stylesheets/_bootstrap.scss',
'assets/fonts/bootstrap/*',
'assets/javascripts/bootstrap.js'
]
}
};
} else {
bowerJson.dependencies['bootstrap'] = '~3.3.0';
bowerJson.dependencies['bootstrap'] = '~3.3.5';
bowerJson.overrides = {
'bootstrap': {
'main': [
'less/bootstrap.less',
'dist/css/bootstrap.css',
'dist/js/bootstrap.js',
'dist/fonts/*'
]
}
};
}
} else {
bowerJson.dependencies['jquery'] = '~1.11.1';
bowerJson.dependencies['jquery'] = '~2.1.4';
}

if (this.includeModernizr) {
bowerJson.dependencies['modernizr'] = '~2.8.2';
bowerJson.dependencies['modernizr'] = '~2.8.3';
}

this.fs.writeJSON('bower.json', bowerJson);
Expand Down
3 changes: 0 additions & 3 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css styles/vendor.css -->
<!-- bower:css -->
<% if (includeBootstrap && !includeSass) { -%>
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css">
<% } -%>
<!-- endbower -->
<!-- endbuild -->
<!-- build:css(.tmp) styles/main.css -->
Expand Down

0 comments on commit 5c5af36

Please sign in to comment.