Seeing as CSS is getting bundled via webpack, we should really be
triggering the webpack:build task whenever it changes.
Got rid of the misleading "js" task in the process.
gulp.task('flow', ['typecheck']);
gulp.task('flow', ['typecheck']);
-gulp.task('js', ['build', 'lint', 'test', 'typecheck']);
-
gulp.task('lint', () => (
gulp.src('src/**/*.js')
.pipe(eslint())
gulp.task('lint', () => (
gulp.src('src/**/*.js')
.pipe(eslint())
gulp.task('watch', () => {
watching = true;
gulp.task('watch', () => {
watching = true;
- gulp.watch('src/**/*.js', ['js']);
+ gulp.watch('src/**/*.{css,js}', ['build', 'lint', 'test', 'typecheck']);
});
gulp.task('webpack:build', callback => {
});
gulp.task('webpack:build', callback => {