Skip to content

Commit dfe8842

Browse files
committed
Fix gulp watch and remove extra spaces in bower.json
1 parent 62fc863 commit dfe8842

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

app/templates/_bower.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "<%= _.slugify(projectName) %>",
3-
"version": "0.0.1",
4-
"dependencies": {
5-
<% if (includeBootstrap) { %>"jquery": "^2.1.3",
6-
"bootstrap-sass-official": "^3.3.2"<%= includeModernizr ? "," : "" %><% } %>
7-
<% if (includeModernizr) { %>"modernizr": "^2.8.3"<% } %>
3+
"version": "0.0.0",
4+
"dependencies": {<% if (includeBootstrap) { %>
5+
"jquery": "^2.1.3",
6+
"bootstrap-sass-official": "^3.3.2"<%= includeModernizr ? "," : "" %><% } if (includeModernizr) { %>
7+
"modernizr": "^2.8.3"<% } %>
88
}
99
}

app/templates/_gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ gulp.task('extras', function () {
8787
});
8888

8989
gulp.task('serve', function() {
90-
gulp.src('./dist')
90+
gulp.src('dist')
9191
.pipe($.webserver({
9292
livereload: true,
9393
port: 9000
@@ -133,13 +133,13 @@ gulp.task('build', ['clean-bundle'], bundler.stop.bind(bundler));
133133

134134
gulp.task('build:production', sync(['set-production', 'build', 'minify']));
135135

136-
gulp.task('serve:production', ['build:production', 'serve']);
136+
gulp.task('serve:production', sync(['build:production', 'serve']));
137137
<% if (includeJest) { %>
138138
gulp.task('test', ['jest']);
139139
<% } %>
140140
gulp.task('default', ['build']);
141141

142-
gulp.task('watch', ['clean-bundle', 'serve'], function() {
142+
gulp.task('watch', sync(['clean-bundle', 'serve']), function() {
143143
bundler.watch();
144144
gulp.watch('app/*.html', ['html']);
145145
gulp.watch('app/styles/**/*.scss', ['styles']);

0 commit comments

Comments
 (0)