-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from 42Where/feature/restructure
[#104] 재구조화 (Feature/restructure)
- Loading branch information
Showing
76 changed files
with
1,304 additions
and
1,127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
{ | ||
"extends": ["next/core-web-vitals"] | ||
"extends": [ | ||
"prettier", | ||
"airbnb", | ||
"airbnb-typescript", | ||
"plugin:storybook/recommended" | ||
], | ||
"plugins": [ | ||
"prettier" | ||
], | ||
"rules": { | ||
"prettier/prettier": "error" | ||
}, | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
# testing | ||
/coverage | ||
/src/pages/font-test | ||
|
||
# next.js | ||
/.next/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"plugins": ["prettier-plugin-tailwindcss"], | ||
"tailwindPreserveWhitespace": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
FROM node:alpine AS deps | ||
RUN apk add --no-cache libc6-compat python3 build-base | ||
RUN apk add libc6-compat python3 build-base | ||
WORKDIR /app | ||
# package.json과 package-lock.json을 먼저 복사해서 캐시 활용 | ||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
|
||
FROM node:alpine AS builder | ||
WORKDIR /app | ||
# 의존성 설치 후 나머지 파일 복사 | ||
COPY . . | ||
COPY --from=deps /app/node_modules ./node_modules | ||
RUN npm run build | ||
# html 폴더를 생성해서 /app/out 디렉토리에 있는 모든 .html 파일을 html 폴더에 이동 | ||
RUN mkdir /app/out/html | ||
RUN mv /app/out/*.html /app/out/html | ||
RUN mkdir /app/assets | ||
# /app/out 디렉토리에서 html 폴더를 제외한 모든 파일을 /app/out/assets 디렉토리로 이동 | ||
RUN mv /app/out/* /app/assets | ||
RUN mv /app/assets/html /app/out | ||
RUN mv /app/assets /app/out | ||
# /app/out/html 디렉토리에서 index.html이랑 404.html을 제외한 모든 .html 파일의 확장자를 제거 | ||
RUN find /app/out/html -type f -name "*.html" -not -name "index.html" -not -name "404.html" -exec sh -c 'mv "$1" "${1%.html}"' _ {} \; | ||
|
||
# html 폴더 생성, 파일 이동 및 확장자 제거를 하나의 스크립트로 통합 | ||
RUN mkdir -p /app/out/html /app/assets \ | ||
&& mv /app/out/*.html /app/out/html \ | ||
&& mv /app/out/* /app/assets \ | ||
&& mv /app/assets/html /app/out \ | ||
&& mv /app/assets /app/out \ | ||
&& find /app/out/html -type f -name "*.html" -not -name "index.html" -not -name "404.html" -exec sh -c 'mv "$1" "${1%.html}"' _ {} \; | ||
|
||
RUN ls -alh /app/out |
Oops, something went wrong.