请 fork QwQUi
git clone https://github.com/<YourGithubName>/QwQUI
git remote add upstream https://github.com/TeamVastsea/QwQUI
pnpm i
在输入下列命令后输入您的组件名,例如dropZone
pnpm run create:comp
internal
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
命令