Skip to content

Commit

Permalink
Merge pull request #104 from eleven-labs/fix-wiredep-exclude
Browse files Browse the repository at this point in the history
Fix exclude condition in wiredep for Angular-UI
  • Loading branch information
Mehdy Dara committed Nov 9, 2014
2 parents df4913b + d86292f commit c7f21f1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 0 additions & 4 deletions app/src/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ module.exports = function () {
this.props.jQuery
]);

this.model.wiredepExclusions = [
this.props.ui.name
];

this.model.modulesDependencies = _.flatten([
angularModules,
this.props.resource.module,
Expand Down
8 changes: 0 additions & 8 deletions app/src/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ module.exports = function () {

this.bowerResolutions = processBowerDependencies(this.model.bowerResolutions);

this.wiredepExclusions = _.chain(this.model.wiredepExclusions)
.filter(_.isString)
.map(function (dependency) {
return '\'' + dependency + '\'';
})
.value()
.join(', ');

this.modulesDependencies = _.chain(this.model.modulesDependencies)
.filter(_.isString)
.map(function (dependency) {
Expand Down
2 changes: 1 addition & 1 deletion app/templates/gulp/_wiredep.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gulp.task('wiredep', function () {
return gulp.src('src/index.html')
.pipe(wiredep({
directory: 'bower_components',
exclude: [<%= wiredepExclusions %>],
exclude: [/bootstrap-sass-official/, /bootstrap.js/<% if(props.cssPreprocessor.key !== 'css') { %>, /bootstrap.css/<% } %>],
}))
.pipe(gulp.dest('src'));
});

0 comments on commit c7f21f1

Please sign in to comment.