Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
fix(gulpfile): gulp bower not wiring deps correctly
Browse files Browse the repository at this point in the history
Closes #1199
  • Loading branch information
alfonso-presa committed Jan 11, 2016
1 parent 67da47d commit d551200
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions templates/common/root/_gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ gulp.task('start:client', ['start:server', <% if (coffee) { %>'coffee', <% } %>'

gulp.task('start:server', function() {
$.connect.server({
root: [yeoman.app, '.tmp'],
root: [yeoman.app, '.tmp', 'bower_components'],
livereload: true,
// Change this to '0.0.0.0' to access the server from outside.
port: 9000
Expand All @@ -95,7 +95,7 @@ gulp.task('start:server', function() {

gulp.task('start:server:test', function() {
$.connect.server({
root: ['test', yeoman.app, '.tmp'],
root: ['test', yeoman.app, '.tmp', 'bower_components'],
livereload: true,
port: 9001
});
Expand Down Expand Up @@ -153,10 +153,9 @@ gulp.task('test', ['start:server:test'], function () {
gulp.task('bower', function () {
return gulp.src(paths.views.main)
.pipe(wiredep({
directory: yeoman.app + '/bower_components',
ignorePath: '..'
ignorePath: '../bower_components/'
}))
.pipe(gulp.dest(yeoman.app + '/views'));
.pipe(gulp.dest(yeoman.app));
});

///////////
Expand Down

0 comments on commit d551200

Please sign in to comment.