Skip to content

Commit

Permalink
Upgrade several packages
Browse files Browse the repository at this point in the history
Upgrade eslint related packages.
Upgrade typescript.
Upgrade workflow files to use lated pnpm and node 16.
  • Loading branch information
lookasc committed Nov 22, 2023
1 parent d5cfda5 commit 9893e0d
Show file tree
Hide file tree
Showing 21 changed files with 14,316 additions and 7,851 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 16.14.2

- uses: pnpm/action-setup@v2.2.2
- uses: pnpm/action-setup@v2.4.0
with:
version: 7.5.0
version: 8.10.2

- name: Install and Build 🔧
run: |
Expand All @@ -31,4 +31,4 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/.vuepress/dist
FOLDER: vuepress/docs/.vuepress/dist
22 changes: 16 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
version: 7.5.0
node-version: '16.x'
- run: pnpm install
- run: pnpm lint
node-version: 16.14.2

- uses: pnpm/[email protected]
with:
version: 8.10.2

- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm lint
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: pnpm/[email protected]
with:
version: 7.5.0
version: 8.10.2

- name: Install dependencies
run: pnpm install
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,20 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
version: 7.5.0
node-version: '16.x'
- run: pnpm install
- run: pnpm test.coverage
node-version: 16.14.2

- uses: pnpm/[email protected]
with:
version: 8.10.2

- name: Install dependencies
run: pnpm install

- name: Run test coverage
run: pnpm test.coverage
6 changes: 2 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ module.exports = {
statements: 100,
},
},
globals: {
"ts-jest": {
packageJson: "package.json",
},
transform: {
"^.+\\.tsx?$": ["ts-jest", { packageJson: "package.json" }],
},
};
48 changes: 26 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,48 @@
"test.coverage": "pnpm run test --coverage",
"lint": "vue-cli-service lint --no-fix",
"lint.fix": "vue-cli-service lint",
"docs.dev": "vuepress dev docs",
"docs.build": "vuepress build docs",
"docs.dev": "cd ./vuepress && pnpm docs.dev",
"docs.build": "cd ./vuepress && pnpm docs.build",
"release": "semantic-release"
},
"peerDependencies": {
"vue-i18n": ">=8.17.6"
},
"dependencies": {
"@sagi.io/globalthis": "^0.0.2"
"@sagi.io/globalthis": "^0.0.2",
"core-js": "^3.33.3"
},
"devDependencies": {
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/git": "^9.0.0",
"@types/jest": "^24.0.19",
"@types/jest": "^29.5.10",
"@types/webpack-env": "^1.17.0",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"@vue/cli-plugin-babel": "~4.3.0",
"@vue/cli-plugin-eslint": "~4.3.0",
"@vue/cli-plugin-typescript": "~4.3.0",
"@vue/cli-plugin-unit-jest": "~4.3.0",
"@vue/cli-service": "~4.3.0",
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"@vue/cli-plugin-babel": "~5.0.8",
"@vue/cli-plugin-eslint": "~5.0.8",
"@vue/cli-plugin-typescript": "~5.0.8",
"@vue/cli-plugin-unit-jest": "~5.0.8",
"@vue/cli-service": "~5.0.8",
"@vue/eslint-config-airbnb": "^5.0.2",
"@vue/eslint-config-typescript": "^5.0.2",
"@vue/test-utils": "1.0.0-beta.31",
"eslint": "^7.0.0",
"@vue/vue2-jest": "^29.2.6",
"babel-jest": "^29.7.0",
"eslint": "^8.54.0",
"eslint-config-phrase": "git+https://github.com/phrase/eslint-config-phrase.git",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-vue": "^6.2.2",
"semantic-release": "^19.0.3",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-vue": "^9.18.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"semantic-release": "^19.0.5",
"ts-jest": "^29.1.1",
"ts-loader": "^9.5.1",
"tslib": "^2.4.0",
"ts-loader": "8.4.0",
"typescript": "~3.8.3",
"vue": "^2.6.11",
"vue-i18n": "^8.17.6",
"vuepress": "^1.9.10",
"vuepress-plugin-clean-urls": "^1.1.2",
"vuepress-plugin-seo": "^0.2.0"
"typescript": "~4.3.0",
"vue": "2.6.11",
"vue-i18n": "^8.17.7",
"vue-template-compiler": "2.6.11"
},
"keywords": [
"Vue",
Expand Down
Loading

0 comments on commit 9893e0d

Please sign in to comment.