dumi icon indicating copy to clipboard operation
dumi copied to clipboard

feat: Dumi 支不支持Taro ?

Open beMySun opened this issue 1 year ago • 3 comments

What problem does this feature solve?

最近在使用 Dumi 搭建业务组件库, 有部分组件需要使用 Taro 实现, 但是没有发现相关特性。

请问官方是否可以支持在 Dumi 中兼容 Taro 组件的开发?

Possible Solution (optional)

可能的实现:

  • 实现一个 babel 插件, 以便正确编译 Taro 组件。
  • Dumi 底层使用了 Umi,而 Umi 使用了 Webpack。可能需要在项目的配置文件中添加一些针对 Taro 的配置,比如添加 Taro 的 loader。

beMySun avatar Feb 29 '24 10:02 beMySun

目前没有精力做技术栈的扩充,你有兴趣的话可以自定义技术栈实现 Taro 的接入,建议先搞个 RFC

自定义技术栈简单文档:https://d.umijs.org/plugin/api#registertechstack Vue.js 技术栈支持:https://github.com/umijs/dumi/pull/1922 Vue.js 技术栈支持的讨论:https://github.com/umijs/dumi/discussions/1959

PeachScript avatar Mar 07 '24 01:03 PeachScript

Hello @beMySun. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @beMySun,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

github-actions[bot] avatar Mar 07 '24 01:03 github-actions[bot]

Hello!  Your E-mail has been recieved and I will respond you as soon as possible.Best wishes! 

beMySun avatar Mar 07 '24 01:03 beMySun

Hello!  Your E-mail has been recieved and I will respond you as soon as possible.Best wishes! 

beMySun avatar Mar 24 '24 07:03 beMySun