Skip to content

Commit

Permalink
Merge pull request #622 from eleven-labs/fix-plain-css
Browse files Browse the repository at this point in the history
Add overrides pprt in bower.json for plain CSS
  • Loading branch information
Mehdy Dara committed Jun 22, 2015
2 parents 85d356a + c8aa8ed commit 6162048
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/templates/_bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@
"devDependencies": {
"angular-mocks": "<%- props.angularVersion %>"
},
<% if (props.cssPreprocessor.key === 'none' && props.ui.key === 'bootstrap') { -%>
"overrides": {
"bootstrap": {
"main": [
"dist/css/bootstrap.css",
"dist/js/bootstrap.js"
]
}
},
<% } -%>
"resolutions": {
<% if (props.jQuery.key === 'jquery1') { -%>
"jquery": "~1.11.3",
Expand Down
8 changes: 8 additions & 0 deletions test/template/test-bower.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,12 @@ describe('gulp-angular bower template', function () {
result.should.match(/traceur-runtime/);
});

it('should add overrides pprt for css bootstrap', function() {
model.props.ui.key = 'bootstrap';
model.props.cssPreprocessor.key = 'none';

var result = bower(model);
result.should.match(/overrides/);
result.should.match(/dist\/css\/bootstrap.css/);
});
});

0 comments on commit 6162048

Please sign in to comment.