From 5c856d5b19c1c618aaf0ed256488390b5d6cfc3b Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 25 Nov 2014 08:51:22 -0500 Subject: [PATCH] Updating gulpfile to run karma separately. Karma appears to mess up gulp.watch calls. As a result, the site was not being rebuilt when files were changed. --- README.md | 6 +++++- gulpfile.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 39486a9..349c06f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,11 @@ There are several gulp tasks available to build various parts of the site, but t $ gulp -This will build the site into the ./build directory, start a local start on port 8080, begin watching the source files for modifications, and start a Karma server to automatically run tests. The site will automatically be rebuilt when files are changed. Also, if you browser has the LiveReload extension, then the page will be reloaded. +This will build the site into the ./build directory, start a local start on port 8080, and begin watching the source files for modifications. The site will automatically be rebuilt when files are changed. Also, if you browser has the LiveReload extension, then the page will be reloaded. + +To automatically run Karma test, run the following: + + $ gulp karma To build the site for deployment, run the following: diff --git a/gulpfile.js b/gulpfile.js index ee111b8..83c5312 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -24,7 +24,7 @@ function browserifyPipe() { }); } -gulp.task('default', ['server', 'karma'], function() { +gulp.task('default', ['server'], function() { gulp.watch(config.globs.other, ['static']); gulp.watch([config.globs.html, config.templateFile], ['markup']); gulp.watch(config.globs.sass, ['compass']);