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

有没有办法配置多个config文件 #45

Closed
henryzp opened this issue Sep 14, 2020 · 7 comments
Closed

有没有办法配置多个config文件 #45

henryzp opened this issue Sep 14, 2020 · 7 comments

Comments

@henryzp
Copy link

henryzp commented Sep 14, 2020

多人开发,希望生成不同的src/api/xx.ts文件。。。

比如说我的是a.ts,对方的是b.ts,是否有办法?

@fjc0k
Copy link
Owner

fjc0k commented Sep 14, 2020

显然不太行。不过为啥要这样?

@henryzp
Copy link
Author

henryzp commented Sep 15, 2020

就是会感觉如果项目多的话,会导致api/index.ts文件越来越大。。

还有就是运行ytt,会导致时间上的开销吧

@fjc0k
Copy link
Owner

fjc0k commented Sep 15, 2020

outputFile*** 是支持项目、分类级别设置的。

@henryzp
Copy link
Author

henryzp commented Sep 15, 2020

嗯??outputFile不是string么?可以是数组?根据不同的token,配置不同的url输出?

@fjc0k
Copy link
Owner

fjc0k commented Sep 15, 2020

outputFile*** 是支持项目、分类级别设置的。

不是说它是人员级别的。

人员级别的你们可以搞环境变量,根据环境变量设置不同的参数。

@henryzp
Copy link
Author

henryzp commented Sep 15, 2020

@fjc0k ,ok,懂你意思了,也就是说根据不同的环境变量,来生成不同的outputFile path?

是这样理解吧?

@fjc0k
Copy link
Owner

fjc0k commented Sep 15, 2020

@henryzp henryzp closed this as completed Sep 17, 2020
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