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

插件对依赖的影响抽离为中间件处理 #181

Open
Tracked by #24 ...
uaenaTzx opened this issue May 27, 2024 · 3 comments
Open
Tracked by #24 ...

插件对依赖的影响抽离为中间件处理 #181

uaenaTzx opened this issue May 27, 2024 · 3 comments

Comments

@uaenaTzx
Copy link
Collaborator

No description provided.

@uaenaTzx
Copy link
Collaborator Author

比如 ts 插件会造成项目需要加入一些 type 的包

@taolin011
Copy link
Contributor

TreeFile类提供便捷中间件函数修改逻辑的方法

@uaenaTzx
Copy link
Collaborator Author

uaenaTzx commented Jul 9, 2024

详细说明:
部分插件在植入项目时,会对依赖产生影响,比如 ts 插件会要求项目加入一些 type 包,这些情况基于插件的不同而不同,因此需要在特定的插件中实现操作函数,然后在 Generator 处理中设置一个中间件批处理,逐一对有这方面诉求的插件进行函数调用。

目前 Generator 有多个中间件流程,编码的时候可以把这几个逻辑梳理到一块

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

No branches or pull requests

2 participants