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

ConfigCompiler 插件 #149

Closed
lotem opened this issue Sep 13, 2017 · 0 comments · Fixed by #150
Closed

ConfigCompiler 插件 #149

lotem opened this issue Sep 13, 2017 · 0 comments · Fixed by #150

Comments

@lotem
Copy link
Member

lotem commented Sep 13, 2017

我想基於
#138
#146
#148
繼續做 ConfigCompiler 的插件。用來兼容舊有的配置文件。

  • 自動引用 <x>.custom.yaml:/patch?<x> 是當前配置文檔的 ID(或須去除 .schema 後綴)
  • 自動將 <component>/import_preset: 轉換爲節點引用,及合併操作
  • (也許還可以)將 translator/dictionary: x 改造爲引用 <x>.dict.yaml 的配置部分
    以上都完成以後,所有當前方案所需的配置都加載(編譯)到一份 Config 裏面了——可以把他緩存下來(以基本 YAML 或二進制文件)不用每次編譯。進而可以把編譯侷限在部署階段,最終把部署程序從輸入法分離出來。

Excited!

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