Skip to content

Commit

Permalink
Update review app to rebuild govuk-frontend on build/watch
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Apr 6, 2023
1 parent c3bdcfa commit 06bb76f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ runs:
if: steps.build-cache.outputs.cache-hit != 'true'
shell: bash

run: |
npm run build:package
npm run build:app
run: npm run build:app
3 changes: 3 additions & 0 deletions app/tasks/build/dist.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import gulp from 'gulp'

import { paths } from '../../../config/index.js'
import { npm } from '../../../tasks/index.mjs'
import { assets, clean, scripts, styles } from '../index.mjs'

/**
Expand All @@ -8,6 +10,7 @@ import { assets, clean, scripts, styles } from '../index.mjs'
*/
export default gulp.series(
clean,
npm.script('build:package', paths.root),
gulp.parallel(
assets,
scripts,
Expand Down
10 changes: 8 additions & 2 deletions app/tasks/watch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export function watch () {
`!${slash(paths.src)}/govuk/vendor/*`
], gulp.parallel(
npm.script('lint:scss'),
styles
gulp.series(
npm.script('build:package', paths.root),
styles
)
)),

gulp.watch([
Expand All @@ -32,7 +35,10 @@ export function watch () {
`${slash(paths.src)}/govuk/**/*.mjs`
], gulp.parallel(
npm.script('lint:js'),
scripts
gulp.series(
npm.script('build:package', paths.root),
scripts
)
))
])
}

0 comments on commit 06bb76f

Please sign in to comment.