Skip to content

Commit

Permalink
chore: update to yarn v2+
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchen committed Mar 16, 2022
1 parent 43fb2ca commit de0fd5a
Showing 7 changed files with 19,662 additions and 13,725 deletions.
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -2,6 +2,5 @@
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"

yarn check --integrity --verify-tree
yarn lint-staged
yarn test
550 changes: 550 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

785 changes: 785 additions & 0 deletions .yarn/releases/yarn-3.2.0.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-3.2.0.cjs
2 changes: 1 addition & 1 deletion devnotes.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

## App Version Update

- Use yarn v1 instead of yarn v2 or npm
- Use yarn v2 instead of yarn v1 or npm
- `yarn config set version-tag-prefix "v"` and `yarn config set version-git-message "chore: bump version to v%s"` (if `version-tag-prefix` and `version-git-message` are not set yet)
- `husky` and `commitlint` execute `yarn test` and lint the commit message before every commit
- If a new version is decided to be released, do these:
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -6,8 +6,11 @@
"type": "git",
"url": "https://github.com/arcomage/arcomage-hd.git"
},
"packageManager": "yarn@3.2.0",
"scripts": {
"postinstall": "husky install",
"prepack": "pinst --disable",
"postpack": "pinst --enable",
"start": "webpack serve --mode development",
"build": "rimraf dist && webpack --mode production",
"build:local": "rimraf dist && webpack --env NODE_ENV2=local --mode production && http-server dist",
@@ -110,6 +113,7 @@
"jest": "^27.4.5",
"jest-canvas-mock": "^2.3.1",
"node-sass": "^7.0.0",
"pinst": "^3.0.0",
"postcss": "^8.4.5",
"postcss-import": "^14.0.2",
"postcss-loader": "^6.2.1",
32,038 changes: 18,315 additions & 13,723 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit de0fd5a

Please sign in to comment.