Skip to content

Commit

Permalink
update dfe-frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Jones committed May 5, 2024
1 parent ef4d41a commit 7c65867
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/assets/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $govuk-new-link-styles: true;
$govuk-global-styles: true;

@import 'node_modules/govuk-frontend/dist/govuk/all';
@import 'node_modules/dfe-webfrontend/packages/dfefrontend';
@import 'node_modules/dfe-frontend/packages/dfefrontend';

@import './_hero.scss';
@import './_topnav.scss';
Expand Down
8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ gulp.task('copy-govuk-js', function () {

gulp.task('copy-dfefrontend-js', function () {
return gulp
.src('node_modules/dfe-webfrontend/dist/dfefrontend.js')
.src('node_modules/dfe-frontend/dist/dfefrontend.js')
.pipe(copy('app/assets/js', { prefix: 3 }))
})

Expand All @@ -48,7 +48,7 @@ gulp.task(
gulp.task('copy-assets', function () {
return gulp
.src(
'node_modules/dfe-webfrontend/packages/assets/**/*.{jpg,jpeg,png,gif,svg}',
'node_modules/dfe-frontend/packages/assets/**/*.{jpg,jpeg,png,gif,svg}',
)
.pipe(copy('app/assets/images', { prefix: 6 }))
})
Expand Down Expand Up @@ -97,11 +97,11 @@ gulp.task('watch', function () {
gulp.watch('app/assets/images/**/*.png', gulp.series('process-images'))
gulp.watch('app/assets/images/**/*', gulp.series('process-images-copy'))
gulp.watch(
'node_modules/dfe-webfrontend/packages/assets/**/*.{jpg,jpeg,png,gif,svg}',
'node_modules/dfe-frontend/packages/assets/**/*.{jpg,jpeg,png,gif,svg}',
gulp.series('copy-assets'),
)
gulp.watch(
'node_modules/dfe-webfrontend/dist/dfefrontend.js',
'node_modules/dfe-frontend/dist/dfefrontend.js',
gulp.series('process-js'),
)
gulp.watch('app/**/*.*').on('change', browserSync.reload)
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var nunjuckEnv = nunjucks.configure(
[
'app/views',
'node_modules/govuk-frontend/dist/',
'node_modules/dfe-webfrontend/packages/components',
'node_modules/dfe-frontend/packages/components',
],
{
autoescape: true,
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"body-parser": "^1.20.2",
"cheerio": "^1.0.0-rc.12",
"clipboard": "^2.0.11",
"dfe-webfrontend": "^1.1.11",
"dfe-frontend": "^2.0.1",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"express-recaptcha": "^5.1.0",
Expand Down

0 comments on commit 7c65867

Please sign in to comment.