Skip to content

Commit 2562e6a

Browse files
authored
Migrate to Rsbuild, update dependencies and configs (#204)
* Migrate to Rsbuild, update dependencies and configs * Normalize quotes in pnpm-lock.yaml Updated the pnpm-lock.yaml file to use single quotes for all package names and string values, improving consistency in the lockfile formatting. No dependency versions were changed. * Migrate ESLint config to flat config and update deps * Update pnpm-lock.yaml Signed-off-by: Ryan Wang <i@ryanc.cc> --------- Signed-off-by: Ryan Wang <i@ryanc.cc>
1 parent 69efb82 commit 2562e6a

18 files changed

Lines changed: 2905 additions & 3274 deletions

‎build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ configurations.runtimeClasspath {
4646

4747

4848
halo {
49-
version = '2.21.0-alpha.2'
49+
version = '2.22'
5050
}
5151

5252
haloPlugin {

‎console/.eslintrc.cjs‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎console/.prettierignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/api

‎console/env.d.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/// <reference types="vite/client" />
1+
/// <reference types="@rsbuild/core/types" />
2+
/// <reference types="vue-i18n/dist/vue-i18n.d.ts" />
23

34
declare module "*.vue" {
45
import Vue from "vue";

‎console/eslint.config.ts‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import unocss from "@unocss/eslint-config/flat";
2+
import skipFormatting from "@vue/eslint-config-prettier/skip-formatting";
3+
import { defineConfigWithVueTs, vueTsConfigs } from "@vue/eslint-config-typescript";
4+
import pluginVue from "eslint-plugin-vue";
5+
import { globalIgnores } from "eslint/config";
6+
7+
export default defineConfigWithVueTs(
8+
unocss,
9+
10+
{
11+
name: "app/files-to-lint",
12+
files: ["**/*.{ts,mts,tsx,vue}"],
13+
rules: {
14+
"unocss/enforce-class-compile": "error",
15+
},
16+
},
17+
18+
globalIgnores(["**/dist/**", "**/dist-ssr/**", "**/coverage/**", "./src/api/**"]),
19+
20+
pluginVue.configs["flat/recommended"],
21+
vueTsConfigs.recommended,
22+
23+
skipFormatting,
24+
);

‎console/package.json‎

Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,53 @@
11
{
2-
"name": "@halo-dev/plugin-s3",
3-
"version": "1.0.0",
4-
"private": true,
52
"scripts": {
6-
"dev": "vite build --watch",
7-
"build": "vite build",
8-
"preview": "vite preview --port 4173",
9-
"test:unit": "vitest --environment jsdom",
10-
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
11-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
3+
"build": "rsbuild build",
4+
"dev": "rsbuild build --watch --env-mode=development",
5+
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false",
6+
"lint": "eslint . --fix",
7+
"prettier": "prettier --write ."
8+
},
9+
"prettier": {
10+
"endOfLine": "lf",
11+
"plugins": [
12+
"prettier-plugin-organize-imports"
13+
],
14+
"printWidth": 120,
15+
"tabWidth": 2,
16+
"useTabs": false
1217
},
1318
"dependencies": {
14-
"@halo-dev/api-client": "^2.17.0",
15-
"@halo-dev/components": "https://pkg.pr.new/@halo-dev/components@7383",
16-
"@halo-dev/console-shared": "^2.17.0",
19+
"@halo-dev/api-client": "^2.22.0",
20+
"@halo-dev/components": "^2.22.0",
21+
"@halo-dev/ui-shared": "^2.22.0",
1722
"@tanstack/vue-query": "4.29.1",
18-
"axios": "^1.7.2",
19-
"canvas-confetti": "^1.6.0",
23+
"axios": "^1.13.2",
2024
"path-browserify": "^1.0.1",
21-
"vue": "^3.4.27"
25+
"vue": "^3.5.26",
26+
"vue-i18n": "^11.2.7"
2227
},
2328
"devDependencies": {
24-
"@halo-dev/ui-plugin-bundler-kit": "^2.17.0",
25-
"@iconify/json": "^2.2.18",
26-
"@rushstack/eslint-patch": "^1.2.0",
27-
"@tsconfig/node18": "^18.2.4",
28-
"@types/canvas-confetti": "^1.6.0",
29-
"@types/jsdom": "^20.0.0",
30-
"@types/node": "^18.11.19",
31-
"@vitejs/plugin-vue": "^5.0.4",
32-
"@vitejs/plugin-vue-jsx": "^3.1.0",
33-
"@vue/eslint-config-prettier": "^7.1.0",
34-
"@vue/eslint-config-typescript": "^11.0.3",
35-
"@vue/test-utils": "^2.4.6",
29+
"@halo-dev/ui-plugin-bundler-kit": "^2.22.0",
30+
"@iconify/json": "^2.2.421",
31+
"@rsbuild/core": "^1.6.15",
32+
"@rsbuild/plugin-sass": "^1.4.0",
33+
"@rushstack/eslint-patch": "^1.15.0",
34+
"@tsconfig/node18": "^18.2.6",
35+
"@types/node": "^18.19.130",
36+
"@unocss/eslint-config": "^66.5.11",
37+
"@unocss/webpack": "^66.5.11",
38+
"@vue/eslint-config-prettier": "^10.2.0",
39+
"@vue/eslint-config-typescript": "^14.6.0",
3640
"@vue/tsconfig": "^0.5.1",
37-
"eslint": "^8.43.0",
38-
"eslint-plugin-vue": "^9.17.0",
39-
"jsdom": "^20.0.3",
40-
"npm-run-all": "^4.1.5",
41-
"prettier": "^2.8.8",
42-
"sass": "^1.58.0",
43-
"typescript": "~5.3.0",
44-
"unplugin-icons": "^0.15.2",
45-
"vite": "^5.0.0",
46-
"vitest": "^0.34.1",
47-
"vue-router": "^4.4.0",
48-
"vue-tsc": "^1.8.27"
41+
"eslint": "^9.39.2",
42+
"eslint-plugin-vue": "~10.0.1",
43+
"prettier": "^3.7.4",
44+
"prettier-plugin-organize-imports": "^4.3.0",
45+
"sass-embedded": "^1.97.1",
46+
"typescript": "~5.9.3",
47+
"unocss": "^66.5.11",
48+
"unplugin-icons": "^22.5.0",
49+
"vue-router": "^4.6.4",
50+
"vue-tsc": "^3.2.1"
4951
},
50-
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
52+
"packageManager": "pnpm@9.15.9"
5153
}

0 commit comments

Comments
 (0)