Skip to content

Commit

Permalink
chore: 프로젝트 관리 툴 변경
Browse files Browse the repository at this point in the history
- `yarn` -> `pnpm` 변경
- `lerna` -> `turborepo` 변경
  • Loading branch information
Xvezda committed Dec 13, 2023
1 parent 177e6a0 commit 0abb3ab
Show file tree
Hide file tree
Showing 12 changed files with 7,895 additions and 11,225 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
- run: yarn install
- run: yarn test --ci --coverage
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm test -- --ci --coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,6 @@ dist

# npm
package-lock.json

# Turborepo
.turbo/
5 changes: 2 additions & 3 deletions examples/basic-routing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "basic-routing",
"version": "0.1.0-alpha.0",
"source": "index.html",
"main": "script.js",
"scripts": {
"start": "parcel",
"build": "parcel build"
Expand All @@ -17,7 +16,7 @@
"parcel": "latest"
},
"dependencies": {
"@vomjs/tools": "latest",
"vomjs": "latest"
"@vomjs/tools": "workspace:*",
"vomjs": "workspace:*"
}
}
3 changes: 1 addition & 2 deletions examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "counter",
"version": "0.1.0-alpha.0",
"source": "index.html",
"main": "script.js",
"scripts": {
"start": "parcel",
"build": "parcel build"
Expand All @@ -12,6 +11,6 @@
"parcel": "latest"
},
"dependencies": {
"vomjs": "latest"
"vomjs": "workspace:*"
}
}
3 changes: 1 addition & 2 deletions examples/tic-tac-toe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "tic-tac-toe",
"version": "0.1.0-alpha.0",
"source": "index.html",
"main": "script.js",
"scripts": {
"start": "parcel",
"build": "parcel build"
Expand All @@ -13,6 +12,6 @@
"parcel": "latest"
},
"dependencies": {
"vomjs": "latest"
"vomjs": "workspace:*"
}
}
5 changes: 0 additions & 5 deletions lerna.json

This file was deleted.

22 changes: 6 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
"url": "https://xvezda.com/"
},
"scripts": {
"bootstrap": "lerna bootstrap",
"prepare": "husky install",
"prepublishOnly": "yarn build",
"build": "yarn workspace vomjs build",
"prepublishOnly": "pnpm run build",
"build": "turbo build",
"test": "jest --verbose --cache",
"lint": "eslint --cache .",
"define": "node scripts/defineSandbox.js",
"postversion": "yarn readme",
"readme": "yarn define 'docs: update README (%h)'"
"postversion": "pnpm run readme",
"readme": "pnpm run define 'docs: update README (%h)'"
},
"devDependencies": {
"@babel/core": "^7.16.0",
Expand All @@ -29,17 +28,8 @@
"gh-pages": "^3.2.3",
"husky": "^7.0.4",
"jest": "^27.3.1",
"lerna": "^4.0.0",
"lint-staged": ">=10"
},
"resolutions": {
"**/json-schema": "^0.4.0",
"**/glob-parent": "^5.1.2",
"**/postcss": "^8.2.13",
"**/nth-check": "^2.0.1",
"**/ansi-regex": "^5.0.1",
"**/node-forge": "^1.0.0",
"**/parse-path": "^6.0.0"
"lint-staged": ">=10",
"turbo": "^1.11.2"
},
"workspaces": [
"packages/*",
Expand Down
1 change: 1 addition & 0 deletions packages/vomjs-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "src/index.js",
"devDependencies": {
"@babel/core": "^7.15.5",
"@jest/globals": "^29.7.0",
"babel-jest": "^27.2.0",
"jest": "^27.2.0"
},
Expand Down
Loading

0 comments on commit 0abb3ab

Please sign in to comment.