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

CLI command: build-ios #60

Open
michalchudziak opened this issue Aug 3, 2021 · 0 comments
Open

CLI command: build-ios #60

michalchudziak opened this issue Aug 3, 2021 · 0 comments

Comments

@michalchudziak
Copy link
Collaborator

michalchudziak commented Aug 3, 2021

Description

Build commands are core CLI features, they take care of building the final artifact. The command should be invokable as follows:

yarn react-native-brownfield build-ios

The command should utilize underlying iOS project, please check out the diagram:
RNB diagram

The command should:

  • bundle JS
  • install pods (along with linking native modules)
  • build frameworks for different architectures
  • merge frameworks into a universal one

The produced output should be a working .xcframework file.

Additional command options:

  • --dev -D flag should build an artifact with no bundle or assets and fetch it from the remote.
  • --config <path/to/config> path to config file

Acceptance criteria

Functional:

  • build-ios command works on example app (produces working artifact on root level)
  • build-ios command works on the newly created react-native init application (produces working artifact on root level)
  • native modules are linked and embedded into artifact
  • assets & resources are linked and embedded into artifact
  • configuration file is respected
  • dev flag should be supported

Non-functional:

  • 100% typescript coverage
  • command is tested with unit tests
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

1 participant