@_nu/react-dialog

A fully accessible、flexible、unstyled React dialog component


Keywords
react-component, ui, no-ui, nu-system, react, react-ui, dialog, modal, lerna, acss
License
MIT
Install
npm install @_nu/react-dialog@1.2.6

Documentation

@_nu/react

💪 一个无 UI 依赖的 react 母版组件库系统

Feature

  • lerna: 用 lerna 来处理发布问题
  • yarn workspace: 用 yarn 来处理依赖问题
  • nwb: 用 nwb 处理 react demo 问题
  • father: 做 React 组件构建
  • gulp: 做 CSS 组件构建

开发 npm-scripts

$ 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 // 发布代码