Skip to content

Commit

Permalink
chore: update project infrastructure (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Jul 22, 2024
1 parent be812d2 commit f4ef49a
Show file tree
Hide file tree
Showing 13 changed files with 957 additions and 1,309 deletions.
25 changes: 15 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id "com.github.node-gradle.node" version "5.0.0"
id "com.github.node-gradle.node" version "7.0.2"
id "run.halo.plugin.devtools" version "0.0.9"
id "io.freefair.lombok" version "8.0.1"
id 'java'
Expand All @@ -26,23 +26,28 @@ test {
useJUnitPlatform()
}

tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}

node {
pnpmVersion = '8'
nodeProjectDir = file("${project.projectDir}/console")
}

tasks.register("installDeps", PnpmTask) {
onlyIf { !file("${project.projectDir}/console/node_modules").exists() }
args = ['install']
tasks.register('buildFrontend', PnpmTask) {
args = ['build']
dependsOn('installDepsForUI')
}

tasks.register("buildFrontend", PnpmTask) {
args = ['build']
dependsOn("installDeps")
tasks.register('installDepsForUI', PnpmTask) {
args = ['install']
}

tasks.named("compileJava").configure {
dependsOn("buildFrontend")
build {
// build frontend before build
tasks.named('compileJava').configure {
dependsOn('buildFrontend')
}
}

halo {
Expand Down
56 changes: 27 additions & 29 deletions console/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"name": "@halo-dev/plugin-links",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite build --watch --mode=development",
"build": "vite build",
Expand All @@ -12,47 +10,47 @@
"prettier": "prettier --write './src/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}'"
},
"dependencies": {
"@halo-dev/components": "^2.15.0",
"@halo-dev/console-shared": "^2.15.0",
"@halo-dev/api-client": "^2.15.0",
"@tanstack/vue-query": "^4.32.0",
"@vueuse/core": "^10.2.1",
"@vueuse/router": "^10.2.1",
"axios": "^0.27.2",
"dayjs": "^1.11.9",
"@halo-dev/api-client": "^2.17.0",
"@halo-dev/components": "^2.17.0",
"@halo-dev/console-shared": "^2.17.0",
"@tanstack/vue-query": "^4.37.1",
"@vueuse/core": "^10.11.0",
"@vueuse/router": "^10.11.0",
"axios": "^1.7.2",
"dayjs": "^1.11.12",
"lodash.clonedeep": "^4.5.0",
"vue": "^3.3.4",
"vue-router": "^4.2.4",
"vue": "^3.4.33",
"vue-router": "^4.4.0",
"vuedraggable": "^4.1.0",
"yaml": "^2.3.1"
"yaml": "^2.4.5"
},
"devDependencies": {
"@iconify/json": "^2.2.95",
"@rushstack/eslint-patch": "^1.3.2",
"@halo-dev/ui-plugin-bundler-kit": "^2.17.0",
"@iconify/json": "^2.2.230",
"@rushstack/eslint-patch": "^1.10.3",
"@types/jsdom": "^16.2.15",
"@types/lodash.clonedeep": "^4.5.7",
"@types/node": "^16.18.39",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue-jsx": "^2.1.1",
"@types/lodash.clonedeep": "^4.5.9",
"@types/node": "^16.18.103",
"@vitejs/plugin-vue": "^5.0.5",
"@vue/eslint-config-prettier": "^7.1.0",
"@vue/eslint-config-typescript": "^10.0.0",
"@vue/test-utils": "^2.4.1",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.1.3",
"autoprefixer": "^10.4.14",
"eslint": "^8.46.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-plugin-vue": "^8.7.1",
"jsdom": "^19.0.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.27",
"postcss": "^8.4.39",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.1.13",
"sass": "^1.64.1",
"tailwindcss": "^3.3.3",
"typescript": "~4.7.4",
"sass": "^1.77.8",
"tailwindcss": "^3.4.6",
"typescript": "~5.5.3",
"unplugin-icons": "^0.15.3",
"vite": "^4.4.7",
"vite": "^5.3.4",
"vite-plugin-vue-setup-extend": "^0.4.0",
"vitest": "^0.13.1",
"vue-tsc": "^0.40.13"
"vue-tsc": "^2.0.26"
}
}
Loading

0 comments on commit f4ef49a

Please sign in to comment.