-
Notifications
You must be signed in to change notification settings - Fork 6
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
Migrate to Vite (copy from #493) #496
Conversation
Note that the review environment will fail until the pipeline is configured to use env-variables prefixed with
|
TestCafe result is failed for https://kukkuu-local.api.dev.hel.ninja 😿💢💥💥 |
60669a4
to
c95bfc8
Compare
TestCafe result is failed for https://kukkuu-local.api.dev.hel.ninja 😿💢💥💥 |
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
1 similar comment
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
603f377
to
72b0fd5
Compare
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
KK-1017. The Create React App (CRA) is deprecated. It is advised to replace the CRA for example with Vite. For example the latest version of the Helsinki Design System (HDS) does not work properly with the CRA. The migration process is done by following the instructions from https://www.robinwieruch.de/vite-create-react-app/: - The index.html is moved from the `/public` to the root. The relative paths are migrated. - Vitest is installed and the configuration for testing-library is made The Sass styles from HDS and the app itself needed a couple of aliases. The new setup includes - Vite instead of CRA - Vitest with the Testing-library instead of Jest - Typescript for Vite
KK-1017
KK-1017. For some reason, the moment in event utils works differently in Vite than what it worked in CRA. However, the same method seems to work when manually tested on a running env.
KK-1017 KK-1040. The CI has been collecting the test coverage.
72b0fd5
to
2e7ffe6
Compare
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
1 similar comment
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
6fec443
to
c81002e
Compare
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
c81002e
to
c080446
Compare
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
KUKKUU-UI branch is deployed to platta: https://kukkuu-ui-pr496.dev.hel.ninja 🚀🚀🚀 |
KK-1040. For some reason the CI needs all the dev dependencies as a prod deps.
TestCafe result is success for https://kukkuu-ui-pr496.dev.hel.ninja 😆🎉🎉🎉 |
c080446
to
ad366c5
Compare
The Sonarcloud may need some configuration or new packages still
|
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
ad366c5
to
1019a5e
Compare
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
1 similar comment
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
061eb67
to
4936ab0
Compare
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
TestCafe result is success for https://kukkuu-local.api.dev.hel.ninja 😆🎉🎉🎉 |
SonarCloud Quality Gate failed. 0 Bugs 0.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
KUKKUU-UI branch is deployed to platta: https://kukkuu-ui-pr496.dev.hel.ninja 🚀🚀🚀 |
TestCafe result is success for https://kukkuu-ui-pr496.dev.hel.ninja 😆🎉🎉🎉 |
KK-1040 KK-1017
The #493 was merged too early and it was rolledback. The reason for this was that the Vite needs a new set of environment variables that are prefixed with "VITE_" (#493 (comment)). This PR is just a recreation of that earlier PR that was accidentally merged, because in Github, the PRs cannot be unmerged.
Bases to the huge pile of upgrading and migration changes in #492.
The Create React App (CRA) is deprecated. It is advised to replace the CRA with Vite.
The migration process is done by following the instructions from
https://www.robinwieruch.de/vite-create-react-app/:
/public
to the root. The relative paths are migrated.The Sass styles from HDS and the app itself needed a couple of aliases.
The new setup includes
More about this: