Migration from 0.1.6 to 0.2.0
#286
AriPerkkio
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello and welcome to the latest version of TutorialKit! 👋
The
0.2.0release of TutorialKit introduced two breaking changes that require manual actions from users when updating. This guide describes the changes that are needed.Feel free to leave a comment in this discussion if any help is needed! All feedback is welcome. 🙌
Example migration: https://github.com/AriPerkkio/tutorial-vite-plugin/pull/23/files
@tutorialkit/components-reactpackage is now@tutorialkit/reactWe have renamed the
@tutorialkit/components-reactpackage to@tutorialkit/react. Following change is needed in yourpackage.json"dependencies": { - "@tutorialkit/components-react": "^0.1.6", + "@tutorialkit/react": "^0.2.0", "react": "^18.2.0", "react-dom": "^18.2.0" }Simplified UnoCSS integration
Previously TutorialKit required users to have quite complex
uno.config.tsconfiguration file in their projects. Updates for this file were difficult to make as we always needed to instruct users to manually update their configurations. Now we have moved all the configuration to@tutorialkitpackages so that users are no longer needed to maintain complex configurations themselves.You can remove following packages from your
package.json:"devDependencies": { "@astrojs/check": "^0.6.0", "@astrojs/react": "^3.3.4", - "@iconify-json/ph": "^1.1.12", - "@iconify-json/svg-spinners": "^1.1.2", "@tutorialkit/astro": "^0.1.6", "@tutorialkit/theme": "^0.1.6", "@types/node": "^20.12.7", - "@unocss/reset": "^0.59.4", - "@unocss/transformer-directives": "^0.59.4", "astro": "^4.8.6", - "fast-glob": "^3.3.2", "prettier": "^3.3.3", "prettier-plugin-astro": "^0.13.0", "typescript": "^5.4.5", - "unocss": "^0.59.4" },And update following packages to the new version. Make sure
@tutorialkit/themeis also added."devDependencies": { ... - "@tutorialkit/astro": "^0.1.6", + "@tutorialkit/astro": "^0.2.0", - "@tutorialkit/theme": "^0.1.6", + "@tutorialkit/theme": "^0.2.0", - "@tutorialkit/types": "^0.1.6", + "@tutorialkit/types": "^0.2.0", ... },In your
uno.config.ts:For related commits see:
@tutorialkit/components-reactto@tutorialkit/react#155Beta Was this translation helpful? Give feedback.
All reactions