chore: bump dependencies

This commit is contained in:
Ryan Wang
2022-10-26 18:05:39 +08:00
parent 5547829831
commit c6d1006c0f
10 changed files with 795 additions and 475 deletions

View File

@@ -3,6 +3,9 @@ name: Build Plugin JAR File
on:
push:
branches: [ main ]
release:
types:
- created
jobs:
build:
@@ -43,6 +46,10 @@ jobs:
./gradlew pnpmInstall
- name: Build with Gradle
run: |
# Set the version with tag name when releasing
version=${{ github.event.release.tag_name }}
version=${version#v}
sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties
./gradlew clean build -x test
- name: Archive plugin-starter jar
uses: actions/upload-artifact@v2
@@ -51,3 +58,48 @@ jobs:
path: |
build/libs/*-plain.jar
retention-days: 1
github-release:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'release'
steps:
- name: Download plugin-starter jar
uses: actions/download-artifact@v2
with:
name: plugin-starter
path: build/libs
- name: Get Name of Artifact
id: get_artifact
run: |
ARTIFACT_PATHNAME=$(ls build/libs/*.jar | head -n 1)
ARTIFACT_NAME=$(basename ${ARTIFACT_PATHNAME})
echo "Artifact pathname: ${ARTIFACT_PATHNAME}"
echo "Artifact name: ${ARTIFACT_NAME}"
echo "ARTIFACT_PATHNAME=${ARTIFACT_PATHNAME}" >> $GITHUB_ENV
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
echo "RELEASE_ID=${{ github.event.release.id }}" >> $GITHUB_ENV
- name: Upload a Release Asset
uses: actions/github-script@v2
if: github.event_name == 'release'
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log('environment', process.versions);
const fs = require('fs').promises;
const { repo: { owner, repo }, sha } = context;
console.log({ owner, repo, sha });
const releaseId = process.env.RELEASE_ID
const artifactPathName = process.env.ARTIFACT_PATHNAME
const artifactName = process.env.ARTIFACT_NAME
console.log('Releasing', releaseId, artifactPathName, artifactName)
await github.repos.uploadReleaseAsset({
owner, repo,
release_id: releaseId,
name: artifactName,
data: await fs.readFile(artifactPathName)
});

View File

@@ -7,7 +7,6 @@ plugins {
}
group 'run.halo.starter'
version '0.0.1-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_17
repositories {

View File

@@ -11,28 +11,28 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
"@halo-dev/console-shared": "^0.0.0-alpha.5",
"@halo-dev/components": "^0.0.0-alpha.4",
"vue": "^3.2.37"
"@halo-dev/components": "^0.0.0-alpha.5",
"@halo-dev/console-shared": "^2.0.0-alpha.3",
"vue": "^3.2.41"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.4",
"@types/jsdom": "^16.2.14",
"@types/node": "^16.11.44",
"@vitejs/plugin-vue": "^2.3.3",
"@vitejs/plugin-vue-jsx": "^1.3.10",
"@rushstack/eslint-patch": "^1.2.0",
"@types/jsdom": "^20.0.0",
"@types/node": "^16.18.0",
"@vitejs/plugin-vue": "^3.1.2",
"@vitejs/plugin-vue-jsx": "^2.0.1",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-typescript": "^10.0.0",
"@vue/test-utils": "^2.0.2",
"@vue/eslint-config-typescript": "^11.0.2",
"@vue/test-utils": "^2.2.0",
"@vue/tsconfig": "^0.1.3",
"eslint": "^8.19.0",
"eslint-plugin-vue": "^8.7.1",
"eslint": "^8.26.0",
"eslint-plugin-vue": "^9.6.0",
"jsdom": "^19.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"typescript": "~4.7.4",
"vite": "^2.9.14",
"vitest": "^0.13.1",
"vue-tsc": "^0.35.2"
"vite": "^3.1.8",
"vitest": "^0.24.3",
"vue-tsc": "^1.0.9"
}
}

1126
console/pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,40 +1,42 @@
import { definePlugin, BasicLayout } from "@halo-dev/console-shared";
import {definePlugin} from "@halo-dev/console-shared";
import DefaultView from "./views/DefaultView.vue";
import { IconGrid } from "@halo-dev/components";
import {IconGrid} from "@halo-dev/components";
import "./styles/index.css";
import {markRaw} from "vue";
export default definePlugin({
name: "PluginStarter",
components: [],
routes: [
{
path: "/hello-world",
component: BasicLayout,
children: [
parentName: "Root",
route:
{
path: "",
name: "HelloWorld",
component: DefaultView,
meta: {
permissions: ["plugin:apples:view"],
},
},
],
},
],
menus: [
{
name: "From PluginStarter",
items: [
{
name: "HelloWorld",
path: "/hello-world",
icon: IconGrid,
children: [
{
path: "",
name: "HelloWorld",
component: DefaultView,
meta: {
permissions: ["plugin:apples:view"],
title: "HelloWorld",
searchable: true,
menu: {
name: "迁移",
group: "From PluginStarter",
icon: markRaw(IconGrid),
priority: 0,
},
},
},
],
},
],
},
}
],
extensionPoints: {},
activated() {},
deactivated() {},
activated() {
},
deactivated() {
},
});

1
gradle.properties Normal file
View File

@@ -0,0 +1 @@
version=1.0.0-SNAPSHOT

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
.title[data-v-5b80c6f8]{color:red}.title{font-size:20px}
.title[data-v-e98165fe]{color:red}.title{font-size:20px}

View File

@@ -6,7 +6,7 @@ metadata:
spec:
enabled: true
# 'version' is a valid semantic version string (see semver.org).
version: 0.0.1-SNAPSHOT
version: 1.0.0-SNAPSHOT
requires: "*"
author: halo-dev
logo: https://halo.run/logo