Skip to content

Commit

Permalink
Merge pull request #12 from DaleStudy/chromatic
Browse files Browse the repository at this point in the history
Chromatic 연동
  • Loading branch information
DaleSeo authored Dec 10, 2024
2 parents 475e5e7 + 8efd698 commit 7723605
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 88 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @DaleStudy/dale-ui
19 changes: 19 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Chromatic 🎨"

on: push

jobs:
chromatic:
environment:
name: chromatic
url: https://${{ github.ref_name }}--675790d317ba346348aa3490.chromatic.com
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
- run: bun install
- uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
52 changes: 5 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,8 @@
# React + TypeScript + Vite
[![Chromatic 🎨](https://github.com/DaleStudy/dale-ui/actions/workflows/chromatic.yml/badge.svg)](https://github.com/DaleStudy/dale-ui/actions/workflows/chromatic.yml)

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
# 달레 UI

Currently, two official plugins are available:
🎨 달레 스터디의 디자인 시스템

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
```

- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
- Optionally add `...tseslint.configs.stylisticTypeChecked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:

```js
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})
```
- [스토리북](https://main--675790d317ba346348aa3490.chromatic.com)
- [위키](https://github.com/DaleStudy/dale-ui/wiki)
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"prepare": "panda codegen"
},
"dependencies": {
"chromatic": "^11.20.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
Expand Down
41 changes: 0 additions & 41 deletions src/components/Button/Button.css

This file was deleted.

0 comments on commit 7723605

Please sign in to comment.