Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.08 KB

CONTRIBUTING.MD

File metadata and controls

49 lines (33 loc) · 1.08 KB

贡献指南

行为准则

开发

请 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这个子包。

  1. 执行 pnpm add @qwqui/unstyle-btn --workspace --filter=@qwqui/button
  2. @qwqui/button中使用

这样在后续打包的过程中pnpm会自行拓补排序。即先执行@qwqui/unstyle-btnbuild命令,而后执行@qwqui/buttonbuild命令