1.1.6 • Published 2 years ago

chocolate-ui v1.1.6

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

🐳 预览

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 源文件,可以在编译期间进行优化
      }
    ], 
  ]
}

😊 谁在使用

✨ 技术栈

  • 😁 全部组件由 TypeScript with React Hooks 编写
  • 🍑 使用 react-testing-library 完成单元测试
  • 🦌 使用 Storybook 本地调试和生成文档页面
  • ⚙️ 组件库打包使用 WebpackGulp
  • 🥦 CI/CD:使用 Chromatic + GitActions 持续集成和部署

🔨 部署

chromatic

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.0

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.4

3 years ago

1.0.44

3 years ago

1.0.43

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.9.8

3 years ago

0.9.7

3 years ago

0.9.4

3 years ago

0.9.6

3 years ago

0.9.5

3 years ago

0.9.71

3 years ago

0.9.1

3 years ago

0.1.32

4 years ago

0.1.33

4 years ago

0.1.31

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago