Skip to content

Commit

Permalink
⚒️ chore: upgrade deps for vite vue
Browse files Browse the repository at this point in the history
  • Loading branch information
pdsuwwz committed Jul 24, 2024
1 parent 3b95284 commit 558a310
Show file tree
Hide file tree
Showing 7 changed files with 4,700 additions and 3,927 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.15.x
node-version: 18.12.x

- name: Install pnpm
run: npm i -g pnpm
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,37 @@
- ⚡️ JS + Vuex4 版 (当前仓库)[Vite5 + Vue3 + Vuex4 + Element-Plus2 + useLocale + i18n](https://github.com/pdsuwwz/vite-starter)


## Environment Support
## 前置条件

* Vue 3.x
* Node >= 16.15.x
* VS Code 插件 `dbaeumer.vscode-eslint` >= v3.0.5 (pre-release)
* Node >= 18.12.x
* Pnpm 9.x
* **VS Code 插件 `dbaeumer.vscode-eslint` >= v3.0.5 (pre-release)**

## Install

Install node dependencies in all packages
## 安装和运行

* 安装依赖

```bash
pnpm install
pnpm i
```

## Run

Local Development
* 本地开发

```bash
pnpm dev
```

## Test
## 单元测试

Unit Testing
* 执行单测

```bash
pnpm test
```

Test code coverage
* 执行覆盖率测试

```bash
pnpm test:coverage
Expand Down
10 changes: 8 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export default defineFlatConfig([
'no-class-assign': 'error',
'no-compare-neg-zero': 'error',
'no-cond-assign': ['error', 'always'],
'no-console': ['error', { allow: ['log', 'warn', 'error'] }],
'no-console': ['error', {
allow: ['log', 'dir', 'warn', 'error']
}],
'no-const-assign': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
Expand Down Expand Up @@ -133,7 +135,11 @@ export default defineFlatConfig([
allowTernary: true
}],
'no-unused-vars': ['warn'],
'no-use-before-define': ['error', { classes: false, functions: false, variables: true }],
'no-use-before-define': ['error', {
classes: false,
functions: false,
variables: false
}],
'no-useless-backreference': 'error',
'no-useless-call': 'error',
'no-useless-catch': 'error',
Expand Down
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"test:coverage": "jest --coverage"
},
"engines": {
"node": ">=16.15.x"
"node": ">=18.12.0",
"pnpm": ">= 9.x"
},
"packageManager": "[email protected]",
"keywords": [
"vue",
"vue3",
Expand All @@ -44,48 +44,48 @@
},
"dependencies": {
"@element-plus/icons-vue": "2.3.1",
"@fortawesome/fontawesome-svg-core": "6.5.2",
"@fortawesome/free-brands-svg-icons": "6.5.2",
"@fortawesome/free-regular-svg-icons": "6.5.2",
"@fortawesome/free-solid-svg-icons": "6.5.2",
"@fortawesome/vue-fontawesome": "~3.0.6",
"axios": "1.6.8",
"echarts": "^5.5.0",
"element-plus": "2.6.3",
"@fortawesome/fontawesome-svg-core": "6.6.0",
"@fortawesome/free-brands-svg-icons": "6.6.0",
"@fortawesome/free-regular-svg-icons": "6.6.0",
"@fortawesome/free-solid-svg-icons": "6.6.0",
"@fortawesome/vue-fontawesome": "~3.0.8",
"axios": "1.7.2",
"echarts": "^5.5.1",
"element-plus": "2.7.7",
"js-cookie": "^3.0.5",
"lodash": "^4.17.21",
"nprogress": "^0.2.0",
"vue": "^3.4.21",
"vue-router": "^4.3.0",
"vue": "^3.4.33",
"vue-router": "^4.4.0",
"vuex": "^4.1.0"
},
"devDependencies": {
"@babel/core": "^7.24.4",
"@babel/eslint-parser": "^7.24.1",
"@babel/preset-env": "^7.24.4",
"@eslint/js": "^9.0.0",
"@babel/core": "^7.24.9",
"@babel/eslint-parser": "^7.24.8",
"@babel/preset-env": "^7.24.8",
"@eslint/js": "^9.7.0",
"@sucrase/jest-plugin": "^3.0.0",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/compiler-sfc": "^3.4.21",
"@vue/test-utils": "^2.4.5",
"@vitejs/plugin-vue": "^5.1.0",
"@vue/compiler-sfc": "^3.4.33",
"@vue/test-utils": "^2.4.6",
"@vue/vue3-jest": "29.2.6",
"babel-jest": "^29.7.0",
"babel-plugin-transform-vite-meta-env": "^1.0.3",
"cross-env": "^7.0.3",
"eslint": "^9.0.0",
"eslint": "^9.7.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-vue": "9.24.0",
"globals": "^15.0.0",
"eslint-plugin-promise": "7.0.0",
"eslint-plugin-vue": "9.27.0",
"globals": "^15.8.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-transform-stub": "^2.0.0",
"rollup": "^4.14.0",
"sass": "^1.74.1",
"rollup": "^4.19.0",
"sass": "1.77.6",
"sucrase": "^3.35.0",
"vite": "^5.2.8"
"vite": "^5.3.4"
}
}
Loading

0 comments on commit 558a310

Please sign in to comment.