From 1cfc8d668b8897ef3a53c11520312cc6d18338f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LeoYuan=20=E8=A2=81=E5=8A=9B=E7=9A=93?= Date: Thu, 19 May 2022 10:23:06 +0800 Subject: [PATCH 1/2] feat: add renderer for simulatorHost --- packages/shell/src/simulator-host.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/shell/src/simulator-host.ts b/packages/shell/src/simulator-host.ts index 7785fed92..d22336c3e 100644 --- a/packages/shell/src/simulator-host.ts +++ b/packages/shell/src/simulator-host.ts @@ -29,6 +29,10 @@ export default class SimulatorHost { return this[simulatorHostSymbol].contentDocument; } + get renderer() { + return this[simulatorHostSymbol].renderer; + } + /** * 设置 host 配置值 * @param key From b4f463e7d45f7b476de04bd4d98ad9f74d53cf13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LeoYuan=20=E8=A2=81=E5=8A=9B=E7=9A=93?= Date: Thu, 19 May 2022 10:42:03 +0800 Subject: [PATCH 2/2] feat: add script for synchronizing packages to intranet registry --- package.json | 3 ++- scripts/sync.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 scripts/sync.sh diff --git a/package.json b/package.json index 6e8ab8703..72ddd3ca6 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "start": "./scripts/start.sh", "test": "lerna run test --stream", "test:snapshot": "lerna run test:snapshot", - "watchdog:build": "node ./scripts/watchdog.js" + "watchdog:build": "node ./scripts/watchdog.js", + "sync": "./scripts/sync.sh" }, "husky": { "hooks": { diff --git a/scripts/sync.sh b/scripts/sync.sh new file mode 100755 index 000000000..71ab5f5a1 --- /dev/null +++ b/scripts/sync.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +# sync all packages to alibaba intranet registry +tnpm sync @alilc/lowcode-types +tnpm sync @alilc/lowcode-utils +tnpm sync @alilc/lowcode-shell +tnpm sync @alilc/lowcode-editor-core +tnpm sync @alilc/lowcode-editor-skeleton +tnpm sync @alilc/lowcode-designer +tnpm sync @alilc/lowcode-plugin-designer +tnpm sync @alilc/lowcode-plugin-outline-pane +tnpm sync @alilc/lowcode-rax-renderer +tnpm sync @alilc/lowcode-rax-simulator-renderer +tnpm sync @alilc/lowcode-react-renderer +tnpm sync @alilc/lowcode-react-simulator-renderer +tnpm sync @alilc/lowcode-renderer-core +tnpm sync @alilc/lowcode-engine \ No newline at end of file