You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
@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.
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-monorepo
plugin definition forreact-native-cli
directory
argument to theexecuteTask
function which gets passed on as thecwd
option for thespawn
call so that the app-specific commands get run from within their respective directories.The text was updated successfully, but these errors were encountered: