Skip to content

Commit

Permalink
chore: update infrastructure for UI (#39)
Browse files Browse the repository at this point in the history
更新 UI 部分的基础设施。

1. 更新所有的依赖为最新版本。
2. 添加 `@halo-dev/api-client` 和 `axios` 依赖。
3. pnpm 要求提升至 9。
4. 更新 Node 的 Gradle 插件。

```release-note
None
```
  • Loading branch information
ruibaby authored Jul 2, 2024
1 parent dad7849 commit b302131
Show file tree
Hide file tree
Showing 13 changed files with 2,793 additions and 3,378 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Halo 2.0 插件开发快速开始模板。
所需环境:

1. Java 17
2. Node 18
3. pnpm 8
2. Node 20
3. pnpm 9
4. Docker (可选)

克隆项目:
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'java'
id "com.github.node-gradle.node" version "5.0.0"
id "com.github.node-gradle.node" version "7.0.2"
id "io.freefair.lombok" version "8.0.1"
id "run.halo.plugin.devtools" version "0.0.9"
}
Expand Down Expand Up @@ -52,5 +52,5 @@ build {
}

halo {
version = '2.11'
version = '2.17'
}
3 changes: 3 additions & 0 deletions ui/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = {
"@vue/eslint-config-typescript/recommended",
"@vue/eslint-config-prettier",
],
parserOptions: {
ecmaVersion: "latest",
},
env: {
"vue/setup-compiler-macros": true,
},
Expand Down
6 changes: 1 addition & 5 deletions ui/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
/// <reference types="vite/client" />

declare module "*.vue" {
import Vue from "vue";
export default Vue;
}
/// <reference types="unplugin-icons/types/vue" />
65 changes: 34 additions & 31 deletions ui/package.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
{
"scripts": {
"dev": "vite build --watch --mode=development",
"build": "vite build",
"preview": "vite preview --port 4173",
"test:unit": "vitest --environment jsdom",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
"build": "run-p type-check \"build-only {@}\" --",
"build-only": "vite build",
"test:unit": "vitest",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"prettier": "prettier --write src/"
},
"dependencies": {
"@halo-dev/components": "^2.12.0",
"@halo-dev/console-shared": "^2.12.0",
"canvas-confetti": "^1.9.2",
"vue": "^3.3.12"
"@halo-dev/api-client": "^2.17.0",
"@halo-dev/components": "^2.17.0",
"@halo-dev/console-shared": "^2.17.0",
"axios": "^1.7.2",
"canvas-confetti": "^1.9.3",
"vue": "^3.4.31"
},
"devDependencies": {
"@halo-dev/ui-plugin-bundler-kit": "^2.12.0",
"@iconify/json": "^2.2.159",
"@rushstack/eslint-patch": "^1.6.1",
"@halo-dev/ui-plugin-bundler-kit": "^2.17.0",
"@iconify/json": "^2.2.224",
"@rushstack/eslint-patch": "^1.10.3",
"@tsconfig/node20": "^20.1.4",
"@types/canvas-confetti": "^1.6.4",
"@types/jsdom": "^20.0.1",
"@types/node": "^16.18.68",
"@vitejs/plugin-vue": "^3.2.0",
"@vitejs/plugin-vue-jsx": "^2.1.1",
"@vue/eslint-config-prettier": "^7.1.0",
"@vue/eslint-config-typescript": "^11.0.3",
"@vue/test-utils": "^2.4.3",
"@vue/tsconfig": "^0.1.3",
"eslint": "^8.56.0",
"eslint-plugin-vue": "^9.19.2",
"jsdom": "^19.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"sass": "^1.69.5",
"typescript": "~4.7.4",
"unplugin-icons": "^0.15.3",
"vite": "^4.5.1",
"vitest": "^0.24.5",
"vue-tsc": "^1.8.25"
"@types/jsdom": "^21.1.7",
"@types/node": "^20.14.9",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^9.26.0",
"jsdom": "^24.1.0",
"npm-run-all2": "^6.2.0",
"prettier": "^3.3.2",
"sass": "^1.77.6",
"typescript": "~5.5.3",
"unplugin-icons": "^0.19.0",
"vite": "^5.3.2",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.24"
}
}
Loading

0 comments on commit b302131

Please sign in to comment.