Skip to content

Add support for monorepo structure with multiple apps #107

@kevindice

Description

@kevindice

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions