Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
contents: write
with:
node-version: "24"
java-version: "21"
pnpm-version: ""
app-id: app-YXyaD
ui-path: "."
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ jobs:
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-ci.yaml@v4
with:
node-version: "24"
java-version: "21"
pnpm-version: ""
ui-path: "."
8 changes: 4 additions & 4 deletions .github/workflows/release-npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: "24"
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v4
- run: pnpm install
- uses: pnpm/action-setup@v5
- run: pnpm install --frozen-lockfile
- name: Upgrade npm
run: npm i -g npm@latest
- name: Publish to NPM
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
id 'java'
id "io.freefair.lombok" version "8.14"
id "io.freefair.lombok" version "9.2.0"
id "com.github.node-gradle.node" version "7.1.0"
id "run.halo.plugin.devtools" version "0.8.0"
}

group 'run.halo.comment.widget'
group = 'run.halo.comment.widget'

java {
toolchain {
Expand Down Expand Up @@ -38,6 +38,7 @@ test {
}

node {
pnpmVersion = '12.4.2'
nodeProjectDir = file("${project.projectDir}")
}

Expand Down
2 changes: 2 additions & 0 deletions dev/development.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 开发环境

环境要求:Java 21、Node.js 24、pnpm 12.4.2(与根目录 `packageManager` 一致)。Gradle 使用项目自带的 Wrapper,无需单独安装。

```bash
git clone git@github.com:halo-dev/plugin-comment-widget.git

Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
5 changes: 1 addition & 4 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 10 additions & 22 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/node": "^24.13.3",
"husky": "^9.1.7",
"lint-staged": "^16.4.0",
"typescript": "~5.3.3",
"typescript": "~6.0.0",
"vite": "^8.2.2",
"vite-plugin-dts": "^5.0.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/comment-widget/tests/altcha-captcha.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ function createCaptcha(
return { msg: (value) => value };
}
if (name === 'altcha/altcha.css?inline') {
return { default: ':root {}' };
return { __esModule: true, default: ':root {}' };
}
if (name === './styles/base') {
return { default: [] };
return { __esModule: true, default: [] };
}
return {};
},
Expand Down
2 changes: 1 addition & 1 deletion packages/example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["env.d.ts", "src"]
}
10 changes: 5 additions & 5 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"@halo-dev/components": "^2.26.0",
"@halo-dev/ui-shared": "^2.26.0",
"pinia": "^3.0.4",
"vue": "^3.5.24"
"vue": "^3.5.40"
},
"devDependencies": {
"@halo-dev/ui-plugin-bundler-kit": "^2.26.0",
"@types/node": "^20.19.24",
"@types/node": "^24.13.3",
"@vitejs/plugin-vue": "^6.0.8",
"@vue/tsconfig": "^0.7.0",
"typescript": "~5.8.3",
"@vue/tsconfig": "^0.9.1",
"typescript": "~6.0.0",
"vite": "^8.2.2",
"vue-tsc": "^2.2.12"
"vue-tsc": "^3.3.7"
}
}
Loading
Loading