Skip to content

Commit

Permalink
5주차 작업물 반영 (#38)
Browse files Browse the repository at this point in the history
5주차 작업물 반영
  • Loading branch information
Dobbymin authored Oct 5, 2024
2 parents 12dfc96 + f015354 commit 28b2380
Showing 108 changed files with 7,525 additions and 2,215 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vite.config.ts
jest.config.ts
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -33,9 +33,11 @@
"typescript": {
"alwaysTryTypes": true
}
},
"react": {
"version": "detect"
}
},
"include": ["vite.config.ts"],
"rules": {
"no-param-reassign": ["error", { "props": false }],
"@typescript-eslint/no-non-null-assertion": "off",
6 changes: 2 additions & 4 deletions .github/ISSUE_TEMPLATE/ISSUE_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -10,18 +10,16 @@ assignees: ''

> 추가하려는 기능에 대해 간결하게 설명해주세요.

## 🔧 작업 상세 내용

- [ ] TODO
- [ ] TODO
- [ ] TODO

## 📆 예상 기간

> 예상 개발 기간을 대략적으로 작성해주세요.
>
>
> 예) 0월 00일 ~ 0월 00일

## 📙 참고할만한 자료(선택)

9 changes: 4 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
## #️⃣ 연관된 이슈
> ex) #이슈번호, #이슈번호

> ex) #이슈번호, - #이슈번호
## 📝 작업 내용

> 이번 PR에서 작업한 내용을 간략히 설명해주세요.(이미지 첨부 가능)
- TODO
- TODO

### 스크린샷 (선택)


## 💬 리뷰 요구사항(선택)

> 리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요
>
> ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

## ⏰ 현재 버그


## ✏ Git Close
> close #이슈번호

> close #이슈번호
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ESLint test

on:
pull_request:
branches:
- Master
- Develop
- Weekly
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

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

- name: Install Pnpm package manager
run: |
npm install -g pnpm
- name: Install Dependencies
run: pnpm install

- name: Lint Code
run: pnpm lint
61 changes: 61 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: S3 deploy

on:
push:
branches: ['Master']
env:
AWS_REGION: ap-northeast-2
S3_BUCKET_NAME: sinitto
permissions:
contents: read

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout source code.
uses: actions/checkout@master

- name: Cache node modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install pnpm
run: |
npm install -g pnpm
- name: Create .env file
run: |
echo "VITE_APP_BASE_URL=${{ secrets.VITE_APP_BASE_URL }}" >> .env
echo "VITE_APP_KAKAO_AUTH_CLIENT_ID=${{ secrets.VITE_APP_KAKAO_AUTH_CLIENT_ID }}" >> .env
echo "VITE_APP_KAKAO_AUTH_REDIRECT_URI=${{ secrets.VITE_APP_KAKAO_AUTH_REDIRECT_URI }}" >> .env
echo "VITE_ENV"=${{ secrets.VITE_ENV }} >> .env
- name: Install Dependencies
run: pnpm install --no-frozen-lockfile --force

- name: Lint Code
run: pnpm lint

- name: Build
run: CI='' pnpm run build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

- name: Upload to AWS S3
run: |
aws s3 cp \
--recursive \
--region ap-northeast-2 \
./dist s3://${{env.S3_BUCKET_NAME}}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Team8_FE

8조 프론트엔드
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -4,10 +4,12 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"dev": "vite --host",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
"preview": "vite preview",
"format": "prettier --check --ignore-path .prettierignore .",
"format:fix": "prettier --write --ignore-path .gitignore ."
},
"dependencies": {
"@chakra-ui/react": "^2.8.2",
@@ -21,6 +23,7 @@
"react-icons": "^5.2.1",
"react-modal": "^3.16.1",
"react-router-dom": "^6.26.1",
"swiper": "^11.1.14",
"zustand": "^4.5.5"
},
"devDependencies": {
Loading

0 comments on commit 28b2380

Please sign in to comment.