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.
This commit is contained in:
Jeff Avallone 2014-11-25 08:51:22 -05:00
parent ba9b779ba7
commit 5c856d5b19
2 changed files with 6 additions and 2 deletions

View File

@ -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:

View File

@ -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']);