dustinspecker / generator-ng-poly

Yeoman generator for modular AngularJS apps with Gulp and optional Polymer support
MIT License
237 stars 50 forks source link

devDependencies: true not working #256

Closed jboothe closed 8 years ago

jboothe commented 8 years ago

When adding the line devDependencies: true, to line# 171 of gulp/build.js, devDependencies from bower.json are not pulled into the project via wiredep.

return gulp.src(config.buildDir + 'index.html')
        .pipe($.wiredep.stream({
          devDependencies: true,
          exclude: [/bootstrap[.]js/],
          ...

Is there something specific with your gulp files that may cause this or is this a wiredep issue?

Thanks for your insight.

jboothe commented 8 years ago

Solved it.

Wiredep was injecting the proper file refs into the html page but mainBowerFiles needed to know to what files to target. Adding {includeDev: true} to mainBowerFiles on line 115 did the trick.

return gulp.src($.mainBowerFiles({includeDev: true}),
dustinspecker commented 8 years ago

Glad to hear. Thank you for providing the solution.