pmadruga / react-native-clean-project

Automating the clean up of a React Native project
MIT License
1.21k stars 53 forks source link

Add support for monorepo structure with multiple apps #107

Open kevindice opened 1 year ago

kevindice commented 1 year ago

I'm working with an Nx monorepo of React Native apps and would like to modify this tool to support running the global cleanup commands once while running the app-specific cleanup commands once for each app.

I'm prototyping this locally but can send up a PR later this week.

What this generally entails:

kevindice commented 1 year ago

Hi @pmadruga - I'm revisiting this after using my local yarn patch of this package for a while. Is this a feature you might like to include in the scope of this package? If so, I'd be happy to make a contribution. Otherwise, I can formalize my work into a new package and publish separately. A 'no' is perfectly fine if you'd like to keep this one more focused/smaller scoped.

shamilovtim commented 1 year ago

@kevindice just curious but why don't you just have automations can run this tool for each package you want to run it for individually? that way you could run it for only one package, for a handful of watched packages, or for all packages. if you have to run this globally you'll need to dynamically pass params of which directories to run it for, which seems unnecessary given that each package should have its own package.json and node_modules folder.