Skip to content

Commit

Permalink
docs: 문서 수정 및 의존성 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi02014 committed Jan 7, 2025
1 parent 279e976 commit 68c4e02
Show file tree
Hide file tree
Showing 156 changed files with 5,077 additions and 2,323 deletions.
5,391 changes: 3,548 additions & 1,843 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
76 changes: 56 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@

<br />

## Usage
## Library

### @modern-kit/react <a href="https://www.npmjs.com/package/@modern-kit/react" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/react.svg" /></a> <a href="https://bundlephobia.com/package/@modern-kit/react" target="_blank"><img align="center" src="https://img.shields.io/bundlephobia/minzip/@modern-kit/react/latest"></a>

- React와 관련된 유용한 `컴포넌트``커스텀 훅`을 제공하는 라이브러리입니다.

<br />

<b>Download</b>
```shell
npm i @modern-kit/react
```
Expand All @@ -43,9 +46,29 @@ pnpm i @modern-kit/react

<br />

<b>Usage</b>

```tsx
import { useInterval } from '@modern-kit/react';

const App = () => {
useInterval(() => {
console.log('interval');
}, 300);

return <div>Modern Kit</div>;
}
```

<br />

### @modern-kit/utils <a href="https://www.npmjs.com/package/@modern-kit/utils" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/utils.svg" /></a> <a href="https://bundlephobia.com/package/@modern-kit/utils" target="_blank"><img align="center" src="https://img.shields.io/bundlephobia/minzip/@modern-kit/utils/latest"></a>

- 클라이언트 개발과 관련된 유용한 `유틸리티 함수`를 제공하는 라이브러리입니다.
- 클라이언트 개발에 유용한 `유틸리티 함수`를 제공하는 라이브러리입니다.

<br />

<b>Download</b>

```shell
npm i @modern-kit/utils
Expand All @@ -61,9 +84,24 @@ pnpm i @modern-kit/utils

<br />

### @modern-kit/types <a href="https://www.npmjs.com/package/@modern-kit/types" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/types.svg" /></a> <a href="https://bundlephobia.com/package/@modern-kit/types" target="_blank"><img align="center" src="https://img.shields.io/bundlephobia/minzip/@modern-kit/types/latest"></a>
<b>Usage</b>

- 유용한 `유틸 타입`들을 제공하는 라이브러리 입니다.
```ts
import { flatten } from '@modern-kit/utils';

const arr = [1, [2, [3, 4], 5]];
const result = flatten(arr); // [1, 2, 3, 4, 5]
```

<br />

### @modern-kit/types <a href="https://www.npmjs.com/package/@modern-kit/types" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/types.svg" /></a>

- 클라이언트 개발에 유용한 `유틸 타입`들을 제공하는 라이브러리 입니다.

<br />

<b>Download</b>

```shell
npm i @modern-kit/types
Expand All @@ -79,6 +117,19 @@ pnpm i @modern-kit/types

<br />

<b>Usage</b>

```ts
import { Merge } from '@modern-kit/types';

type A = { a: string, b: number }
type B = { b: string, c: boolean }
type Result = Merge<A, B>
// { a: string, b: string, c: boolean }
```
<br />
## Lint & Test & build
- `root` 폴더에서 진행해주세요.
Expand Down Expand Up @@ -143,7 +194,7 @@ yarn build:docs
<br />
## Contributing
모든 기여에 감사드립니다! 누구든지 라이브러리에 기여할 수 있습니다.
`@modern-kit`에 기여해주셔서 감사드립니다! 누구든지 `@modern-kit` 기여할 수 있습니다.
[Contributing Guide](./.github/CONTRIBUTING.md)
#### Contributors
Expand All @@ -154,20 +205,5 @@ yarn build:docs
<br />
<br />
## Tools

