请 fork QwQUi
git clone https://github.com/<YourGithubName>/QwQUI
git remote add upstream https://github.com/TeamVastsea/QwQUI
pnpm i 在输入下列命令后输入您的组件名,例如dropZone
pnpm run create:compinternal
packages
build
components
<component-name>
src
<component-name(kebab-case)>.tsx // 组件主题
index.ts // 组件入口
theme
我们强烈建议您将样式文件些写在components\<component-name>\src下
假设现在存在两个子包@qwqui/unstyle-btn与@qwqui/button。并且我们假设@qwqui/button使用了@qwqui/unstyle-btn这个子包。
- 执行
pnpm add @qwqui/unstyle-btn --workspace --filter=@qwqui/button - 在
@qwqui/button中使用
这样在后续打包的过程中pnpm会自行拓补排序。即先执行@qwqui/unstyle-btn的build命令,而后执行@qwqui/button的build命令