Skip to content

Commit

Permalink
chore: switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Nov 2, 2022
1 parent f35dd5d commit 4b2f52a
Show file tree
Hide file tree
Showing 49 changed files with 6,954 additions and 3,683 deletions.
45 changes: 29 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,46 @@ jobs:
node-version: [16.x]
steps:
- name: ⤵️ Checkout
uses: actions/checkout@v2
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/checkout@v3

- name: 🎉 Setup nodejs
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 🌱 Get Cache Directory
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: 🚸 Setup Cache
uses: actions/cache@v2
node-version: 16.x

- name: 🎉 Setup pnpm
uses: pnpm/action-setup@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
version: 7
run_install: false

- name: 🌱 Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: 🚸 Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: 🚧 Prepare
run: yarn global add lerna
- name: 🚀 Bootstrap
run: yarn bootstrap
${{ runner.os }}-pnpm-store-
- name: 🚧 Install dependencies
run: pnpm install --no-frozen-lockfile

- name: ✅ Test
run: yarn test

- name: 🔑 Generate Token
uses: wow-actions/use-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token

- name: 💡 Coveralls
uses: coverallsapp/github-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-label-patch-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: ${{ env.bot_token }}
IGNORED: "!.gitignore\nyarn.lock"
IGNORED: "!.gitignore\nyarn.lock\npnpm-lock.yaml"
39 changes: 0 additions & 39 deletions .github/workflows/update-cache.yaml

This file was deleted.

22 changes: 13 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"lint:ts": "eslint '**/src/**/*.{js,ts}?(x)' --fix",
"lint:style": "stylelint '**/src/**/*.less' --syntax less --fix",
"lint": "run-s lint:ts lint:style",
"build:dev": "sh ./scripts/build-dev",
"build:demos": "sh ./scripts/build-demos",
"build:sites": "sh ./scripts/build-sites",
"test": "lerna run test --no-private",
"build": "lerna run build",
"prettier": "prettier --write '**/*.{js,mjs,jsx,tsx,ts,less,md,json}'",
"pretty-quick": "pretty-quick",
"clean": "lerna run clean",
"clean:lerna": "lerna run clean && lerna clean -y",
"clean:modules": "rimraf node_modules **/yarn-error.log",
"prepare": "is-ci || husky install .husky"
"test": "pnpm -r --if-present --filter=./packages/* run test",
"build": "pnpm -r --if-present --filter=./packages/* run build",
"build:dev": "pnpm -r --if-present --filter=./packages/* run build:dev",
"build:demos": "sh ./scripts/build-demos",
"build:sites": "sh ./scripts/build-sites",
"clean:build": "pnpm -r --if-present --filter=./packages/* run clean",
"clean:modules": "rimraf node_modules packages/**/node_modules",
"setup:husky": "husky install .husky",
"prepare": "is-ci || run-p setup:husky build:dev"
},
"lint-staged": {
"*": [
Expand All @@ -39,6 +39,9 @@
]
},
"dependencies": {
"@babel/core": "^7.19.6",
"@babel/plugin-syntax-flow": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.19.0",
"@commitlint/config-conventional": "^17.2.0",
"@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-node-resolve": "^15.0.1",
Expand All @@ -57,6 +60,7 @@
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^27.1.3",
"eslint-plugin-jsx-a11y": "^6.4.1",
Expand Down
96 changes: 0 additions & 96 deletions packages/x6-angular-shape/CHANGELOG.md

This file was deleted.

130 changes: 0 additions & 130 deletions packages/x6-angular-shape/README.md

This file was deleted.

Loading

0 comments on commit 4b2f52a

Please sign in to comment.