Skip to content
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

chore: yarn workspace 모노레포 셋팅 #119

Merged
merged 16 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy On Netlify
name: (get-p-client) Deploy On Netlify

on:
pull_request:
Expand All @@ -13,23 +13,31 @@ jobs:
steps:
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 22

- name: Code Checkout
uses: actions/checkout@v4

- name: Install Yarn Package Manager
run: npm install -g yarn

- name: Configure Netlify
run: npm install netlify-cli -g
run: yarn global add netlify-cli

- name: Install Dependencies
run: npm ci
run: yarn install --frozen-lockfile

- name: Build get-p-design system
run: yarn design build

- name: Build Project
run: VITE_API_BASE_URL=${{ secrets.VITE_API_BASE_URL }} npm run build
run: VITE_API_BASE_URL=${{ secrets.VITE_API_BASE_URL }} yarn client build

- name: Release Beta Server
run: |
netlify deploy \
--prod \
--dir dist \
--dir get-p-client/dist \
--site ${{ secrets.NETLIFY_SITE_ID }} \
--auth ${{ secrets.NETLIFY_API_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Storybook
name: (get-p-client) Deploy Storybook

on:
pull_request:
Expand All @@ -17,8 +17,12 @@ jobs:
fetch-depth: 0

- name: Install Dependencies
run: yarn
run: yarn install --frozen-lockfile

- uses: chromaui/action@v11
- name: Change Directory to get-p-client
run: cd get-p-client

- name: Deploy Storybook
uses: chromaui/action@v11
with:
projectToken: ${{ secrets.STORYBOOK_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy On Production Server
name: (get-p-client) Deploy On Production Server

on:
pull_request:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Run e2e Test
name: (get-p-client) Run e2e Test

on:
pull_request:
branches: ["main", "develop", "release"]
branches: ["main", "release"]
workflow_dispatch:

jobs:
Expand All @@ -12,20 +12,32 @@ jobs:
steps:
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 22

- name: Checkout Code
uses: actions/checkout@v4

- name: Install Yarn Package Manager
run: npm install -g yarn

- name: Install Dependencies
run: npm ci
run: yarn install --frozen-lockfile

- name: Build get-p-design system
run: yarn design build

- name: Change Directory to get-p-client
run: cd get-p-client

- name: Setup Environment Variables
run: |
touch .env
echo VITE_API_BASE_URL=${{secrets.VITE_API_BASE_URL}} >> .env
cd ..

- name: Build
run: npm run build
run: yarn client build

- name: Run e2e Tests
run: npm run test:e2e-ci
run: yarn client test:e2e:ci
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Compile & Linting
name: (get-p-client) Compile & Linting

on:
pull_request:
branches:
- develop
workflow_dispatch:

env:
NODE_VERSION: 20

jobs:
compile_and_lint:
runs-on: ubuntu-latest
Expand All @@ -17,16 +14,22 @@ jobs:
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
node-version: 22

- name: Install Yarn Package Manager
run: npm install -g yarn

- name: Code Checkout
uses: actions/checkout@v4

- name: Install Dependencies
run: npm ci
run: yarn install --frozen-lockfile

- name: Build get-p-design system
run: yarn design build

- name: Typescript Compile
run: npm run compile
run: yarn client compile

- name: Lint Code
run: npm run lint
run: yarn client lint
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Compile & Linting
name: (get-p-client) Run Unit, Integration Tests

on:
pull_request:
branches:
- develop
workflow_dispatch:

env:
NODE_VERSION: 20

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -17,10 +14,19 @@ jobs:
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{env.NODE_VERSION}}
node-version: 22

- name: Install Yarn Package Manager
run: npm install -g yarn

- name: Code Checkout
uses: actions/checkout@v4

- name: Install Dependencies
run: npm ci
run: yarn install --frozen-lockfile

- name: Build get-p-design system
run: yarn design build

- name: Run Test
run: npm run test
run: yarn client test
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ dist-ssr

*storybook.log


.env
# Local Netlify folder
.netlify

# Rollup Bundle Analyzer
.stats

# Env Variables
.env
37 changes: 0 additions & 37 deletions .prettierrc

This file was deleted.

9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# GET-P : Get your People, Get your Projects!

<span>
<img src="https://img.shields.io/badge/yarn_workspace-2c8ebb?style=for-the-badge&logo=yarn&logoColor=white"/>
<img src="https://img.shields.io/badge/typescript-3178C6?style=for-the-badge&logo=typescript&logoColor=white"/>
<img src="https://img.shields.io/badge/vite-646CFF?style=for-the-badge&logo=vite&logoColor=white"/>
<img src="https://img.shields.io/badge/rollup-ec4a3f?style=for-the-badge&logo=rollupdotjs&logoColor=white"/>
<img src="https://img.shields.io/badge/react-61DAFB?style=for-the-badge&logo=react&logoColor=white"/>
<img src="https://img.shields.io/badge/redux-764ABC?style=for-the-badge&logo=redux&logoColor=white"/>
<img src="https://img.shields.io/badge/tanstack_query-FF4154?style=for-the-badge&logo=reactquery&logoColor=white"/>
Expand All @@ -18,6 +20,7 @@
<br/>

## ✨ 프로젝트 소개

소프트웨어 인력난을 해결하기 위한 외주 매칭 플랫폼입니다

## 🔗 배포링크
Expand All @@ -35,6 +38,6 @@

## 👩‍👩‍👧‍👦 프론트엔드 팀 구성원

|[김대건<br/>(toothlessdev)](https://github.com/toothlessdev)|[김유진<br/>(zladb)](https://github.com/zladb)|[신채원<br/>(chae-won-shin)](https://github.com/chae-won-shin)|[조민주<br/>(chominju02)](https://github.com/chominju02)|
|---|---|---|---|
|<img src="https://avatars.githubusercontent.com/u/52105661?v=4" width="160px"/>|<img src="https://avatars.githubusercontent.com/u/68093782?v=4" width="160px"/>|<img src="https://avatars.githubusercontent.com/u/96687276?v=4" width="160px"/>|<img src="https://avatars.githubusercontent.com/u/120126604?v=4" width="160px"/>|
| [김대건<br/>(toothlessdev)](https://github.com/toothlessdev) | [김유진<br/>(zladb)](https://github.com/zladb) | [신채원<br/>(chae-won-shin)](https://github.com/chae-won-shin) | [조민주<br/>(chominju02)](https://github.com/chominju02) |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| <img src="https://avatars.githubusercontent.com/u/52105661?v=4" width="160px"/> | <img src="https://avatars.githubusercontent.com/u/68093782?v=4" width="160px"/> | <img src="https://avatars.githubusercontent.com/u/96687276?v=4" width="160px"/> | <img src="https://avatars.githubusercontent.com/u/120126604?v=4" width="160px"/> |
2 changes: 0 additions & 2 deletions coverage/coverage-final.json

This file was deleted.

24 changes: 24 additions & 0 deletions get-p-admin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
28 changes: 28 additions & 0 deletions get-p-admin/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
13 changes: 13 additions & 0 deletions get-p-admin/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
32 changes: 32 additions & 0 deletions get-p-admin/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "get-p-admin",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"lucide-react": "^0.453.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"recharts": "^2.13.0",
"get-p-design": "*"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.2",
"eslint": "^9.11.1",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.12",
"globals": "^15.9.0",
"typescript": "^5.5.3",
"typescript-eslint": "^8.7.0",
"vite": "^5.4.8"
}
}
File renamed without changes
Loading
Loading