Skip to content

Commit

Permalink
docs(component-docs): tsconfig configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Oct 8, 2024
1 parent 68b92ed commit f9491f4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
11 changes: 8 additions & 3 deletions component-docs/src/pages/get-started/installation/vite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Steps, Tabs } from 'nextra/components'

import SeedDesignConfiguration from "@/src/templates/seed-design-configuration.mdx"
import Installation from "@/src/templates/get-started-installation.mdx"
import TsconfigConfiguration from "@/src/templates/tsconfig-configuration.mdx"

# 설치

Expand All @@ -21,7 +22,7 @@ Seed Design의 컬러 토큰은 `<html />` 태그의 `data-seed`, `data-seed-sca

<Tabs items={['auto', 'light only', 'dark only']}>
<Tabs.Tab>
```html copy
```html copy filename="index.html" {2-4,7}
<html
data-seed
data-seed-scale-color="light"
Expand All @@ -35,7 +36,7 @@ Seed Design의 컬러 토큰은 `<html />` 태그의 `data-seed`, `data-seed-sca
```
</Tabs.Tab>
<Tabs.Tab>
```html copy
```html copy filename="index.html" {2-4,7}
<html
data-seed="light-only"
data-seed-scale-color="light"
Expand All @@ -49,7 +50,7 @@ Seed Design의 컬러 토큰은 `<html />` 태그의 `data-seed`, `data-seed-sca
```
</Tabs.Tab>
<Tabs.Tab>
```html copy
```html copy filename="index.html" {2-4,7}
<html
data-seed="dark-only"
data-seed-scale-color="dark"
Expand Down Expand Up @@ -80,4 +81,8 @@ import "@seed-design/stylesheet/token.css";
npx @seed-design/cli@latest add box-button
```

### tsconfig.json 설정하기

<TsconfigConfiguration />

</Steps>
12 changes: 12 additions & 0 deletions component-docs/src/templates/tsconfig-configuration.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```json filename="tsconfig.json" copy {4-8}
{
"compilerOptions": {
// your options
"paths": {
"seed-design/ui/*": [
"./seed-design/ui/*"
]
}
}
}
```

0 comments on commit f9491f4

Please sign in to comment.