-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update MoJ frontend, dropping jQuery which is no longer required #303
Conversation
…rrently included
…ckage.json because we’d usually want to stick to an LTS version rather than move to the latest
).forEach(dir => { | ||
router.use('/assets', express.static(path.join(process.cwd(), dir), cacheControl)) | ||
}) | ||
|
||
Array.of('/node_modules/govuk_frontend_toolkit/images').forEach(dir => { | ||
router.use('/assets/images/icons', express.static(path.join(process.cwd(), dir), cacheControl)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you mean to remove this too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup i explained in that commit that we don't even install the deprecated govuk_frontend_toolkit
package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Seems the sortable table component still needs jQuery by the way |
Odd! There's a still-open issue from 2021 about this: ministryofjustice/moj-frontend#134. jQuery is definitely still being used on |
Might be worth noting that cypress still bundles jquery so it will remain available for integration tests