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

CLI support for multiple projects #12

Open
conartist6 opened this issue Jun 4, 2021 · 0 comments
Open

CLI support for multiple projects #12

conartist6 opened this issue Jun 4, 2021 · 0 comments

Comments

@conartist6
Copy link
Collaborator

I've always intended to support monorepos and have built macrome in such a way that it understands that the root of a project might not be the root of the version control system.

How them should macrome run on multiple projects at once? This question is still a little thorny, but I believe the correct solution is to make multiple instances of the Macrome class in a single execution environment. We really want a single execution environment because otherwise all the code for the build system and its dependencies would have to be evaluated multiple times, which would be tremendously wasteful.

In most circumstances though the user will not want to use the programmatic API to create multiple instances though, so this should be a responsibility of the CLI. The CLI will need logic to search for (or accept configuration of) projects. Presumably something lerna-ish is advisable where a special root configuration includes details on where to look for projects. This would presumably be something like a macrome.projects.json file which could contain an array of globs for directories to be searched for projects. If I'm feeling particularly integration-happy I could also support reading this data directly from lerna.json.

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