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:
- Creating a
clean-project-auto-monorepo plugin definition for react-native-cli
- Defining 3 sets of cleanup tasks:
- The global ones which should run first
- The app-specific ones to run in the middle
- The global ones which should run last
- Adding an optional
directory argument to the executeTask function which gets passed on as the cwd option for the spawn call so that the app-specific commands get run from within their respective directories.
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:
clean-project-auto-monorepoplugin definition forreact-native-clidirectoryargument to theexecuteTaskfunction which gets passed on as thecwdoption for thespawncall so that the app-specific commands get run from within their respective directories.