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 6409e19
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions templates/common/root/_gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,21 @@ gulp.task('start:server', function() {
root: [yeoman.app, '.tmp'],
livereload: true,
// Change this to '0.0.0.0' to access the server from outside.
port: 9000
port: 9000,
middleware: function (connect) {
return [connect().use('/bower_components',connect.static('./bower_components'))];
}
});
});

gulp.task('start:server:test', function() {
$.connect.server({
root: ['test', yeoman.app, '.tmp'],
livereload: true,
port: 9001
port: 9001,
middleware: function (connect) {
return [connect().use('/bower_components',connect.static('./bower_components'))];
}
});
});

Expand Down Expand Up @@ -153,10 +159,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: '..'
}))
.pipe(gulp.dest(yeoman.app + '/views'));
.pipe(gulp.dest(yeoman.app));
});

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

0 comments on commit 6409e19

Please sign in to comment.