- `Yarn Berry(v4)``workspaces`를 활용해 **Monolithic Repository** 환경을 구축
- packages 내부의 패키지들은 **로컬 패키지**처럼 **상호 의존성**을 갖습니다.
- `lerna`를 활용한 **통합 빌드**, **통합 테스트**, **통합 배포** 환경 구축
- `github actions`를 활용한 **CI/CD** 구축
- `changeset`을 활용한 모노레포 환경에서 **패키지 일관성 유지****NPM 배포** 진행
- `dependabot`을 활용한 **자동 의존성** 관리
- `codecov`를 활용한 **테스트 코드 커버리지 리포트****신뢰성 있는 코드** 제공
- `docusaurus`를 활용한 **공식 문서 제공**
- `vitest`를 활용한 **테스트 코드 작성 및 테스트** 진행
- @modern-kit/utils의 경우 `Benchmark` 테스트 포함

<br />

## License
MIT © Modern Agile. See [LICENSE](./LICENSE) for details.
66 changes: 61 additions & 5 deletions docs/docs/introduce/Introduce.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# 소개
# @modern-kit

`@modern-kit`는 클라이언트 개발에 유용한 `리액트 컴포넌트`, `커스텀 훅``유틸리티 함수`, `타입`을 제공하는 라이브러리입니다.

클라이언트 개발에 필요한 모듈을 제공하는 것 뿐만아니라, 코드적으로 `다양한 레퍼런스를 제공` 하기 위한 목적을 갖고 있습니다.

`@modern-kit`는 Next.js의 `SSR(Server Side Rendering)`환경에서도 호환되는 등 `CJS(CommonJs)`환경에서도 호환되기 위해 `CJS(CommonJs)``ESM(ECMAScript Module)` 두 포맷을 모두 지원합니다.

## Usage
<br />

## Library

### @modern-kit/react <a href="https://www.npmjs.com/package/@modern-kit/react" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/react.svg" /></a> <a href="https://bundlephobia.com/package/@modern-kit/react" target="_blank"><img align="center" src="https://img.shields.io/bundlephobia/minzip/@modern-kit/react/latest" /></a>

- React와 관련된 유용한 `컴포넌트``커스텀 훅`을 제공하는 라이브러리입니다.

<br />

<b>Download</b>

```shell
npm i @modern-kit/react
```
Expand All @@ -24,9 +30,31 @@ yarn add @modern-kit/react
pnpm i @modern-kit/react
```

<br />

<b>Usage</b>

```tsx
import { useInterval } from '@modern-kit/react';

const App = () => {
useInterval(() => {
console.log('interval');
}, 300);

return <div>Modern Kit</div>;
}
```

<br />

### @modern-kit/utils <a href="https://www.npmjs.com/package/@modern-kit/utils" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/utils.svg" /></a> <a href="https://bundlephobia.com/package/@modern-kit/utils" target="_blank"><img align="center" src="https://img.shields.io/bundlephobia/minzip/@modern-kit/utils/latest" /></a>

- 클라이언트 개발과 관련된 유용한 `유틸리티 함수`를 제공하는 라이브러리입니다.
- 클라이언트 개발에 유용한 `유틸리티 함수`를 제공하는 라이브러리입니다.

<br />

<b>Download</b>

```shell
npm i @modern-kit/utils
Expand All @@ -40,9 +68,26 @@ yarn add @modern-kit/utils
pnpm i @modern-kit/utils
```

### @modern-kit/types <a href="https://www.npmjs.com/package/@modern-kit/types" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/types.svg" /></a> <a href="https://bundlephobia.com/package/@modern-kit/types" target="_blank"><img align="center" src="https://img.shields.io/bundlephobia/minzip/@modern-kit/types/latest" /></a>
<br />

<b>Usage</b>

```ts
import { flatten } from '@modern-kit/utils';

const arr = [1, [2, [3, 4], 5]];
const result = flatten(arr); // [1, 2, 3, 4, 5]
```

<br />

### @modern-kit/types <a href="https://www.npmjs.com/package/@modern-kit/types" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/types.svg" /></a>

- 클라이언트 개발에 유용한 `유틸 타입`들을 제공하는 라이브러리 입니다.

<br />

- 유용한 `유틸 타입`들을 제공하는 라이브러리 입니다.
<b>Download</b>

```shell
npm i @modern-kit/types
Expand All @@ -58,3 +103,14 @@ pnpm i @modern-kit/types

<br />

<b>Usage</b>

