Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monorepo Support #211

Open
BeeeQueue opened this issue Aug 11, 2020 · 0 comments
Open

Monorepo Support #211

BeeeQueue opened this issue Aug 11, 2020 · 0 comments

Comments

@BeeeQueue
Copy link
Contributor

Do you want to request a feature or report a bug?

Feature

What is the current behavior?

If you have multiple packages in one repo you can either have all of them reported as one (packages/*/dist/*.js), or only one reported (packages/pkg-one/dist/*.js).

Running the script multiple times overrides the last report each time.

What is the expected behavior?

CLI

My proposal is to add a new argument to the CLI: --name or --package. Using this would tag the report as being for a specific package, separating it from the others.

This would allow for running the script multiple times for reporting multiple packages.

Server

This can be stored in various ways, but the simplest one would be to simply add a package field to the report, and when returning the results from an endpoint simply return all the commitSha+package combos.

e.g.

{
  // [commit/repo info]
  packages: {
    "pkg-one": {
      // [file report data]
    },
    // ...
  }
}

If this is a feature request, what is motivation or use case for changing the behavior?

It's impossible to use this service in a monorepo. It would allow projects that use it (popular ones include Vue, babel) to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant