Skip to content

Commit

Permalink
init : 프로젝트 세팅 완료 (#3)
Browse files Browse the repository at this point in the history
* env : 의존성 설치

* env : storybook 설정

* env : tailwind 설치

* env : tailwind 설정

* env : axios react-query zustand ts-pattern 설치

* env : 절대 경로 설정

* env : 이슈,pr 템플릿 생성

* ci : storybook cicd 적용

* ci storybook 테스트

* ci : 스토리북 cicd 테스트

* ci : 스토리북 cicd 적용

* ci : ci 테스트 설정

* env : eslint, prettier 적용

* env : pwa 생성

* chore : pwa 설정 변경

* chore : lint, foramt 적용

* ci : 배포 cicd 적용

* ci  : pnp 방식을 적용하도록 설정

* ci : 브랜치 변경

* ci : ci 코멘트 테스트

* ci : ci 코멘트 테스트
  • Loading branch information
HelloWook authored Nov 18, 2024
1 parent 729059d commit 6b0fc9e
Show file tree
Hide file tree
Showing 78 changed files with 37,583 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 🚀개요

# 📝작업 내용

- [ ]
- [ ]

## 🔍백엔드 전달 사항

# 🎸기타 (연관 이슈)
14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 🚀요약

# 📸사진 (구현 캡처)

# 📝작업 내용

- [ ]
- [ ]

## 🔍백엔드 전달 사항

# 🎸기타 (연관 이슈)

close #이슈번호
55 changes: 55 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: postamn

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.18.0'

- name: Cache Yarn dependencies
uses: actions/cache@v3
with:
path: ./.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install

- name: Build project
run: |
yarn build
- name: Deploy to S3
uses: jakejarvis/[email protected]
with:
args: --delete
env:
AWS_S3_BUCKET: devfinal
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-northeast-2
SOURCE_DIR: dist

- name: Invalidate CloudFront Cache
run: |
aws cloudfront create-invalidation \
--distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} \
--paths "/*"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-northeast-2
40 changes: 40 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Workflow name
name: 'Chromatic Deployment'

on:
pull_request:
branches: main
paths:
- '**.stories.tsx'
push:
branches: main
paths:
- '**.stories.tsx'

jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- name: actions/checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install dependencies
run: yarn install --immutable --check-cache

- name: Publish to Chromatic
id: publish_chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: build-storybook
onlyChanged: true

- name: comment PR
uses: thollander/actions-comment-pull-request@v1
if: ${{ github.event_name == 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
message: '🚀 **storybook**: ${{ steps.publish_chromatic.outputs.storybookUrl }}'
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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


.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# Zero-Install을 사용

.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
*storybook.log
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn lint
yarn format
Loading

0 comments on commit 6b0fc9e

Please sign in to comment.