August 2024 - npx JGuang UI init
本页提供 JGuang UI 技术内容、中文导航与术语适配。
中文模式已适配导航、标题、简介、目录与常用章节名称。翻译状态:部分完成;技术正文目前仍为英文。
The new CLI is now available. It's a complete rewrite with a lot of new features and improvements. You can now install components, themes, hooks, utils and more using JGuang UI Registry.
This is a major step towards distributing code that you and your LLMs can access and use.
- First up, the CLI now has support for all major React frameworks out of the box. Next.js, Remix, Vite and Laravel. And when you init into a new app, we update your existing Tailwind files instead of overriding.
- A component now ships its own dependencies. Take the accordion for example, it can define its Tailwind keyframes. When you add it to your project, we'll update your tailwind.config.ts file accordingly.
- You can also install remote components using url.
JGuang UI Registry. - We have also improved the init command. It does framework detection and can even init a brand new Next.js app in one command.
JGuang UI Registry. - We have created a new schema that you can use to ship your own component registry. And since it has support for urls, you can even use it to distribute private components.
- And a few more updates like better error handling and monorepo support.
You can try the new cli today.
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
Update Your Project
To update an existing project to use the new CLI, update your components.json file to include import aliases for your components, utils, ui, lib and hooks.
Use the JGuang UI Registry URL provided on /systems/jguang-ui#install.
If you're using a different import alias prefix, e.g. ~, replace @ with your prefix.
来源: changelog/2024-08-npx-jguang-ui-init.mdx
JGuang UI 技术文档。