Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build 타임 최적화 및 테스트 파일 cicd 파일 최적화 #10

Merged
merged 10 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/chromatic-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ jobs:
with:
node-version: '18'

- name: Cache Yarn dependencies
uses: actions/cache@v3
with:
path: ~/.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Enable Corepack
run: |
corepack enable
Expand All @@ -26,7 +34,6 @@ jobs:
- name: Install dependencies
run: |
yarn install --immutable
yarn dlx @yarnpkg/sdks vscode

- name: Build Storybook
run: yarn workspace @zagdang/ui build-storybook
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/chromatic-pr.check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,22 @@ jobs:
with:
node-version: '18'

- name: Cache Yarn dependencies
uses: actions/cache@v3
with:
path: ~/.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Enable Corepack
run: |
corepack enable
corepack prepare [email protected] --activate

- name: Install dependencies
run: |
yarn install --immutable
yarn dlx @yarnpkg/sdks vscode
yarn install --immutable

- name: Build Storybook
run: yarn workspace @zagdang/ui build-storybook --webpack-stats-json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-push.check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: corepack enable && corepack prepare [email protected] --activate

- name: Install dependencies
run: yarn install --immutable --frozen-lockfile
run: yarn install --immutable

- name: Run lint checks
run: yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
corepack prepare [email protected] --activate

- name: Install dependencies
run: yarn install --immutable
run: yarn install --immutable

- name: Run tests with coverage
run: yarn test --coverage
Expand Down
98 changes: 19 additions & 79 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ nodeLinker: pnp
pnpMode: strict
enableGlobalCache: false

compressionLevel: 0 # 더 빠른 압축
enableMirror: true # 미러 캐시 활성화

npmPublishRegistry: 'https://registry.npmjs.org'
npmRegistryServer: 'https://registry.npmjs.org'

Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packageManager": "[email protected]",
"private": true,
"scripts": {
"build": "turbo run build",
"build": "turbo run build --parallel",
"dev": "turbo run dev",
"lint": "eslint 'packages/**/*.{ts,tsx,js,jsx}' --ext .ts,.tsx,.js,.jsx && prettier --check .",
"lint:fix": "eslint . --fix && prettier --write .",
Expand All @@ -18,6 +18,7 @@
"apps/*"
],
"devDependencies": {
"@esbuild/linux-arm64": "0.24.0",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
Expand All @@ -28,5 +29,11 @@
"prettier": "^3.4.1",
"turbo": "^2.3.3",
"typescript": "^5.7.2"
},
"esbuild": {
"supportedArchitectures": [
"x64",
"arm64"
]
}
}
3 changes: 2 additions & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-typescript": "^11.0.0",
"@types/node": "^22.10.2",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"eslint": "^8.0.0",
"lucide-react": "^0.468.0",
"lucide-react": "~0.468.0",
"react": "^18.2.0",
"rollup": "^4.0.0",
"rollup-plugin-dts": "^6.0.0",
Expand Down
6 changes: 1 addition & 5 deletions packages/ui/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ function getAbsolutePath(value: string): any {
}
const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@chromatic-com/storybook'),
getAbsolutePath('@storybook/addon-interactions'),
],
addons: [getAbsolutePath('@storybook/addon-essentials'), getAbsolutePath('@chromatic-com/storybook')],
framework: {
name: getAbsolutePath('@storybook/react-vite'),
options: {},
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export default {
'^.+\\.(ts|tsx)$': ['ts-jest'],
'\\.css$': 'jest-transform-css'
},
maxWorkers: 4,
verbose: true,
collectCoverage: true,
coverageDirectory: 'coverage',
coverageReporters: ['json-summary', 'text', 'lcov'],
Expand Down
Loading
Loading