From 1ff5e3592cfc28f37ed83776156ff9facd42c834 Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Tue, 27 Feb 2024 18:20:41 +0800 Subject: [PATCH] feat(gui):update the widget output location --- spx-gui/.gitignore | 1 + spx-gui/src/widgets/spx-runner/index.ts | 8 ++++---- spx-gui/src/widgets/widget.config.ts | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/spx-gui/.gitignore b/spx-gui/.gitignore index b548093a1..9e55d55e5 100644 --- a/spx-gui/.gitignore +++ b/spx-gui/.gitignore @@ -10,6 +10,7 @@ lerna-debug.log* node_modules .DS_Store dist +spx-widgets dist-ssr *.local .eslintcache diff --git a/spx-gui/src/widgets/spx-runner/index.ts b/spx-gui/src/widgets/spx-runner/index.ts index 742de3f3c..63a01b3de 100644 --- a/spx-gui/src/widgets/spx-runner/index.ts +++ b/spx-gui/src/widgets/spx-runner/index.ts @@ -2,12 +2,12 @@ * @Author: Zhang Zhi Yang * @Date: 2024-02-27 17:03:36 * @LastEditors: Zhang Zhi Yang - * @LastEditTime: 2024-02-27 17:08:54 + * @LastEditTime: 2024-02-27 18:11:53 * @FilePath: \builder\spx-gui\src\widgets\spx-runner\index.ts * @Description: */ import { defineCustomElement } from "vue"; -import runnerWidgetVue from "./runnerWidget.vue"; -export const RunnerWidget = defineCustomElement(runnerWidgetVue) +import spxRunner from "./spx-runner.vue"; +export const spxRunnerWidget = defineCustomElement(spxRunner) -customElements.define("runner-widget", RunnerWidget) \ No newline at end of file +customElements.define("spx-runner", spxRunnerWidget) \ No newline at end of file diff --git a/spx-gui/src/widgets/widget.config.ts b/spx-gui/src/widgets/widget.config.ts index e7fd1c8aa..51418cf88 100644 --- a/spx-gui/src/widgets/widget.config.ts +++ b/spx-gui/src/widgets/widget.config.ts @@ -2,7 +2,7 @@ * @Author: Zhang Zhi Yang * @Date: 2024-02-27 17:11:17 * @LastEditors: Zhang Zhi Yang - * @LastEditTime: 2024-02-27 17:17:10 + * @LastEditTime: 2024-02-27 18:03:23 * @FilePath: \builder\spx-gui\src\widgets\widget.config.ts * @Description: */ @@ -25,6 +25,7 @@ export default defineConfig(({ command, mode, isSsrBuild, isPreview }) => { define: { 'process.env.NODE_ENV': '"production"' }, build: { target: 'esnext', + outDir:'spx-widgets', minify: 'terser', lib: { entry: 'src/widgets/spx-runner/index.ts',