I'm using a monorepo in development and it works fine. Since there's not too many projects making up the monorepo I'm doing a manual yarn link where necessary.But how do I actually deploy the application to a server? If the monorepo has 10 projects but the application I want to deploy only needs 2 of them (for example the main and one dependency), I'd rather not have all of the projects up on the server, but just the ones needed for the application.If I'm using yarn link I suppose I can do it manually on the server the way I'm doing it in development. But what if I want to switch to yarn workspaces (which might be more maintainable than manual yarn link when the monorepo grows to more projects), how can I just pull in the necessary projects then? Or do I need to transfer the entire monorepo to the server for yarn workspaces to work?I looked into lerna but it also doesn't seem to do this, so I'm better off doing it with yarn workspaces or sticking to doing it manually for now.
Submitted September 12, 2018 at 10:33AM by nowboarding
No comments:
Post a Comment