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

RU-MAKEAPP: refactor(run)!: cleanup run method (#1266) #8

Merged
merged 7 commits into from
Jul 13, 2021

Conversation

sakibguy
Copy link
Owner

  • 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

Platforms affected

Motivation and Context

Description

Testing

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

* 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
@sakibguy sakibguy added bug Something isn't working documentation Improvements or additions to documentation labels Jul 12, 2021
@sakibguy sakibguy self-assigned this Jul 12, 2021
* refactor(emulator): require emulatorId in emulator.run

* refactor: use effective targetSdk to find best emulator
Copy link
Owner Author

@sakibguy sakibguy left a comment

Choose a reason for hiding this comment

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

updated

raphinesse and others added 5 commits July 13, 2021 08:51
* fix(Api): do not infer project root from script location

* fix(builders): do not infer project root from script location

* fix(target): do not infer project root from script location

* test(e2e): cleanup and extend E2E tests

- Renames the file with the only existing E2E test
- Makes existing test use the API instance returned by
  `Api.createPlatform`
- Adds another test that ensures we can still require the API from
  `platformProjectPath/cordova/Api.js`

* fix(check_reqs): do not infer project root from script location
Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
Copy link
Owner Author

@sakibguy sakibguy left a comment

Choose a reason for hiding this comment

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

goo dwork, adding new changes

@sakibguy sakibguy merged commit 04ec650 into sakibguy:master Jul 13, 2021
@sakibguy sakibguy changed the title refactor(run)!: cleanup run method (#1266) RU-MAKEAPP: refactor(run)!: cleanup run method (#1266) Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants