Skip to content

Commit c7f21f1

Browse files
author
Mehdy Dara
committed
Merge pull request #104 from eleven-labs/fix-wiredep-exclude
Fix exclude condition in wiredep for Angular-UI
2 parents df4913b + d86292f commit c7f21f1

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

app/src/compile.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ module.exports = function () {
3333
this.props.jQuery
3434
]);
3535

36-
this.model.wiredepExclusions = [
37-
this.props.ui.name
38-
];
39-
4036
this.model.modulesDependencies = _.flatten([
4137
angularModules,
4238
this.props.resource.module,

app/src/format.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ module.exports = function () {
2424

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

27-
this.wiredepExclusions = _.chain(this.model.wiredepExclusions)
28-
.filter(_.isString)
29-
.map(function (dependency) {
30-
return '\'' + dependency + '\'';
31-
})
32-
.value()
33-
.join(', ');
34-
3527
this.modulesDependencies = _.chain(this.model.modulesDependencies)
3628
.filter(_.isString)
3729
.map(function (dependency) {

app/templates/gulp/_wiredep.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ gulp.task('wiredep', function () {
99
return gulp.src('src/index.html')
1010
.pipe(wiredep({
1111
directory: 'bower_components',
12-
exclude: [<%= wiredepExclusions %>],
12+
exclude: [/bootstrap-sass-official/, /bootstrap.js/<% if(props.cssPreprocessor.key !== 'css') { %>, /bootstrap.css/<% } %>],
1313
}))
1414
.pipe(gulp.dest('src'));
1515
});

0 commit comments

Comments
 (0)