Skip to content
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

Upgrading dependencies #66

Merged
merged 1 commit into from
Jan 6, 2022
Merged

Upgrading dependencies #66

merged 1 commit into from
Jan 6, 2022

Conversation

andrewrlee
Copy link
Contributor

No description provided.

@@ -7,7 +7,7 @@
"scripts": {
"prepare": "husky install",
"copy-views": "cp -R server/views dist/server/",
"compile-sass": "sass --no-source-map --load-path=node_modules/govuk-frontend --load-path=node_modules/@ministryofjustice/frontend ./assets/sass/application.sass:./assets/stylesheets/application.css ./assets/sass/application-ie8.sass:./assets/stylesheets/application-ie8.css --style compressed",
"compile-sass": "sass --quiet-deps --no-source-map --load-path=node_modules/govuk-frontend --load-path=node_modules/@ministryofjustice/frontend --load-path=. ./assets/sass/application.sass:./assets/stylesheets/application.css ./assets/sass/application-ie8.sass:./assets/stylesheets/application-ie8.css --style compressed",
Copy link
Contributor Author

@andrewrlee andrewrlee Jan 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduce logging on errors related to this issue

Also need to add new load path for . as govuk frontend now explicitly reference govuk node modules as a dependency related to this: ministryofjustice/moj-frontend#147

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need the second one? Or do we only import bits of govuk? ...and a separate issue, what point are we ditching IE8 support? I don't believe it's in our supported browsers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need all 3 - or we have to start referring to things with full paths.
The new load path is used only to bodge around the change in the moj-frontend and how they refer to assets from the gov uk frontend library.

I think we still have users in probation who use IE8, we did the last time I checked..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation @andrewrlee 👍

const router = express.Router()
router.use(
session({
store: new RedisStore({ client }),
store: new RedisStore({ client: client as unknown as Client }),
Copy link
Contributor Author

@andrewrlee andrewrlee Jan 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bit gnarly - waiting on connect-redis to update to new version of redis client:
tj/connect-redis#337

Copy link
Contributor

@psoleckimoj psoleckimoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@andrewrlee andrewrlee merged commit dccca36 into main Jan 6, 2022
@andrewrlee andrewrlee deleted the alee/upgrade-deps branch January 6, 2022 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants