Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

抽取 Spec 为单独 repo 维护 #4942

Closed
5 tasks
hustcc opened this issue May 5, 2023 · 1 comment
Closed
5 tasks

抽取 Spec 为单独 repo 维护 #4942

hustcc opened this issue May 5, 2023 · 1 comment
Labels

Comments

@hustcc
Copy link
Member

hustcc commented May 5, 2023

Spec 作为 AntV 对于可视化图表的描述语法,需要被 G2、AVA 等单独使用,作为规范性的描述,需要放到 antv-spec 中,更好的维护起来。

主要工作项:

  • 抽离 G2 src/spec 目录中的代码,主要为 typescript 的类型定义,移除 spec 目录对于其他目录代码的 import。
  • 完善 spec 类型定义,以及注释。去除 any、object、等模糊的定义。
  • src/spec 代码 copy 到 antv-spec 更规范的维护起来,包含 json schema、示例。
  • 移除 G2 的 spec 目录中代码,使用 import antv-spec

扩展内容:

  • 纯文本:spec 中的 function 回调方式,定义一套 DSL 去实现。
@pearmini
Copy link
Member

pearmini commented May 5, 2023

我倾向于先把 spec 放在 G2 仓库中,作为一个单独的子包。因为目前的重点是 G2 的稳定性,维护两个仓库的话有更高的协作和开发成本。等 G2 稳定以后(预计 S1 结束),再把 spec 迁移至 antv-spec 这个仓库里(预计 S2)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants