Skip to content

Commit

Permalink
feat: upgrade govuk-frontend and update crown logo
Browse files Browse the repository at this point in the history
  • Loading branch information
serenaabbott11 committed Feb 28, 2024
1 parent a28c0da commit 63edd80
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/nunjucksConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const nunjucksConfig = app => {
var env = nunjucks.configure([
path.resolve(__dirname, './dbTree/templates'),
path.resolve(__dirname, './templates'),
path.resolve(__dirname, '../node_modules/govuk-frontend/govuk'),
path.resolve(__dirname, '../node_modules/govuk-frontend/govuk/components/')
path.resolve(__dirname, '../node_modules/govuk-frontend/dist/govuk'),
path.resolve(__dirname, '../node_modules/govuk-frontend/dist/govuk/components/')
], {
autoescape: true
})
Expand Down
2 changes: 1 addition & 1 deletion app/templates/buying-for-schools.njk
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
{% block beforeContent %}
{{ govukPhaseBanner({
tag: {
text: "beta"
text: "Beta"
},
html: "This is a new service – your <a class='govuk-link' href='" + ghbsFeedbackHref() + "'>feedback</a> will help us to improve it."
}) }}
Expand Down
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ function sass () {
}

function assets () {
// /node_modules/govuk-frontend/govuk/assets
// /node_modules/govuk-frontend/dist/govuk/assets
return gulp
.src([
'node_modules/govuk-frontend/govuk/assets/**/*.*',
'node_modules/govuk-frontend/govuk/all.js',
'node_modules/govuk-frontend/dist/govuk/assets/**/*.*',
'node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js',
'app/assets/**/*.*'
])
.pipe(gulp.dest('public/assets'))
Expand Down
14 changes: 7 additions & 7 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 @@ -26,7 +26,7 @@
"express": "^4.17.1",
"express-basic-auth": "^1.2.0",
"express-device": "^0.4.2",
"govuk-frontend": "^3.11.0",
"govuk-frontend": "^5.2.0",
"gulp": "^4.0.2",
"gulp-cli": "^2.2.0",
"gulp-copy": "^4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion sass/main.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "node_modules/govuk-frontend/govuk/all";
@import "node_modules/govuk-frontend/dist/govuk/all";

@import "./components/flash-card";
@import "./components/cards";
Expand Down

0 comments on commit 63edd80

Please sign in to comment.