acryldev/acryl--plugins-acryl-ui-scaffold-template ↗★ 256
my-ui-plugin
Scaffold for a plugin built from @acryl/ui registry components as copied source (spec 038-ui-component-library, T039). Rename this package before publishing. 适合需要完全掌控UI源码、采用类似shadcn模式开发新插件的开发者。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:acryldev/acryl#36202668b4175f2840ed4673cd8475ee37c1acfe&path:plugins/acryl-ui/scaffold-templateドキュメント
README 全文を読む ↗Scaffold: a plugin built from copied @acryl/ui source
For a plugin that owns its UI source outright (the shadcn-style model), not one that depends
on @acryl/ui at runtime. Spec 038-ui-component-library, tasks.md T039.
Use it
- Copy this folder to your plugin's location and rename it (
package.json'sname,tsdown.config.ts'sPACKAGE_NAME,cordis.patch.yml'sid/name,index.js'sname- they must all match). pnpm install(or your package manager) to fetch the devDependencies.- From inside your renamed copy, add the components you want:
Each one lands inacryl ui add acryl.ui.card . --registryui//as your own source, recorded inui.lock.json. - Import the added component(s) in
src/client/index.tsand build a real screen with them, replacing thePlaceholderstarter. pnpm run build(tsdown, the same CSS Modules chain@acryl/uiitself uses) andpnpm run typecheck.- Install the plugin (
acryl_install_plugin, or copy it into a profile's extensions and/reload new).
Why copied source, not a dependency
require('@acryl/ui') pulls the whole prebuilt library into one bundle - simple for a small,
build-less client.js plugin, but you get every component whether you use one or all of them,
and you can't edit what you got. This scaffold is the other path: pay for a real build step,
and in exchange, own exactly the components you chose, free to restyle or extend.