Skip to content

Commit

Permalink
feat(gui):update the widget output location
Browse files Browse the repository at this point in the history
  • Loading branch information
luoliwoshang committed Feb 27, 2024
1 parent bd463c8 commit 1ff5e35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions spx-gui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
.DS_Store
dist
spx-widgets
dist-ssr
*.local
.eslintcache
Expand Down
8 changes: 4 additions & 4 deletions spx-gui/src/widgets/spx-runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
customElements.define("spx-runner", spxRunnerWidget)
3 changes: 2 additions & 1 deletion spx-gui/src/widgets/widget.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
*/
Expand All @@ -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',
Expand Down

0 comments on commit 1ff5e35

Please sign in to comment.