tiny-engine/packages/blockToWebComponentTemplate
chilingling aa8d361bd2
feat(chore): update OpenTinyVue version (#457)
* feat(chore): update OpenTinyVue version

* feat(chore): update opentinyvue version

* fix(breadcrumb): fix breadcrumb style after update opentiny vue version

* feat(chore): change opentinyvue to peer dependencies

* feat(builtinComponent): add vue to peerDependencies
2024-05-11 17:43:33 +08:00
..
src feat(block2webcomponent): add block2webcomponent package (#146) 2023-12-15 15:33:02 +08:00
README.md feat(block2webcomponent): add block2webcomponent package (#146) 2023-12-15 15:33:02 +08:00
package.json feat(chore): update OpenTinyVue version (#457) 2024-05-11 17:43:33 +08:00
vite.config.js feat(chore): update OpenTinyVue version (#457) 2024-05-11 17:43:33 +08:00

README.md

@opentiny/tiny-engine-blockToWebComponentTemplate

将区块转换成 webComponent使得不同技术栈的区块可以统一在 vue 的画布上面运行

使用

  • 后端拉取 template
  • 将区块 schema 转换成 高代码,并写入 src 文件夹中
  • 写入 lib.js替换 BlockFileName 为实际出码的文件名
  • 执行 pnpm install 安装依赖
  • 运行 pnpm run build:block 命令
  • 得到 webcomponent 转换产物