Skip to content

Commit 731cfcf

Browse files
committed
chore: 주석 삭제 및 오타 처리
2 parents 0086393 + 1ba2827 commit 731cfcf

48 files changed

Lines changed: 1013 additions & 354 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Storybook Build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '22'
19+
20+
- name: Enable Corepack
21+
run: corepack enable
22+
23+
- name: Install dependencies
24+
run: yarn install --immutable
25+
26+
- name: Build Storybook
27+
run: yarn build-storybook
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Storybook to GitHub Pages
1+
name: Storybook Deploy
22

33
on:
44
push:
@@ -38,14 +38,14 @@ jobs:
3838
- name: Build Storybook
3939
run: yarn build-storybook
4040

41-
- name: Setup Pages
42-
uses: actions/configure-pages@v4
43-
4441
- name: Upload artifact
4542
uses: actions/upload-pages-artifact@v3
4643
with:
4744
path: storybook-static
4845

46+
- name: Setup Pages
47+
uses: actions/configure-pages@v4
48+
4949
- name: Deploy to GitHub Pages
5050
id: deployment
5151
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ storybook-static
4141
!.yarn/releases
4242

4343
# Vercel
44-
.vercel
44+
.vercel

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
dist
2+
build
23
node_modules
34
.yarn
45
.pnp.*

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"printWidth": 100,
2+
"printWidth": 120,
33
"singleQuote": true,
44
"semi": true,
55
"trailingComma": "es5",

.storybook/main.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
import path from 'path';
2+
import { fileURLToPath } from 'url';
13
import type { StorybookConfig } from '@storybook/react-vite';
24

5+
const dirname = path.dirname(fileURLToPath(import.meta.url));
6+
37
const config: StorybookConfig = {
48
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
59
addons: [
@@ -10,5 +14,14 @@ const config: StorybookConfig = {
1014
'@storybook/addon-onboarding',
1115
],
1216
framework: '@storybook/react-vite',
17+
core: {
18+
builder: {
19+
name: '@storybook/builder-vite',
20+
options: {
21+
viteConfigPath: path.resolve(dirname, 'vite.config.ts'),
22+
},
23+
},
24+
disableTelemetry: true,
25+
},
1326
};
1427
export default config;

.storybook/vite.config.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import path from 'path';
2+
import { fileURLToPath } from 'url';
3+
import tailwindcss from '@tailwindcss/vite';
4+
import { defineConfig } from 'vite';
5+
import svgr from 'vite-plugin-svgr';
6+
7+
const dirname = path.dirname(fileURLToPath(import.meta.url));
8+
9+
export default defineConfig({
10+
plugins: [tailwindcss(), svgr()],
11+
resolve: {
12+
alias: {
13+
'@app': path.resolve(dirname, '../src/app'),
14+
'@pages': path.resolve(dirname, '../src/pages'),
15+
'@shared': path.resolve(dirname, '../src/shared'),
16+
'@assets': path.resolve(dirname, '../src/shared/assets'),
17+
},
18+
},
19+
});

eslint.config.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@ import storybook from 'eslint-plugin-storybook';
1212

1313
export default [
1414
{
15-
ignores: [
16-
'dist',
17-
'build',
18-
'node_modules',
19-
'.yarn',
20-
'.pnp.*',
21-
'*.config.js',
22-
'storybook-static',
23-
],
15+
ignores: ['dist', 'build', 'node_modules', '.yarn', '.pnp.*', '*.config.js', 'storybook-static'],
2416
},
2517
js.configs.recommended,
2618
...tseslint.configs.recommended,
@@ -107,14 +99,7 @@ export default [
10799
'import/order': [
108100
'error',
109101
{
110-
groups: [
111-
'builtin',
112-
'external',
113-
'internal',
114-
['parent', 'sibling', 'index'],
115-
'object',
116-
'type',
117-
],
102+
groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index'], 'object', 'type'],
118103
pathGroups: [
119104
{
120105
pattern: '@/**',

src/app/styles/index.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
@theme {
55
/* Typography - Font Family */
6-
--font-sans:
7-
'Pretendard', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
6+
--font-sans: 'Pretendard', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
87

98
/* Colors - Primitive/Gray */
109
--color-white: #ffffff;

src/pages/auth/ui/SignupPage.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ export default function SignupPage() {
1414
const [profileImage, setProfileImage] = useState<string | undefined>();
1515
const fileInputRef = useRef<HTMLInputElement>(null);
1616

17-
/* ===============================
18-
* react-hook-form + zod
19-
* =============================== */
2017
const {
2118
register,
2219
handleSubmit,
@@ -29,9 +26,6 @@ export default function SignupPage() {
2926
console.log(' 회원가입 데이터', data);
3027
};
3128

32-
/* ===============================
33-
* 프로필 이미지 핸들러
34-
* =============================== */
3529
const handleSelectImage = () => {
3630
fileInputRef.current?.click();
3731
};
@@ -131,12 +125,7 @@ export default function SignupPage() {
131125

132126
{/* ===== 회원가입 버튼 ===== */}
133127
<section className={signupStyles.submitSection}>
134-
<Button
135-
variant="fill"
136-
size="auto"
137-
className={signupStyles.submitButton}
138-
onClick={handleSubmit(onSubmit)}
139-
>
128+
<Button variant="fill" size="auto" className={signupStyles.submitButton} onClick={handleSubmit(onSubmit)}>
140129
회원가입 완료
141130
</Button>
142131
</section>

0 commit comments

Comments
 (0)