Skip to content

Commit 0dc4919

Browse files
authored
chore: improve the front-end infrastructure (#14)
1 parent a9735da commit 0dc4919

File tree

10 files changed

+767
-839
lines changed

10 files changed

+767
-839
lines changed

.github/workflows/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
- name: Set up Node.js
2424
uses: actions/setup-node@v3
2525
with:
26-
node-version: 16
26+
node-version: 18
2727
- uses: pnpm/[email protected]
2828
name: Install pnpm
2929
id: pnpm-install
3030
with:
31-
version: 7
31+
version: 8
3232
run_install: false
3333
- name: Get pnpm store directory
3434
id: pnpm-cache

build.gradle

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id "com.github.node-gradle.node" version "3.3.0"
3+
id "com.github.node-gradle.node" version "5.0.0"
44
id "io.freefair.lombok" version "8.0.1"
55
id "run.halo.plugin.devtools" version "0.0.4"
66
}
@@ -31,18 +31,11 @@ node {
3131
nodeProjectDir = file("${project.projectDir}/console")
3232
}
3333

34-
task buildFrontend(type: NpxTask) {
35-
command = 'pnpm'
34+
task buildFrontend(type: PnpmTask) {
3635
args = ['build']
3736
}
3837

39-
task pnpmInstall(type: NpxTask) {
40-
command = "pnpm"
41-
args = ["install"]
42-
}
43-
4438
build {
4539
// build frontend before build
4640
tasks.getByName('compileJava').dependsOn('buildFrontend')
47-
tasks.getByName("buildFrontend").dependsOn("pnpmInstall")
4841
}

compose/README.md

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

compose/application.yaml

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

compose/docker-compose.yaml

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

console/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require("@rushstack/eslint-patch/modern-module-resolution");
44
module.exports = {
55
root: true,
66
extends: [
7-
"plugin:vue/vue3-essential",
7+
"plugin:vue/vue3-recommended",
88
"eslint:recommended",
99
"@vue/eslint-config-typescript/recommended",
1010
"@vue/eslint-config-prettier",

console/package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,41 @@
33
"version": "1.0.0",
44
"private": true,
55
"scripts": {
6-
"dev": "vite build --watch",
6+
"dev": "vite build --watch --mode=development",
77
"build": "vite build",
88
"preview": "vite preview --port 4173",
99
"test:unit": "vitest --environment jsdom",
1010
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
1111
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
1212
},
1313
"dependencies": {
14-
"@halo-dev/components": "^1.0.0",
15-
"@halo-dev/console-shared": "^2.0.0",
14+
"@halo-dev/components": "^1.5.0",
15+
"@halo-dev/console-shared": "^2.6.0",
1616
"canvas-confetti": "^1.6.0",
17-
"vue": "^3.2.41"
17+
"vue": "^3.3.4"
1818
},
1919
"devDependencies": {
20-
"@iconify/json": "^2.2.18",
21-
"@rushstack/eslint-patch": "^1.2.0",
20+
"@iconify/json": "^2.2.76",
21+
"@rushstack/eslint-patch": "^1.3.1",
2222
"@types/canvas-confetti": "^1.6.0",
23-
"@types/jsdom": "^20.0.0",
24-
"@types/node": "^16.18.0",
25-
"@vitejs/plugin-vue": "^3.1.2",
26-
"@vitejs/plugin-vue-jsx": "^2.0.1",
27-
"@vue/eslint-config-prettier": "^7.0.0",
28-
"@vue/eslint-config-typescript": "^11.0.2",
29-
"@vue/test-utils": "^2.2.0",
23+
"@types/jsdom": "^20.0.1",
24+
"@types/node": "^16.18.35",
25+
"@vitejs/plugin-vue": "^3.2.0",
26+
"@vitejs/plugin-vue-jsx": "^2.1.1",
27+
"@vue/eslint-config-prettier": "^7.1.0",
28+
"@vue/eslint-config-typescript": "^11.0.3",
29+
"@vue/test-utils": "^2.3.2",
3030
"@vue/tsconfig": "^0.1.3",
31-
"eslint": "^8.26.0",
32-
"eslint-plugin-vue": "^9.6.0",
31+
"eslint": "^8.42.0",
32+
"eslint-plugin-vue": "^9.14.1",
3333
"jsdom": "^19.0.0",
3434
"npm-run-all": "^4.1.5",
35-
"prettier": "^2.7.1",
36-
"sass": "^1.58.0",
35+
"prettier": "^2.8.8",
36+
"sass": "^1.63.3",
3737
"typescript": "~4.7.4",
38-
"unplugin-icons": "^0.15.2",
39-
"vite": "^3.1.8",
40-
"vitest": "^0.24.3",
41-
"vue-tsc": "^1.0.9"
38+
"unplugin-icons": "^0.15.3",
39+
"vite": "^3.2.7",
40+
"vitest": "^0.24.5",
41+
"vue-tsc": "^1.6.5"
4242
}
4343
}

0 commit comments

Comments
 (0)