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

WIP: feat: migrate to turbo and pnpm #713

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module.exports = {
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
__DEVELOPMENT__: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
Expand Down
117 changes: 52 additions & 65 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,85 +11,92 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
setup:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node_version: [12, 14, 16]
fail-fast: false
steps:
- name: checkout
uses: actions/checkout@v2

- name: cache yarn.lock
uses: actions/cache@v2
- name: install pnpm
uses: pnpm/action-setup@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}

- name: create yarn.lock
run: yarn generate-lock-entry

- name: hack for single file
run: |
if [ ! -d "package-temp-dir" ]; then
mkdir package-temp-dir
fi
cp yarn.lock package-temp-dir
- name: cache node_modules
id: node_modules_cache_id
uses: actions/cache@v2
version: 6

- name: set node version to ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}
node-version: ${{ matrix.node_version }}
cache: 'pnpm'

- name: install
- name: install deps
if: steps.node_modules_cache_id.outputs.cache-hit != 'true'
run: yarn
run: pnpm install

- name: Run Build
run: pnpm run build

static-checking:
needs: [setup]
needs: ['build']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Restore cache from yarn.lock
uses: actions/cache@v2
- name: install pnpm
uses: pnpm/action-setup@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}
version: 6

- name: Restore cache from node_modules
uses: actions/cache@v2
- name: set node version to 16
uses: actions/setup-node@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}
node-version: 16
cache: 'pnpm'

- name: install deps
run: pnpm install

- name: Run build
run: pnpm run build

- name: Run Check Types
run: yarn check-types
run: pnpm run check-types
- name: Run ESlint
run: yarn eslint
run: pnpm run eslint
- name: Run Prettier
run: yarn prettier --check
run: pnpm run prettier
- name: Run StyleLint
run: yarn stylelint
run: pnpm run stylelint

test:
needs: ['build']
runs-on: ubuntu-latest
needs: [setup]
steps:
- uses: actions/checkout@v2

- name: Restore cache from yarn.lock
uses: actions/cache@v2
- name: install pnpm
uses: pnpm/action-setup@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}
version: 6

- name: Restore cache from node_modules
uses: actions/cache@v2
- name: set node version to 16
uses: actions/setup-node@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}
node-version: 16
cache: 'pnpm'

- name: install deps
run: pnpm install

- name: Run build
run: pnpm run build

- name: Run Unit Test
run: yarn test
run: pnpm run test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
Expand All @@ -100,23 +107,3 @@ jobs:
name: codecov-umbrella
flag: unittests, integration
verbose: true
build:
runs-on: ubuntu-latest
needs: [setup, static-checking, test]
steps:
- uses: actions/checkout@v2

- name: Restore cache from yarn.lock
uses: actions/cache@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}

- name: Restore cache from node_modules
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-temp-dir/yarn.lock') }}

- name: Run Build
run: yarn build
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ coverage
.DS_Store
storybook-static
.yarn-error.log
.turbo
lib
docs/api

Expand All @@ -32,3 +33,5 @@ website/.env.production.local
website/npm-debug.log*
website/yarn-debug.log*
website/yarn-error.log*

*.log
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
esm
umd
.history
.turbo
node_modules
yarn.lock
coverage
Expand All @@ -11,3 +12,5 @@ website/build
website/docs/api
website/.docusaurus
website/node_modules
*.yaml
*.md
2 changes: 1 addition & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"ignoreFiles": [
"coverage/**/*.css",
"esm/**/*.css",
"**/esm/**/*.css",
"umd/**/*.css",
"website/**/*.css"
]
Expand Down
28 changes: 28 additions & 0 deletions .versionrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"bumpFiles": [
{
"filename": "package.json",
"type": "json"
},
{
"filename": "packages/molecule/package.json",
"type": "json"
},
{
"filename": "packages/ide/package.json",
"type": "json"
},
{
"filename": "packages/common/package.json",
"type": "json"
},
{
"filename": "packages/ui/package.json",
"type": "json"
},
{
"filename": "packages/glue/package.json",
"type": "json"
}
]
}
117 changes: 0 additions & 117 deletions README-koKR.md

This file was deleted.

1 change: 1 addition & 0 deletions README-koKR.md
Loading