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

Commit 6409e19

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

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Diff for: templates/common/root/_gulpfile.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,21 @@ gulp.task('start:server', function() {
8989
root: [yeoman.app, '.tmp'],
9090
livereload: true,
9191
// Change this to '0.0.0.0' to access the server from outside.
92-
port: 9000
92+
port: 9000,
93+
middleware: function (connect) {
94+
return [connect().use('/bower_components',connect.static('./bower_components'))];
95+
}
9396
});
9497
});
9598

9699
gulp.task('start:server:test', function() {
97100
$.connect.server({
98101
root: ['test', yeoman.app, '.tmp'],
99102
livereload: true,
100-
port: 9001
103+
port: 9001,
104+
middleware: function (connect) {
105+
return [connect().use('/bower_components',connect.static('./bower_components'))];
106+
}
101107
});
102108
});
103109

@@ -153,10 +159,9 @@ gulp.task('test', ['start:server:test'], function () {
153159
gulp.task('bower', function () {
154160
return gulp.src(paths.views.main)
155161
.pipe(wiredep({
156-
directory: yeoman.app + '/bower_components',
157162
ignorePath: '..'
158163
}))
159-
.pipe(gulp.dest(yeoman.app + '/views'));
164+
.pipe(gulp.dest(yeoman.app));
160165
});
161166

162167
///////////

0 commit comments

Comments
 (0)