Skip to content

Commit

Permalink
Fixed a bug in the gulpfile which caused bad /dev/ rebuilds when watc…
Browse files Browse the repository at this point in the history
…hing files with gulp serve (#1276)
  • Loading branch information
dbemiller authored and Nate Cozi committed Jun 7, 2017
1 parent fd7ae19 commit 53abddd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ gulp.task('clean', function () {
.pipe(clean());
});

gulp.task('devpack', function () {
gulp.task('devpack', ['clean'], function () {
webpackConfig.devtool = 'source-map';
const analyticsSources = helpers.getAnalyticsSources(analyticsDirectory);
return gulp.src([].concat(analyticsSources, 'src/prebid.js'))
Expand Down Expand Up @@ -181,12 +181,11 @@ gulp.task('watch', function () {
'src/**/*.js',
'test/spec/**/*.js',
'!test/spec/loaders/**/*.js'
], ['lint', 'webpack', 'devpack', 'test']);
], ['clean', 'lint', 'webpack', 'devpack', 'test']);
gulp.watch([
'loaders/**/*.js',
'test/spec/loaders/**/*.js'
], ['lint', 'mocha']);
gulp.watch(['integrationExamples/gpt/*.html'], ['test']);
connect.server({
https: argv.https,
port: port,
Expand Down

0 comments on commit 53abddd

Please sign in to comment.