-
Notifications
You must be signed in to change notification settings - Fork 181
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
[full-ci] Build idp and settings frontends with pnpm #4892
Conversation
Kudos, SonarCloud Quality Gate passed! |
@@ -1089,7 +1089,8 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4): | |||
# TODO: settings/package.json has all the acceptance test dependencies | |||
# they shouldn't be needed since we could also use them from web:/tests/acceptance/package.json | |||
"cd %s/services/settings" % dirs["base"], | |||
"retry -t 3 'yarn install --immutable'", | |||
"pnpm config set store-dir ./.pnpm-store", |
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.
Does pnpm by default use the lock file?
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.
Yes!
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.
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.
Description
Use pnpm for the services built in this repo.
Related Issue
Motivation and Context
We recently switched to pnpm in oC Web (see the PR here: owncloud/web#7835)
It provides isolation between subpackages and overall avoids a whole class of careless mistakes.
I would recommend to switch the service frontends in oCIS as well, but it's not strictly neccessary for the Web team. The important changes for us are in #4878
It's a slight disruption to backend developers as you need to enable pnpm, if you don't have it already.
See https://pnpm.io/installation for reference.
Easiest is probably
npm install -g pnpm
if you already havenpm
.As I prepared the changes already (and we decided to split it out of the original PR), I'm offering them here to you.
It really depends on the oCIS team if you want to accept this change or not. No hard feelings if you prefer to stick with yarn. Up to you :)
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: