Skip to content

Commit 0c44489

Browse files
committed
Regen docs when source files are changed while server is running
1 parent d97c609 commit 0c44489

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ gulp.task( 'lint', lintTask );
3434
gulp.task( 'build', buildTask );
3535
gulp.task( 'test', [ 'build' ], testTask );
3636
gulp.task( 'doc', [ 'build', 'typescript' ], docTask );
37-
gulp.task( 'serve', [ 'typescript' ], serveTask );
37+
gulp.task( 'serve', [ 'typescript', 'doc' ], serveTask );
3838
gulp.task( 'typescript', typescriptTask ); // for examples
3939

4040

@@ -91,6 +91,7 @@ function lintTask() {
9191

9292
function serveTask() {
9393
gulp.watch( './examples/live-example/src/**', [ 'typescript' ] );
94+
gulp.watch( './src/**', [ 'doc' ] );
9495

9596
connect.server();
9697
}

0 commit comments

Comments
 (0)