-
Notifications
You must be signed in to change notification settings - Fork 2
Feat: SOSO UI 패키지 설정 및 버튼 추가 #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
18c8eca
fix: soso-web 불필요한 린트 parser 설정 제거
DreamPaste 78373d5
fix: 패키지용 린트 설정
DreamPaste 7e3266b
fix: 프로젝트 노드 버전 24로 통일
DreamPaste dd3c1c5
fix: soso/UI 린트 설정
DreamPaste dd95ddd
fix: soso/ui 패키지 vitest 테스트 수정 및 검증
DreamPaste bc59d7b
fix: url.parse() 경고 해결을 위해 pnpm 10버전으로 업데이트
DreamPaste 549a05f
chore: package의 의존성 제어 및 react용 라이브러리 lint를 개선했습니다.
DreamPaste a261267
feat: soso ui 패키지에 버튼 컴포넌트를 추가하고, 단위 테스트를 추가했습니다.
DreamPaste 4a9d62e
Merge branch 'dev' of https://github.com/B2A5/SOSO-Front-End into fea…
DreamPaste 7634911
fix: 노드 버전 업데이트에 따른 ci 액션 버전 수정
DreamPaste bc34faf
fix: 노드 버전 업데이트에 따른 analysis 액션 버전 수정
DreamPaste 7f0f270
chore: pnpm-lock 재설치
DreamPaste ee3f2ee
Merge branch 'dev' into feat/SOS-47-package-ui-init
DreamPaste b05d476
Merge branch 'dev' into feat/SOS-47-package-ui-init
DreamPaste File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| package-manager=pnpm@9.1.0 | ||
| package-manager=pnpm@10.24.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| dist | ||
| node_modules | ||
| *.config.ts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| const path = require('path'); | ||
|
|
||
| module.exports = { | ||
| root: true, | ||
| extends: [require.resolve('@soso/eslint-config/library.cjs')], | ||
| parserOptions: { | ||
| project: path.resolve(__dirname, './tsconfig.json'), | ||
| tsconfigRootDir: __dirname, | ||
| }, | ||
| ignorePatterns: [ | ||
| 'dist', | ||
| '*.config.ts', | ||
| '*.config.js', | ||
| '*.config.mjs', | ||
| '.eslintrc.*', | ||
| ], | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # Source files | ||
| src/ | ||
| *.ts | ||
| *.tsx | ||
| !*.d.ts | ||
|
|
||
| # Config files | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||
| .eslintrc.cjs | ||
|
|
||
| # Test files | ||
| **/*.test.* | ||
| **/*.spec.* | ||
| src/test/ | ||
| __tests__/ | ||
| tests/ | ||
| coverage/ | ||
|
|
||
| # Development | ||
| .turbo/ | ||
| node_modules/ | ||
| .DS_Store | ||
| *.log | ||
|
|
||
| # Git | ||
| .git/ | ||
| .gitignore | ||
|
|
||
| # IDE | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.swo | ||
|
|
||
| # Misc | ||
| .changeset/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| # @soso/ui | ||
|
|
||
| SOSO UI component library - Production-grade React components for SOSO applications. | ||
|
|
||
| ## Installation | ||
|
|
||
| ```bash | ||
| # Using pnpm | ||
| pnpm add @soso/ui | ||
|
|
||
| # Using npm | ||
| npm install @soso/ui | ||
|
|
||
| # Using yarn | ||
| yarn add @soso/ui | ||
| ``` | ||
|
|
||
| ## Usage | ||
|
|
||
| ```tsx | ||
| import { Button } from '@soso/ui'; | ||
|
|
||
| function App() { | ||
| return ( | ||
| <Button onClick={() => console.log('Clicked!')}>Click me</Button> | ||
| ); | ||
| } | ||
| ``` | ||
|
|
||
| ## Development | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| - Node.js 18+ | ||
| - pnpm 8+ | ||
|
|
||
| ### Setup | ||
|
|
||
| ```bash | ||
| # Install dependencies | ||
| pnpm install | ||
|
|
||
| # Run tests | ||
| pnpm test | ||
|
|
||
| # Run tests in watch mode | ||
| pnpm test:watch | ||
|
|
||
| # Build the library | ||
| pnpm build | ||
|
|
||
| # Type check | ||
| pnpm typecheck | ||
|
|
||
| # Lint | ||
| pnpm lint | ||
| ``` | ||
|
|
||
| ### Scripts | ||
|
|
||
| - `pnpm build` - Build the library (ESM + CJS + TypeScript declarations) | ||
| - `pnpm dev` - Build in watch mode | ||
| - `pnpm test` - Run unit tests | ||
| - `pnpm test:watch` - Run tests in watch mode | ||
| - `pnpm test:coverage` - Generate coverage report | ||
| - `pnpm test:ui` - Open Vitest UI | ||
| - `pnpm typecheck` - Run TypeScript type checking | ||
| - `pnpm lint` - Lint the codebase | ||
| - `pnpm clean` - Clean build artifacts | ||
|
|
||
| ## Features | ||
|
|
||
| - ✅ **TypeScript**: Full TypeScript support with type definitions | ||
| - ✅ **Tree-shakeable**: ESM and CJS builds with tree-shaking support | ||
| - ✅ **Tested**: Comprehensive unit tests with Vitest | ||
| - ✅ **Accessible**: Built with accessibility in mind | ||
| - ✅ **Modern**: Uses latest React patterns and best practices | ||
|
|
||
| ## Components | ||
|
|
||
| _(Component documentation will be added as components are developed)_ | ||
|
|
||
| ## License | ||
|
|
||
| MIT | ||
|
|
||
| ## Contributing | ||
|
|
||
| See [CONTRIBUTING.md](../../CONTRIBUTING.md) for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1 +1,91 @@ | ||||||||||||||||||||||
| { "name": "@soso/ui", "version": "0.0.0", "private": true } | ||||||||||||||||||||||
| { | ||||||||||||||||||||||
| "name": "@soso/ui", | ||||||||||||||||||||||
| "version": "0.0.0", | ||||||||||||||||||||||
| "description": "SOSO UI component library", | ||||||||||||||||||||||
| "author": "SOSO Team", | ||||||||||||||||||||||
| "license": "MIT", | ||||||||||||||||||||||
| "type": "module", | ||||||||||||||||||||||
| "exports": { | ||||||||||||||||||||||
| "./package.json": "./package.json", | ||||||||||||||||||||||
| ".": { | ||||||||||||||||||||||
| "import": { | ||||||||||||||||||||||
| "types": "./dist/index.d.mts", | ||||||||||||||||||||||
| "default": "./dist/index.mjs" | ||||||||||||||||||||||
| }, | ||||||||||||||||||||||
| "require": { | ||||||||||||||||||||||
| "types": "./dist/index.d.ts", | ||||||||||||||||||||||
| "default": "./dist/index.js" | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| }, | ||||||||||||||||||||||
| "./components/*": { | ||||||||||||||||||||||
| "import": { | ||||||||||||||||||||||
| "types": "./dist/components/*.d.mts", | ||||||||||||||||||||||
| "default": "./dist/components/*.mjs" | ||||||||||||||||||||||
| }, | ||||||||||||||||||||||
| "require": { | ||||||||||||||||||||||
| "types": "./dist/components/*.d.ts", | ||||||||||||||||||||||
| "default": "./dist/components/*.js" | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
| } | ||||||||||||||||||||||
|
Comment on lines
+20
to
+29
|
||||||||||||||||||||||
| "./components/*": { | |
| "import": { | |
| "types": "./dist/components/*.d.mts", | |
| "default": "./dist/components/*.mjs" | |
| }, | |
| "require": { | |
| "types": "./dist/components/*.d.ts", | |
| "default": "./dist/components/*.js" | |
| } | |
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eslint가 devDependencies 목록의 중간에 추가되어 있어 알파벳 순서가 깨졌습니다. 일관성을 위해@eslint/eslintrc다음에 위치시키시기 바랍니다.