```ts
import { Merge } from '@modern-kit/types';

type A = { a: string, b: number }
type B = { b: string, c: boolean }
type Result = Merge<A, B>
// { a: string, b: string, c: boolean }
```
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"mkdir:ko": "mkdir ./i18n/ko/docusaurus-plugin-content-docs/current"
},
"dependencies": {
"@docusaurus/core": "^3.6.0",
"@docusaurus/preset-classic": "^3.6.0",
"@docusaurus/core": "^3.7.0",
"@docusaurus/preset-classic": "^3.7.0",
"@mdx-js/react": "^3.0.0",
"@modern-kit/react": "workspace:*",
"clsx": "^2.1.1",
Expand All @@ -27,9 +27,9 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.6.0",
"@docusaurus/theme-classic": "^3.6.0",
"@docusaurus/types": "^3.6.0",
"@docusaurus/module-type-aliases": "^3.7.0",
"@docusaurus/theme-classic": "^3.7.0",
"@docusaurus/types": "^3.7.0",
"@tsconfig/docusaurus": "^2.0.0",
"@types/node": "^22.0.0",
"@types/react": "^18.2.20",
Expand Down
18 changes: 17 additions & 1 deletion packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ React와 관련된 유용한 `컴포넌트`와 `커스텀 훅`을 제공하는

<br />

## Usage
## Download
```shell
npm i @modern-kit/react
```
Expand All @@ -25,6 +25,22 @@ pnpm i @modern-kit/react

<br />

## Usage

```tsx
import { useInterval } from '@modern-kit/react';

const App = () => {
useInterval(() => {
console.log('interval');
}, 300);

return <div>Modern Kit</div>;
}
```

<br />

## License
MIT © Modern Agile. See [LICENSE](../../LICENSE) for details.

Expand Down
20 changes: 16 additions & 4 deletions packages/types/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @modern-kit/types <a href="https://www.npmjs.com/package/@modern-kit/types" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/types.svg" /></a> <a href="https://bundlephobia.com/package/@modern-kit/types" target="_blank"><img align="center" src="https://img.shields.io/bundlephobia/minzip/@modern-kit/types/latest"></a>
# @modern-kit/types <a href="https://www.npmjs.com/package/@modern-kit/types" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/types.svg" /></a>

유용한 타입스크립트 유틸 타입들을 제공합니다.
클라이언트 개발에 유용한 타입스크립트 유틸 타입들을 제공합니다.

<br />

Expand All @@ -10,7 +10,7 @@

<br />

## Usage
## Download
```shell
npm i -D @modern-kit/types
```
Expand All @@ -19,13 +19,25 @@ npm i -D @modern-kit/types
yarn add -D @modern-kit/types
```


```shell
pnpm i -D @modern-kit/types
```

<br />

## Usage

```ts
import { Merge } from '@modern-kit/types';

type A = { a: string, b: number }
type B = { b: string, c: boolean }
type Result = Merge<A, B>
// { a: string, b: string, c: boolean }
```
<br />
## License
MIT © Modern Agile. See [LICENSE](../../LICENSE) for details.
Expand Down
15 changes: 13 additions & 2 deletions packages/utils/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @modern-kit/utils <a href="https://www.npmjs.com/package/@modern-kit/utils" target="_blank"><img align="center" src="https://img.shields.io/npm/v/@modern-kit/utils.svg" /></a> <a href="https://bundlephobia.com/package/@modern-kit/utils" target="_blank"><img align="center" src="https://img.shields.io/bundlephobia/minzip/@modern-kit/utils/latest"></a>

클라이언트 개발과 관련된 유용한 `유틸리티 함수`를 제공하는 라이브러리입니다.
클라이언트 개발에 유용한 `유틸리티 함수`를 제공하는 라이브러리입니다.

<br />

Expand All @@ -10,7 +10,7 @@

<br />

## Usage
## Download
```shell
npm i @modern-kit/utils
```
Expand All @@ -26,6 +26,17 @@ pnpm i @modern-kit/utils

<br />

## Usage

```ts
import { flatten } from '@modern-kit/utils';

const arr = [1, [2, [3, 4], 5]];
const result = flatten(arr); // [1, 2, 3, 4, 5]
```

<br />

## License
MIT © Modern Agile. See [LICENSE](../../LICENSE) for details.

Expand Down
Loading

0 comments on commit 68c4e02

Please sign in to comment.