Skip to content

Commit 99f727f

Browse files
Add watch task comments
1 parent 072ed29 commit 99f727f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

gulpfile.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,33 @@ gulp.task(
7575

7676
gulp.task('docs:watch', () =>
7777
Promise.all([
78+
/**
79+
* Watch and render Nunjucks
80+
*/
7881
gulp.watch(
7982
[
8083
join(config.paths.app, 'src/**/*.njk'),
8184
join(config.paths.pkg, 'src/nhsuk/**/*.njk')
8285
],
8386
buildHTML
8487
),
88+
89+
/**
90+
* Watch and reload HTML pages
91+
*/
8592
gulp
8693
.watch([join(config.paths.root, 'dist/**/*.html')])
8794
.on('change', browserSync.reload),
95+
96+
/**
97+
* Watch and copy minified CSS and JS
98+
*/
8899
gulp.watch([join(config.paths.root, 'dist/*.min.{css,css.map}')], copyCSS),
89100
gulp.watch([join(config.paths.root, 'dist/*.min.{js,js.map}')], copyJS),
101+
102+
/**
103+
* Watch and copy assets
104+
*/
90105
gulp.watch(
91106
[join(config.paths.pkg, 'src/nhsuk/assets/**/*')],
92107
copyBinaryAssets

0 commit comments

Comments
 (0)