Skip to content

Commit

Permalink
init project
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby committed Aug 22, 2023
1 parent 533a6b4 commit d0b6a1d
Show file tree
Hide file tree
Showing 13 changed files with 563 additions and 1,069 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ jobs:
version=${version#v}
sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties
./gradlew clean build -x test
- name: Archive plugin-starter jar
- name: Archive plugin-app-store jar
uses: actions/upload-artifact@v2
with:
name: plugin-starter
name: plugin-app-store
path: |
build/libs/*.jar
retention-days: 1
Expand All @@ -64,10 +64,10 @@ jobs:
needs: build
if: github.event_name == 'release'
steps:
- name: Download plugin-starter jar
- name: Download plugin-app-store jar
uses: actions/download-artifact@v2
with:
name: plugin-starter
name: plugin-app-store
path: build/libs
- name: Get Name of Artifact
id: get_artifact
Expand Down
46 changes: 1 addition & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1 @@
# plugin-starter

Halo 2.0 插件开发快速开始模板。

## 开发环境

插件开发的详细文档请查阅:<https://docs.halo.run/developer-guide/plugin/hello-world>

```bash
git clone [email protected]:halo-sigs/plugin-starter.git

# 或者当你 fork 之后

git clone [email protected]:{your_github_id}/plugin-starter.git
```

```bash
cd path/to/plugin-starter
```

```bash
# macOS / Linux
./gradlew pnpmInstall

# Windows
./gradlew.bat pnpmInstall
```

```bash
# macOS / Linux
./gradlew build

# Windows
./gradlew.bat build
```

修改 Halo 配置文件:

```yaml
halo:
plugin:
runtime-mode: development
fixedPluginPath:
- "/path/to/plugin-starter"
```
# plugin-app-store
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java'
id "com.github.node-gradle.node" version "5.0.0"
id "io.freefair.lombok" version "8.0.1"
id "run.halo.plugin.devtools" version "0.0.4"
id "run.halo.plugin.devtools" version "0.0.5"
}

group 'run.halo.starter'
Expand All @@ -16,7 +16,7 @@ repositories {
}

dependencies {
implementation platform('run.halo.tools.platform:plugin:2.6.0-SNAPSHOT')
implementation platform('run.halo.tools.platform:plugin:2.9.0-SNAPSHOT')
compileOnly 'run.halo.app:api'

testImplementation 'run.halo.app:api'
Expand Down
33 changes: 15 additions & 18 deletions console/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"name": "@halo-dev/plugin-starter",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "vite build --watch --mode=development",
"build": "vite build",
Expand All @@ -11,33 +8,33 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
"@halo-dev/components": "^1.5.0",
"@halo-dev/console-shared": "^2.6.0",
"@halo-dev/components": "^1.7.0",
"@halo-dev/console-shared": "^2.8.0",
"canvas-confetti": "^1.6.0",
"vue": "^3.3.4"
},
"devDependencies": {
"@iconify/json": "^2.2.76",
"@rushstack/eslint-patch": "^1.3.1",
"@iconify/json": "^2.2.105",
"@rushstack/eslint-patch": "^1.3.3",
"@tsconfig/node18": "^18.2.1",
"@types/canvas-confetti": "^1.6.0",
"@types/jsdom": "^20.0.1",
"@types/node": "^16.18.35",
"@vitejs/plugin-vue": "^3.2.0",
"@vitejs/plugin-vue-jsx": "^2.1.1",
"@types/node": "^16.18.42",
"@vitejs/plugin-vue": "^4.3.3",
"@vue/eslint-config-prettier": "^7.1.0",
"@vue/eslint-config-typescript": "^11.0.3",
"@vue/test-utils": "^2.3.2",
"@vue/tsconfig": "^0.1.3",
"eslint": "^8.42.0",
"eslint-plugin-vue": "^9.14.1",
"@vue/test-utils": "^2.4.1",
"@vue/tsconfig": "^0.4.0",
"eslint": "^8.47.0",
"eslint-plugin-vue": "^9.17.0",
"jsdom": "^19.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"sass": "^1.63.3",
"typescript": "~4.7.4",
"sass": "^1.66.1",
"typescript": "~5.1.6",
"unplugin-icons": "^0.15.3",
"vite": "^3.2.7",
"vite": "^4.4.9",
"vitest": "^0.24.5",
"vue-tsc": "^1.6.5"
"vue-tsc": "^1.8.8"
}
}
Loading

0 comments on commit d0b6a1d

Please sign in to comment.