1.1.6 • Published 4 years ago
chocolate-ui v1.1.6
🐳 预览
chocolate-ui.com
⚡ 安装
使用 npm
npm install chocolate-ui --save
使用 yarn
yarn add chocolate-ui
📖 使用
1 .全部引入
// 加载样式
import 'chocolate-ui/dist/styles/index.css'
// 引入组件
import { Button } from 'chocolate-ui'
2 .按需加载
import Button from 'chocolate-ui/dist/components/button';
import 'chocolate-ui/dist/components/button/style';
3 .使用 babel-plugin-import
// .babelrc.js
module.exports = {
plugins: [
[
'babel-plugin-import',
{
libraryName: 'chocolate-ui',
libraryDirectory: 'dist/components',
style: true // 导入 CSS 源文件,可以在编译期间进行优化
}
],
]
}
😊 谁在使用
- 我自己的 hooks 集合 -> chocolate-hooks
✨ 技术栈
- 😁 全部组件由
TypeScript with React Hooks
编写 - 🍑 使用
react-testing-library
完成单元测试 - 🦌 使用
Storybook
本地调试和生成文档页面 - ⚙️ 组件库打包使用
Webpack
和Gulp
- 🥦 CI/CD:使用
Chromatic
+GitActions
持续集成和部署
🔨 部署
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.0
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.0.4
4 years ago
1.0.44
4 years ago
1.0.43
4 years ago
1.0.42
4 years ago
1.0.41
4 years ago
1.0.2
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.9.8
4 years ago
0.9.7
4 years ago
0.9.4
4 years ago
0.9.6
4 years ago
0.9.5
4 years ago
0.9.71
4 years ago
0.9.1
4 years ago
0.1.32
5 years ago
0.1.33
5 years ago
0.1.31
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago