Skip to content

Commit

Permalink
Switch to gulp-watch
Browse files Browse the repository at this point in the history
Resolves #365
  • Loading branch information
jamesplease committed Jul 18, 2016
1 parent 70baf9c commit 56329c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const watchFiles = ['src/**/*', 'test/**/*', 'package.json', '**/.eslintrc'];

// Run the headless unit tests as you make changes.
function watch() {
gulp.watch(watchFiles, ['test']);
$.watch(watchFiles, test);
}

function testBrowser() {
Expand Down Expand Up @@ -157,7 +157,7 @@ function testBrowser() {
}, null, function() {
if (firstBuild) {
$.livereload.listen({port: 35729, host: 'localhost', start: true});
var watcher = gulp.watch(watchFiles, ['lint']);
watch();
} else {
$.livereload.reload('./tmp/__spec-build.js');
}
Expand Down
1 change: 1 addition & 0 deletions app/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.1",
"gulp-watch": "^4.3.8",
"isparta": "^4.0.0",
"json-loader": "^0.5.3",
"mocha": "^2.3.4",
Expand Down

0 comments on commit 56329c8

Please sign in to comment.