Adjust start server task to use nodemon to recover from syntax errors

This commit is contained in:
Blade Barringer
2015-10-25 09:54:09 -05:00
parent a5c0bae273
commit 7fe2a19bc5
2 changed files with 3 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ gulp.task('test:prepare:mongo', (cb) => {
gulp.task('test:prepare:server', ['test:prepare:mongo'], () => {
if (!server) {
server = exec(`NODE_DB_URI="${TEST_DB_URI}" PORT="${TEST_SERVER_PORT}" node ./website/src/server.js`);
server = exec(`NODE_DB_URI="${TEST_DB_URI}" PORT="${TEST_SERVER_PORT}" ./node_modules/.bin/nodemon ./website/src/server.js`);
}
});
@@ -312,7 +312,7 @@ gulp.task('test:api', ['test:prepare:server'], (done) => {
});
});
gulp.task('test:api:watch', () => {
gulp.task('test:api:watch', ['test:prepare:server'], () => {
process.env.RUN_INTEGRATION_TEST_FOREVER = true;
gulp.watch(['website/src/**', 'test/api/**'], ['test:api']);
});