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

Commit d551200

Browse files
committed
fix(gulpfile): gulp bower not wiring deps correctly
Closes #1199
1 parent 67da47d commit d551200

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

templates/common/root/_gulpfile.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ gulp.task('start:client', ['start:server', <% if (coffee) { %>'coffee', <% } %>'
8686

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

9696
gulp.task('start:server:test', function() {
9797
$.connect.server({
98-
root: ['test', yeoman.app, '.tmp'],
98+
root: ['test', yeoman.app, '.tmp', 'bower_components'],
9999
livereload: true,
100100
port: 9001
101101
});
@@ -153,10 +153,9 @@ gulp.task('test', ['start:server:test'], function () {
153153
gulp.task('bower', function () {
154154
return gulp.src(paths.views.main)
155155
.pipe(wiredep({
156-
directory: yeoman.app + '/bower_components',
157-
ignorePath: '..'
156+
ignorePath: '../bower_components/'
158157
}))
159-
.pipe(gulp.dest(yeoman.app + '/views'));
158+
.pipe(gulp.dest(yeoman.app));
160159
});
161160

162161
///////////

0 commit comments

Comments
 (0)