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:
parent
ba9b779ba7
commit
5c856d5b19
@ -23,7 +23,11 @@ There are several gulp tasks available to build various parts of the site, but t
|
|||||||
|
|
||||||
$ gulp
|
$ 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:
|
To build the site for deployment, run the following:
|
||||||
|
|
||||||
|
@ -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.other, ['static']);
|
||||||
gulp.watch([config.globs.html, config.templateFile], ['markup']);
|
gulp.watch([config.globs.html, config.templateFile], ['markup']);
|
||||||
gulp.watch(config.globs.sass, ['compass']);
|
gulp.watch(config.globs.sass, ['compass']);
|
||||||
|
Loading…
Reference in New Issue
Block a user