Skip to content

Commit

Permalink
refactor: 프로젝트 구조 변경 (#101)
Browse files Browse the repository at this point in the history
* refactor: 프로젝트 구조 변경

* chore: update yarn

* refactor: replace classnames to clsx

* refactor: 페이지 프로젝트 구조 변경

* chore: .prettierignore 추가

* chore(.github): update issue template

* chore: update yarn berry

* chore(.vscode): add settings

* chore: update

* chore: add eslintcache

* chore(.github): update ci

* chore(ci): simplify Yarn Berry setup and cache configuration

* chore(ci): enable Corepack in CI workflow
  • Loading branch information
gwansikk authored Dec 12, 2024
1 parent c8a086d commit 1a1ea8b
Show file tree
Hide file tree
Showing 88 changed files with 3,062 additions and 3,147 deletions.
1 change: 1 addition & 0 deletions .eslintcache

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: '🐞 Bug'
name: 'Bug'
description: '버그가 발생했나요?'
title: '[Bug]: '
labels: '🐞 bug'
labels: 'bug'
body:
- type: textarea
attributes:
Expand Down Expand Up @@ -29,5 +29,5 @@ body:
required: true
- type: textarea
attributes:
label: ETC
description: 전달할 내용이 있다면 여기에 작성해 주세요.
label: To Assignees
description: 담당자에게 전달할 내용이 있다면 여기에 작성해 주세요.
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: 'Feature'
name: 'Feature'
description: '새로운 기능 또는 명세가 있나요?'
title: '[Feature]: '
labels: 'feature'
labels: 'feature'
body:
- type: textarea
attributes:
label: Describe
label: Description
description: 새로운 기능에 대한 설명을 작성해 주세요.
placeholder: 자세히 적을수록 좋습니다.
validations:
Expand All @@ -19,5 +19,5 @@ body:
required: true
- type: textarea
attributes:
label: ETC
description: 전달할 내용이 있다면 여기에 작성해주 세요.
label: To Assignees
description: 담당자에게 전달할 내용이 있다면 여기에 작성해 주세요.
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/refactor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: '🔨 Refactor'
name: 'Refactor'
description: '리팩터링을 해야할 부분이 있나요?'
title: '[Refactor]: '
labels: '🔨 refactor'
labels: 'refactor'
body:
- type: textarea
attributes:
label: Describe
label: Description
description: 왜 리팩터링을 해야하는지 설명해 주세요.
placeholder: 자세히 적을수록 좋습니다.
validations:
Expand All @@ -19,5 +19,5 @@ body:
required: true
- type: textarea
attributes:
label: ETC
description: 전달할 내용이 있다면 여기에 작성해 주세요.
label: To Assignees
description: 담당자에게 전달할 내용이 있다면 여기에 작성해 주세요.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: '💬 Suggestion'
name: 'RFC'
description: '팀원들과 논의할 내용이 있나요?'
title: '[Suggestion]: '
labels: '💬 suggestion'
title: '[RFC]: '
labels: 'rfc'
body:
- type: textarea
attributes:
label: Describe
description: 회의 주제에 대한 설명을 작성해 주세요.
placeholder: 자세히 적을수록 좋습니다.
label: Description
description: 주제에 대한 설명을 작성해 주세요.
placeholder: 자세히 적을수록 좋아요.
validations:
required: true
- type: textarea
Expand All @@ -19,5 +19,5 @@ body:
required: true
- type: textarea
attributes:
label: ETC
description: 전달할 내용이 있다면 여기에 작성해 주세요.
label: To Reviewer
description: 검토자에게 전달할 내용이 있다면 여기에 작성해 주세요.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'

- name: Enable Yarn Berry
run: yarn set version berry

- name: Install dependencies
run: yarn install

Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Lint
.eslintcache

# Logs
logs
*.log
Expand All @@ -16,8 +13,6 @@ dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.yarn
File renamed without changes.
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.cjs",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
}
934 changes: 0 additions & 934 deletions .yarn/releases/yarn-4.5.1.cjs

This file was deleted.

14 changes: 7 additions & 7 deletions .yarn/sdks/eslint/bin/eslint.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env node

const { existsSync } = require(`fs`);
const { createRequire, register } = require(`module`);
const { resolve } = require(`path`);
const { pathToFileURL } = require(`url`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
Expand All @@ -25,8 +25,8 @@ if (existsSync(absPnpApiPath)) {
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? (exports) => absRequire(absUserWrapperPath)(exports)
: (exports) => exports;
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real eslint/bin/eslint.js your application uses
module.exports = wrapWithUserWrapper(absRequire(`eslint/bin/eslint.js`));
14 changes: 7 additions & 7 deletions .yarn/sdks/eslint/lib/api.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env node

const { existsSync } = require(`fs`);
const { createRequire, register } = require(`module`);
const { resolve } = require(`path`);
const { pathToFileURL } = require(`url`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
Expand All @@ -25,8 +25,8 @@ if (existsSync(absPnpApiPath)) {
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? (exports) => absRequire(absUserWrapperPath)(exports)
: (exports) => exports;
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real eslint your application uses
module.exports = wrapWithUserWrapper(absRequire(`eslint`));
14 changes: 7 additions & 7 deletions .yarn/sdks/eslint/lib/unsupported-api.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env node

const { existsSync } = require(`fs`);
const { createRequire, register } = require(`module`);
const { resolve } = require(`path`);
const { pathToFileURL } = require(`url`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
Expand All @@ -25,8 +25,8 @@ if (existsSync(absPnpApiPath)) {
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? (exports) => absRequire(absUserWrapperPath)(exports)
: (exports) => exports;
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real eslint/use-at-your-own-risk your application uses
module.exports = wrapWithUserWrapper(absRequire(`eslint/use-at-your-own-risk`));
2 changes: 1 addition & 1 deletion .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "3.3.3-sdk",
"version": "3.4.2-sdk",
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
Expand Down
14 changes: 7 additions & 7 deletions .yarn/sdks/typescript/lib/tsc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env node

const { existsSync } = require(`fs`);
const { createRequire, register } = require(`module`);
const { resolve } = require(`path`);
const { pathToFileURL } = require(`url`);
const {existsSync} = require(`fs`);
const {createRequire, register} = require(`module`);
const {resolve} = require(`path`);
const {pathToFileURL} = require(`url`);

const relPnpApiPath = '../../../../.pnp.cjs';
const relPnpApiPath = "../../../../.pnp.cjs";

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absUserWrapperPath = resolve(__dirname, `./sdk.user.cjs`);
Expand All @@ -25,8 +25,8 @@ if (existsSync(absPnpApiPath)) {
}

const wrapWithUserWrapper = existsSync(absUserWrapperPath)
? (exports) => absRequire(absUserWrapperPath)(exports)
: (exports) => exports;
? exports => absRequire(absUserWrapperPath)(exports)
: exports => exports;

// Defer to the real typescript/lib/tsc.js your application uses
module.exports = wrapWithUserWrapper(absRequire(`typescript/lib/tsc.js`));
Loading

0 comments on commit 1a1ea8b

Please sign in to comment.