https://github.com/nu-system/react
💪 一个无 UI 依赖的 react 母版组件库系统
https://github.com/nu-system/react
acss lerna react
Last synced: 2 months ago
JSON representation
💪 一个无 UI 依赖的 react 母版组件库系统
- Host: GitHub
- URL: https://github.com/nu-system/react
- Owner: nu-system
- License: mit
- Created: 2020-06-29T12:15:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T07:05:36.000Z (about 4 years ago)
- Last Synced: 2025-03-15T21:46:51.279Z (3 months ago)
- Topics: acss, lerna, react
- Language: Less
- Size: 1.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @\_nu/react
💪 一个无 UI 依赖的 react 母版组件库系统
## Feature
- lerna: 用 lerna 来处理发布问题
- yarn workspace: 用 yarn 来处理依赖问题
- nwb: 用 nwb 处理 react demo 问题
- father: 做 React 组件构建
- gulp: 做 CSS 组件构建## 开发 npm-scripts
```bash
$ lerna list // 查看组件列表
$ yarn workspace @_nu/react-button nwb serve-react-demo // 跑 demo
$ yarn workspace @_nu/react-button add package // 为组件添加依赖
$ yarn workspace @_nu/react-button jest // 跑测试
$ yarn add package -W // 为根目录安装依赖
$ yarn build:css // 逐个 运行 CSS packages 中的 build 命名
$ yarn build:react // 逐个 运行 react packages 中的 build 命名
$ yarn cz // 代码提交
$ yarn br:* // build-react:Componentname
$ yarn bc:* // build-css:Componentname
$ yarn sr:* // start-react:Componentname
$ yarn sc:* // start-css:Componentname
$ lerna run --stream --sort build #按照拓扑顺序运行所有包 build 命名
$ lerna publish // 发布代码
```