Skip to content

Commit 48c3dfd

Browse files
createhb21ahHachul
andauthored
Merge develop to main (#319)
* feat: next.js 폴더 구조 개선 (#308) (#309) * feat: next.js 폴더 구조 개선 (#308) * chore: script 명령어 관련 개선 (#308) * chore: nextjs ci failed issue fix (#308) * fix: type check issue fix (#308) * feat: next app router 15 기본 구조 잡는 작업 (#310) (#311) * feat: header & navMenu 추가 (#310) * feat: 기본 구조 작업 (#310) * chore: fix ci error (#310) * chore: deploy nextjs (#develop) * feat: prefetch & ssr pages (#310-prefetch) (#312) * chore: ci workflow 개선, 약간의 이미지 최적화 작업들, 부하테스트 (#316) * feat: prefetch & ssr pages (#310-prefetch) * chore: ci improves and next.js add sharp (#ci-advancement) * feat(nx-cloud): setup nx cloud workspace (#315) This commit sets up Nx Cloud for your Nx workspace, enabling distributed caching and the Nx Cloud GitHub integration for fast CI and improved developer experience. You can access your Nx Cloud workspace by going to https://cloud.nx.app/orgs/679e78e771fd2cb4bf200e5c/workspaces/679e791071fd2cb4bf200e60 **Note:** This commit attempts to maintain formatting of the nx.json file, however you may need to correct formatting by running an nx format command and committing the changes. * chore: add cancel-in-progress: true (#ci-advancement) * fix: ci-app.yml fix (#ci-advancement) * chore: conflicts (#ci-advancement) * chore: update ci for using nx (#ci-advancement) * chore: next.js project에도 bundle analyze와 부하 테스트트 스크립트 추가 (#ci-advancement) * chore: fix docker build issue - install sharp on workspace (#develop) * chore: Adjusting CI (#317) * chore: adjust ci (#ci-adjust) * chore: remove comment (#ci-adjust) * chore: ci working test (#ci-adjust) * chore: ci working test 2 (#ci-adjust) * feat(nx-cloud): setup nx cloud workspace (#318) This commit sets up Nx Cloud for your Nx workspace, enabling distributed caching and the Nx Cloud GitHub integration for fast CI and improved developer experience. You can access your Nx Cloud workspace by going to https://cloud.nx.app/orgs/67a199185e4612c72a76ed4c/workspaces/67a199375e4612c72a76ed4f **Note:** This commit attempts to maintain formatting of the nx.json file, however you may need to correct formatting by running an nx format command and committing the changes. * chore: ci working test 3 (#ci-adjust) * chore: ci working test 4 (#ci-adjust) * chore: ci affected test (#ci-adjust) * chore: ci affected test 2 (#ci-adjust) * chore: using nx ci token (#ci-adjust) * chore: test affected (#ci-adjust) * chore: test affected (#ci-adjust) * chore: test affected (#ci-adjust) * chore: test affected (#ci-adjust) * chore: test affected (#ci-adjust) --------- Co-authored-by: ahHachul <[email protected]> --------- Co-authored-by: ahHachul <[email protected]>
1 parent 2d9597a commit 48c3dfd

File tree

349 files changed

+6198
-5117
lines changed

Some content is hidden

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

349 files changed

+6198
-5117
lines changed

.github/actions/pnpm-install/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Setup pnpm
88
uses: pnpm/action-setup@v2
99
with:
10-
version: 8 # or your preferred version
10+
version: 8
1111

1212
- name: Get pnpm store directory
1313
id: pnpm-cache

.github/workflows/ci-app.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/ci-one-app.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: APP CI
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'services/**'
7+
- 'package.json'
8+
- 'pnpm-lock.yaml'
9+
- '.github/workflows/**'
10+
11+
permissions:
12+
actions: read
13+
contents: read
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
env:
20+
DEFAULT_NODE_VERSION: '20.13.0'
21+
HUSKY: '0'
22+
NEXT_TELEMETRY_DISABLED: '1'
23+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
24+
25+
jobs:
26+
main:
27+
name: 🚀 CI Pipeline
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 15
30+
31+
steps:
32+
- name: 📥 Checkout Repository
33+
uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
37+
- name: 🔨 Setup Node.js
38+
uses: actions/setup-node@v3
39+
timeout-minutes: 1
40+
with:
41+
node-version: ${{ env.DEFAULT_NODE_VERSION }}
42+
43+
- name: 📦 Install Dependencies
44+
uses: ./.github/actions/pnpm-install
45+
timeout-minutes: 5
46+
47+
- name: 🔄 Set Nx Base/Head
48+
uses: nrwl/nx-set-shas@v4
49+
50+
- name: 🔑 Create Environment File
51+
timeout-minutes: 1
52+
run: |
53+
echo '${{ secrets.DEV_REACT_APP_CONFIG }}' > config.json
54+
echo '${{ secrets.DEV_ONE_APP_CONFIG }}' | jq -r 'to_entries | .[] | "\(.key)=\(.value)"' > services/one-app/.env
55+
56+
- name: 🏃 Run CI Tasks
57+
run: |
58+
pnpm nx affected --parallel=3 -t type-check,build,test,lint

.github/workflows/deploy-app.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
# 추후 develop 브렌치는 제외
8+
- develop
79
paths:
810
- 'services/ahhachul.com/**'
911

@@ -39,7 +41,7 @@ jobs:
3941
cat config.json | jq -r 'to_entries[] | "\(.key)=\(.value)"' >> services/ahhachul.com/.env
4042
4143
- name: Build ahhachul.com
42-
run: pnpm build:app
44+
run: pnpm app:build
4345

4446
- name: Configure AWS credentials
4547
uses: aws-actions/configure-aws-credentials@v2
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
# 추후 develop 브렌치는 제외
8+
- develop
79
paths:
810
- 'services/one-app/**'
911

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

Dockerfile

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
1-
FROM node:20-alpine
1+
FROM node:20.13.0-alpine
2+
3+
RUN npm install -g pnpm
4+
25
RUN apk add --no-cache libc6-compat
6+
37
WORKDIR /app
48

5-
COPY services/one-app ./services/one-app
6-
COPY nx.json tsconfig* ./
7-
COPY package.json ./
8-
COPY pnpm-lock.yaml ./
9-
COPY pnpm-workspace.yaml ./
10-
COPY .nx ./
9+
COPY packages/utils ./packages/utils
10+
COPY services/one-app ./services/one-app
11+
COPY nx.json tsconfig* ./
12+
COPY package.json ./
13+
COPY pnpm-lock.yaml ./
14+
COPY pnpm-workspace.yaml ./
15+
COPY .nx ./
1116

1217
RUN pnpm install
1318

19+
RUN pnpm add -w sharp
20+
1421
ENV NEXT_TELEMETRY_DISABLED=1
1522

16-
RUN pnpm build:one-app
23+
RUN pnpm nextjs:build
1724

1825
EXPOSE 3000
1926

20-
CMD ["pnpm", "start:one-app"]
27+
CMD ["pnpm", "nextjs:start"]

0 commit comments

Comments
 (0)