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

feat(runner): support no build #15144

Merged
merged 6 commits into from
Jan 25, 2024
Merged

feat(runner): support no build #15144

merged 6 commits into from
Jan 25, 2024

Conversation

ZakaryCode
Copy link
Contributor

@ZakaryCode ZakaryCode commented Jan 22, 2024

这个 PR 做了什么? (简要描述所做更改)

  • CLI 支持 no-build 参数来禁用应用编译,可用于获取 Taro 最终处理完成的 webpack 配置自行处理编译流程
  • 修复 h5 端 modifyComponentConfig 生命周期,支持从外部禁用组件库抖动插件

这个 PR 是什么类型? (至少选择一个)

  • 错误修复(Bugfix) issue: fix #
  • 新功能(Feature)

这个 PR 涉及以下平台:

  • 所有小程序
  • Web 平台(H5)

close #12527

Copy link

codecov bot commented Jan 25, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (51ccc64) 59.38% compared to head (1dd0227) 59.38%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #15144   +/-   ##
=======================================
  Coverage   59.38%   59.38%           
=======================================
  Files         487      487           
  Lines       21481    21490    +9     
  Branches     5485     5491    +6     
=======================================
+ Hits        12756    12762    +6     
+ Misses       7578     7560   -18     
- Partials     1147     1168   +21     
Flag Coverage Δ
taro-cli 63.29% <100.00%> (+5.93%) ⬆️
taro-runner 46.21% <50.00%> (-0.01%) ⬇️
taro-runtime 65.51% <ø> (ø)
taro-web 41.83% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/taro-cli/src/cli.ts 81.81% <ø> (ø)
packages/taro-cli/src/presets/commands/build.ts 49.23% <100.00%> (ø)
packages/taro-mini-runner/src/index.ts 73.07% <100.00%> (+0.52%) ⬆️
...ckages/taro-webpack-runner/src/config/prod.conf.ts 78.26% <100.00%> (+0.48%) ⬆️
...ckages/taro-webpack-runner/src/plugins/H5Plugin.ts 91.11% <100.00%> (+0.41%) ⬆️
...ackages/taro-webpack-runner/src/config/dev.conf.ts 10.84% <50.00%> (+0.96%) ⬆️
packages/taro-webpack-runner/src/index.ts 14.64% <0.00%> (-0.19%) ⬇️

... and 9 files with indirect coverage changes

@ZakaryCode ZakaryCode merged commit 71a1bc4 into main Jan 25, 2024
23 of 25 checks passed
@ZakaryCode ZakaryCode deleted the feat/no-build branch January 25, 2024 04:43
@yoyo837
Copy link
Contributor

yoyo837 commented Jan 25, 2024

这样的话,有可用的webpack配置文件路径可用了?一个会 module.exports webpack配置的文件路径

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

Successfully merging this pull request may close these issues.

@tarojs/webpack5-runner 提供获取 webpack 静态配置文件入口
3 participants