Skip to content

Commit b3be856

Browse files
committed
Merge branch 'main' of https://github.com/TripTripNow/TodayTrip into feat/issue#26
1 parent 30f5415 commit b3be856

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+12416
-0
lines changed

.eslintrc.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
// 어떤 규칙들과 설정으로 eslint를 사용할지 명시
8+
"extends": [
9+
"next",
10+
"prettier",
11+
"eslint:recommended",
12+
"plugin:react/recommended", //ESLint의 내장되어있는 추천 설정을 사용
13+
"plugin:react/jsx-runtime",
14+
"plugin:@typescript-eslint/recommended" // 타입스크립트 전용 규칙을 추가적으로 사용할 수 있음
15+
],
16+
"parser": "@typescript-eslint/parser", // 타입스크립트용 eslint parser
17+
"overrides": [],
18+
"parserOptions": {
19+
"ecmaVersion": "latest",
20+
"sourceType": "module",
21+
"project": "./tsconfig.json"
22+
},
23+
"plugins": ["react", "@typescript-eslint"],
24+
"rules": {
25+
"react/react-in-jsx-scope": "off", // JSX를 사용할 때 React가 일일이 import되지 않으면 에러(리액트 17 이후부터는 안해줘도 됨)-> off
26+
"no-unused-vars": "off", // 사용하지 않는 변수가 있을 때 에러 -> off
27+
"@typescript-eslint/no-unused-vars": "warn",
28+
"react/prop-types": "warn" // prop의 타입을 정의해주지 않으면 에러 -> warn
29+
},
30+
"settings": {
31+
"react": {
32+
"version": "detect"
33+
}
34+
}
35+
}

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @SoobinJ @zermzerm @qooktree1 @summerkimm @youdame
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
body:
2+
- type: textarea
3+
attributes:
4+
label: 🍎 어제 한 일
5+
placeholder: 어제는 무엇을 했나요?
6+
validations:
7+
required: true
8+
9+
- type: textarea
10+
attributes:
11+
label: 🍑 회의내용
12+
placeholder: 회의 내용을 적어주세요.
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
attributes:
18+
label: 🍒 오늘 할일
19+
placeholder: 오늘 해야할 일을 작성합니다.
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
attributes:
25+
label: 🍇 TMI
26+
placeholder: TMI 적어주세요.

.github/ISSUE_TEMPLATE/feature.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: '💡 Feat'
2+
description: '새로운 기능 추가 템플릿'
3+
title: '[Feat] '
4+
labels: 'feat'
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: 📝 설명
9+
description: 새로운 기능에 대해 설명해주세요.
10+
placeholder: 기능에 대해서 적어주세요.
11+
validations:
12+
required: true
13+
- type: textarea
14+
attributes:
15+
label: ✅ 체크사항
16+
description: 주어진 기능에 대해서 체크박스를 만들어주세요.
17+
placeholder: 기능에 대해서 나열해주세요.
18+
validations:
19+
required: true

.github/ISSUE_TEMPLATE/fix.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "🛠️ Fix"
2+
description: "Fix 템플릿"
3+
title: "[Fix] "
4+
labels: "fix"
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: 🐞 버그 설명
9+
description: 버그에 대한 설명을 작성해 주세요.
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: 🧾 로그
15+
description: 로그가 있으면 복붙해 주세요.
16+
render: shell
17+
validations:
18+
required: false

.github/ISSUE_TEMPLATE/refactor.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "♻️ Refactor"
2+
description: "리팩토링 템플릿"
3+
title: "[Refactor] "
4+
labels: "refactor"
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: ❓ 이유
9+
description: 리팩토링을 진행한 이유를 설명해주세요.
10+
validations:
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: ✅ 수정
15+
description: 수정한 부분을 적어주세요.
16+
validations:
17+
required: true

.github/PULL_REQUEST_TEMPLATE.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## 🕹️ 작업 내용
2+
3+
- [ ]
4+
- [ ]
5+
6+
## 📋 리뷰 포인트
7+
8+
-
9+
-
10+
11+
## 🔮 기타 사항
12+
13+
-
14+
-

.github/auto_assign.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
addReviewers: false
2+
addAssignees: author

.github/workflows/ci.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: ci
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run-lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
12+
- name: Set up Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: '20'
16+
17+
- name: Cache node modules
18+
uses: actions/cache@v3
19+
id: cache
20+
with:
21+
path: node_modules
22+
key: npm-packages-${{ hashFiles('**/package-lock.json') }}
23+
24+
- name: Install the project dependencies
25+
if: steps.cache.outputs.cache-hit == false
26+
run: npm ci
27+
28+
- name: Build
29+
run: npm run build
30+
31+
- name: action-discord
32+
uses: sarisia/actions-status-discord@v1
33+
if: failure()
34+
with:
35+
webhook: ${{ secrets.DISCORD_WEBHOOK }}
36+
content: '<@&1192747539124977736> ${{ github.actor }} 확인해주세요! ( っ •‌ᜊ•‌ )う'
37+
title: ❗️ failed ❗️
38+
color: FF0000
39+
username: GitHub Actions
40+
41+
- run: echo '${{github.actor}}님 에러 확인 확인해주세요 ( っ •‌ᜊ•‌ )う'

.gitignore

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts

.husky/pre-commit

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged
5+
echo "TripTripNow 화이팅! (*ૂ❛ᴗ❛*ૂ)"

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.10.0

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"semi": true
7+
}

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.preferences.importModuleSpecifier": "non-relative"
3+
}

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
20+
21+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
22+
23+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
24+
25+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
26+
27+
## Learn More
28+
29+
To learn more about Next.js, take a look at the following resources:
30+
31+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
32+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
33+
34+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
35+
36+
## Deploy on Vercel
37+
38+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
39+
40+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

next.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
reactStrictMode: true,
3+
webpack: (config) => {
4+
config.module.rules.push({
5+
test: /\.svg$/,
6+
use: ['@svgr/webpack'],
7+
});
8+
9+
return config;
10+
},
11+
};

0 commit comments

Comments
 (0)