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

refactor(run)!: cleanup run method #1266

Merged
merged 6 commits into from Jul 11, 2021

Conversation

raphinesse
Copy link
Contributor

Motivation and Context

Refactoring that improves code quality of run.run and prepares the stage for other changes.

Description

See commit messages. Slightest change in behavior during errors due to the first two commits.

Testing

Automated tests still pass

@raphinesse raphinesse added this to the 10.0.0 milestone Jul 10, 2021
@codecov-commenter
Copy link

codecov-commenter commented Jul 10, 2021

Codecov Report

Merging #1266 (a98a0ce) into master (8a9cb8f) will decrease coverage by 0.06%.
The diff coverage is 92.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1266      +/-   ##
==========================================
- Coverage   71.55%   71.48%   -0.07%     
==========================================
  Files          21       21              
  Lines        1649     1645       -4     
==========================================
- Hits         1180     1176       -4     
  Misses        469      469              
Impacted Files Coverage Δ
bin/templates/cordova/lib/run.js 96.00% <92.30%> (-0.56%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a9cb8f...a98a0ce. Read the comment docs.

`parseBuildOptions` only sets `arch` if something truthy is passed for
parameter `resolvedTarget` to which we pass `null`.
@raphinesse raphinesse merged commit fb36e03 into apache:master Jul 11, 2021
@raphinesse raphinesse deleted the basic-run.run-cleanup branch July 11, 2021 13:47
sakibguy added a commit to sakibguy/cordova-android that referenced this pull request Jul 13, 2021
refactor(run)!: cleanup run method (apache#1266)
wedgberto pushed a commit to wedgberto/cordova-android that referenced this pull request May 17, 2022
* refactor(run)!: get rid of emit-and-throw & throw-literal antipatterns

* refactor(run)!: convert run method to async/await

* refactor(run): require build module in advance

* refactor(run): minor cleanup

* refactor(run): drop always-undefined option arch

`parseBuildOptions` only sets `arch` if something truthy is passed for
parameter `resolvedTarget` to which we pass `null`.

* refactor(run): destructure buildOptions
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.

None yet

2 participants