0.1.4 β’ Published 2 years ago
kangqod-shared-ui v0.1.4
β¨π shared-ui
π Features
- Language: typescript
- Code linter: eslint
- Code format: prettier
- Git commit linter: husky + lint-staged
- UI framework: ant design
- CSS in JS: styled-components
- Export "es, cjs" format using rollup
π‘ Prerequisites
- Vite requires Node.js version >=12.0.0.
β‘οΈ Installation
git clone https://github.com/kangqod/shared-ui.git
cd shared-ui
yarn or yarn install
π¦ Directory structure
|-- example # μμ€ μμ λ° ν
μ€νΈ
|-- src # μμ€ λλ ν 리
| |-- styles # Theme
| |-- ui # UI Components (from antd)
π¦ How to use the code
import { Button } from 'kangqod-shared-ui'
...
return (
<Button className="type1">
Button
</Button>
)
...
π Development
# Start the vite dev server
yarn dev
π Build
# Make a production bundle
yarn build
π Lint
yarn lint:fix
π Prettier
yarn prettier