-
Notifications
You must be signed in to change notification settings - Fork 35
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 #58
Comments
hi @playma256 unfortunately ntl does not offer any special support to mono repo structures out of the box right now but rest assured that's something I would love to support! Thing is I'm not a monorepo person myself and I don't have any projects in my radar using it - that said I would love to hear from the people using it what would make sense for them. Some questions to start with:
Let's get this conversation started 🚀 |
Hello! We have few people that would be interested on it!
Lerna, yarn workspaces
Usually they have tasks per package and sometimes they expose those tasks on the root What i mean: Given we have the package: {
"scripts": {
"runSomething": "do-it"
}
} This could/would be exposed on the top level scripts as (using the yarn workspaces syntax):
Sometimes they do!
The only thing could be scanning through all the There is a monorepo playground we have and you could have a look as well (https://github.com/entria/entria-fullstack) That can be helpful while developing it! I'll try to find sometime to help with this! |
Awesome, that sounds like a great start!
👍 this kind of reference is very useful for adding tests
Great to hear! Personally I don't think I'll be putting much development time into the project right now so I'll leave this one open for the community to help 😊 |
FYI: i created a small package which helps finding all |
Hej, this is a great idea. I’d like to work on this. Just a last Question about the list behavior when finding a monorepo. Currently we are showing tasks like this:
Option 1In case of a monorepo we could provide a list of sub repos first:
Not sure about the wording though. Anyway: We would present the task list after choosing one. Option 2In case of a monorepo we show the root tasks and sub repos in the list:
Where the sub repos should be formatted other than the tasks (eg. colored and bold). Any opinions on that? |
Another important thing is to think about how the monorepo feature should go along with the |
@mischah i had just started writing down, i wrote literally 2 lines hahaha, you can go ahead and do that! Let me contribute to the discussions I personally think that is going to be a better UX if we can have option 2 because there are many scripts that can be run on the root as well like global lint, tests, stuff like that! |
ok, I have given this a fair amount of thinking and I would like to avoid as much as possible writing a custom implementation for handling the monorepo discovery logic. I would much prefer reusing some already existing code from one of the big projects, such as lerna Given that workspaces are a feature in npm's radar for v7 (maybe not v7.0 but def during v7.x life) it could be a very good idea to wait for it to land there before we implement it here (then we could hook to the APIs npm natively exposes) - but to be clear: if someone shows up with a PR and it seems to be something the community wants, I wouldn't mind merging it 😊 |
Update: The RFC for |
Hello! Does it has support for a mono repo? Scanning through multiple
package.json
?The text was updated successfully, but these errors were encountered: