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

Chore(repo): Migration to Yarn Modern #1029

Merged
merged 14 commits into from
Apr 22, 2024
Merged

Conversation

literat
Copy link
Collaborator

@literat literat commented Aug 30, 2023

Description

Yarn v1 is an old implementation and has been recommended to migrate to modern versions. Today's version is v4 (https://yarnpkg.com/blog/release/4.0) - we cannot go to v4 since it requires Node.js v18.
We are migrating to the latest v3 (https://v3.yarnpkg.com/) which is far more performant and has better verbose messages.

There are a few changes like the configuration going through the yarnrc.yml or that the pre and post hooks do not work (due to possible collisions in the script lifecycle).

Please, give this everyone a try. I need to know that everything is working for you. And finally we will be a little more up-to-date :-)

Additional context

There were some additional modifications that need to be done:

  • adding missing dependencies
  • fixing Stylelint errors - @adamkudrna and @crishpeen please, have a look
  • fixing build scripts

The changes are in separate commits to allow better fixing.

Issue reference

refs #264


Before submitting the PR, please make sure you do the following

@github-actions github-actions bot added the maintenance Changes to the build process or auxilary tools and libraries or other maintenance label Aug 30, 2023
@netlify
Copy link

netlify bot commented Aug 30, 2023

Deploy Preview for spirit-design-system-storybook ready!

Name Link
🔨 Latest commit 7e5e179
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system-storybook/deploys/66263afc59242f00081164ef
😎 Deploy Preview https://deploy-preview-1029--spirit-design-system-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 30, 2023

Deploy Preview for spirit-design-system-demo canceled.

Name Link
🔨 Latest commit 6ee9d3e
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system-demo/deploys/65fb00f89703110008d9be86

@netlify
Copy link

netlify bot commented Aug 30, 2023

Deploy Preview for spirit-design-system-validations canceled.

Name Link
🔨 Latest commit 7e5e179
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system-validations/deploys/66263afc4594e4000828cfbf

@literat literat force-pushed the chore/migrade-to-yarn-modern branch from 839638d to 446e189 Compare November 14, 2023 14:44
@literat literat force-pushed the chore/migrade-to-yarn-modern branch from 446e189 to 77de4da Compare December 18, 2023 16:08
@literat literat force-pushed the chore/migrade-to-yarn-modern branch 2 times, most recently from 3d14103 to 8c3bd7e Compare January 11, 2024 14:39
@coveralls
Copy link

coveralls commented Jan 11, 2024

Coverage Status

coverage: 80.657%. remained the same
when pulling 7e5e179 on chore/migrade-to-yarn-modern
into 7a35154 on main.

@literat literat force-pushed the chore/migrade-to-yarn-modern branch 2 times, most recently from 2290b1b to fadbcb1 Compare January 24, 2024 10:50
@literat literat marked this pull request as ready for review January 24, 2024 11:04
@literat literat requested review from a team, adamkudrna and crishpeen as code owners January 24, 2024 11:04
@literat literat requested a review from pavelklibani January 24, 2024 11:07
@literat
Copy link
Collaborator Author

literat commented Feb 15, 2024

@literat
Copy link
Collaborator Author

literat commented Feb 15, 2024

@literat literat force-pushed the chore/migrade-to-yarn-modern branch 3 times, most recently from ac62d0f to 2f02196 Compare February 20, 2024 15:44
package.json Outdated Show resolved Hide resolved
.yarnrc.yml Outdated Show resolved Hide resolved
.stylelintrc.js Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
packages/analytics/package.json Show resolved Hide resolved
packages/web-react/config/vite/app.ts Outdated Show resolved Hide resolved
packages/web-react/src/components/Collapse/demo/index.tsx Outdated Show resolved Hide resolved
@literat literat force-pushed the chore/migrade-to-yarn-modern branch from 5f0fd0f to 6ee9d3e Compare March 20, 2024 15:29
@literat literat force-pushed the chore/migrade-to-yarn-modern branch from 6ee9d3e to 34cc809 Compare April 5, 2024 18:54
Copy link

netlify bot commented Apr 5, 2024

Deploy Preview for spirit-design-system ready!

Name Link
🔨 Latest commit 7e5e179
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system/deploys/66263afc321f3a00087f408e
😎 Deploy Preview https://deploy-preview-1029--spirit-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 96 (no change from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (no change from production)
SEO: 82 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@literat literat force-pushed the chore/migrade-to-yarn-modern branch 2 times, most recently from 1ce0b33 to 3b9782d Compare April 8, 2024 08:10
packages/web/package.json Outdated Show resolved Hide resolved
packages/web-react/src/components/Collapse/demo/index.tsx Outdated Show resolved Hide resolved
packages/web-react/package.json Show resolved Hide resolved
packages/design-tokens/src/scss/generated/_gradients.scss Outdated Show resolved Hide resolved
.stylelintrc.js Outdated Show resolved Hide resolved
.yarnrc.yml Outdated Show resolved Hide resolved
.stylelintrc.js Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
@literat literat force-pushed the chore/migrade-to-yarn-modern branch 2 times, most recently from a1da524 to b91b19f Compare April 18, 2024 13:07
@literat literat requested review from crishpeen and adamkudrna April 18, 2024 19:32
@literat literat force-pushed the chore/migrade-to-yarn-modern branch 2 times, most recently from 021ebac to 183f7be Compare April 18, 2024 19:48
@literat
Copy link
Collaborator Author

literat commented Apr 18, 2024

@adamkudrna @crishpeen From my point of view this is read-to-go. Let's discuss the documentation of getting started with Yarn, but I think this is covered by prerequisites in the main README. Please, be short.

.yarn/releases/yarn-3.6.3.cjs Outdated Show resolved Hide resolved
exporters/scss/package.json Outdated Show resolved Hide resolved
Copy link
Member

@crishpeen crishpeen left a comment

Choose a reason for hiding this comment

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

So I tested it and it works.

I just pulled the branch, make install, make build and make start and no problems. I didn't have to do anything more, that's great.

So please just fix those two points I wrote earlier today and it is good to go for me.

Good job!

.yarnrc.yml Show resolved Hide resolved
@literat literat force-pushed the chore/migrade-to-yarn-modern branch 2 times, most recently from 38bca97 to 56a65f0 Compare April 19, 2024 12:36
@lmc-eu lmc-eu deleted a comment from netlify bot Apr 19, 2024
Copy link
Contributor

@adamkudrna adamkudrna left a comment

Choose a reason for hiding this comment

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

Thank you for cleaning up the task names! 👏🏻

.yarnrc.yml Show resolved Hide resolved
literat added 14 commits April 22, 2024 12:24
  * first parent id given is `undefined` because it is a starting point
  * use `resolve` plugin to find directory indexes (index.js)
  * set `preventAssignment` to true because it will be the default in
    the next Rollup release
  * `normalizeColor` can now produce both short and long hex colors base on the flag
      * `normalizeColor` can now produce both short and long hex colors base on the flag
@literat literat force-pushed the chore/migrade-to-yarn-modern branch from 56a65f0 to 7e5e179 Compare April 22, 2024 10:24
@literat literat merged commit 4702a3d into main Apr 22, 2024
35 checks passed
@literat literat deleted the chore/migrade-to-yarn-modern branch April 22, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Changes to the build process or auxilary tools and libraries or other maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants