🥜 peanut-cl , a react component library 此刻尽丝滑!
npm install peanut-cl --save
// 加载样式
import 'peanut-cl/dist/index.css'
// 引入组件
import { Button } from 'peanut-cl'
- 😁 typescript with React Hooks
- 🍑 使用 react-testing-library 完成单元测试
- 🦌 使用 storybook 本地调试和生成文档页面
- 🥦 使用 react-doc-gen 自动生成文档
- 🥭 使用第三方库扩充组件-(react-fontawesome, react-transition-group)
// 启动本地环境
npm run stroybook
// 单元测试
npm test
// build 可发布静态文件
npm run build
// 发布到 npm
npm run publish