An app may not need to span across web, RN, and desktop. Maybe it just needs web, web + desktop, or RN alone. In these cases, it would be great to only install the dependencies needed for one's particular use case.
A good way to handle this might be to abstract the shared business logic into its own package. However, npm link and yarn link create a lot of additional overhead that would hamper our current local development workflow.
Solution:
lerna or yarn workspaces could help with this overhead issue while at the same time provide options to choose which platforms (web, desktop, and/or React Native) to add or remove from a single repository.
Problem:
shared business logic
into its own package. However,npm link
andyarn link
create a lot of additional overhead that would hamper our current local development workflow.Solution:
lerna
oryarn workspaces
could help with this overhead issue while at the same time provide options to choose which platforms (web, desktop, and/or React Native) to add or remove from a single repository.