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

[Feature Request] 能否考虑提供单独的 umi cli 包 #12351

Closed
tommytroylin opened this issue May 3, 2024 · 1 comment
Closed

[Feature Request] 能否考虑提供单独的 umi cli 包 #12351

tommytroylin opened this issue May 3, 2024 · 1 comment

Comments

@tommytroylin
Copy link

tommytroylin commented May 3, 2024

Background

目前 umi 包中有许多依赖。

dependencies:
@babel/runtime: 7.23.6 @umijs/renderer-react: 4.1.10
@umijs/bundler-utils: 4.1.10 @umijs/server: 4.1.10
@umijs/bundler-webpack: 4.1.10 @umijs/test: 4.1.10
@umijs/core: 4.1.10 @umijs/utils: 4.1.10
@umijs/lint: 4.1.10 prettier-plugin-organize-imports: ^3.2.2
@umijs/preset-umi: 4.1.10 prettier-plugin-packagejson: 2.4.3 z

我们目前有自行定制单侧、eslint、prettier 等工具链配置。

所以其中 @umijs/test @umijs/lint 有可能会和项目内安装版本产生冲突。例如最近新出的 eslint 9

Proposal

将 umi 中的一些逻辑抽离到类似@umijs/cli 的包中。

保持 umi 包开箱即用。
同时需要更多自定义能力的。可以基于@umijs/cli 配合其他包进行自行封装。

@tommytroylin tommytroylin changed the title [Feature Request] 能否考虑提供 umi cli [Feature Request] 能否考虑提供单独的 umi cli 包 May 3, 2024
@fz6m
Copy link
Contributor

fz6m commented May 6, 2024

如果你需要用你自己的 eslint 、prettier 等依赖的版本的话,在项目里显示安装即可,如果使用 npm / yarn 造成了依赖前后安装顺序不定导致使用版本不确定的话,使用 pnpm 即可。

@fz6m fz6m closed this as completed May 6, 2024
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