August 2024 - npx JGuang UI init
Complete CLI rewrite with support for all major React frameworks.
Partially translated: Chinese navigation, titles, descriptions, and common headings. The technical body is currently in English.
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.
Source: changelog/2024-08-npx-jguang-ui-init.mdx
Technical documentation for JGuang UI.