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 e2e #55

Merged
merged 25 commits into from
Dec 2, 2022
Merged

Feature e2e #55

merged 25 commits into from
Dec 2, 2022

Conversation

pagnkelly
Copy link
Contributor

  • 增加e2e测试插件
  • 增加ts模块有测试模块时,tsconfig增加jest的类型校验

})

api.extendPackage({
devDependencies: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这部分的依赖看起来应该是 vue-cli-plugin-mpx-e2e-test 这个插件自身的依赖,所以感觉放到这个插件自身的 package.jsondependencies 里面去收敛管理这些依赖比较合理一些。

因为通过 api.extendPackage 是改的业务项目的 package.json,那么会遇到的场景就是这个插件相关的依赖升级,那么业务项目只需要升级 vue-cli-plugin-mpx-e2e-test 这个插件的版本即可,然后对应的依赖也得到更新。这样业务项目就不再需要单独关心到底升级具体哪个插件的版本。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看起来其他有几个插件也是通过 api.extendPackge 去管理依赖,我们这边也按这个策略优化一下。

@CommanderXL CommanderXL merged commit 403d28a into master Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants