builder icon indicating copy to clipboard operation
builder copied to clipboard

builder and mono repos

Open jstrimpel opened this issue 7 years ago • 4 comments

Is there an example of how to move archetypes from mono repo packages up to the top of a mono repo? I saw the --builderrc flag, which works, but I am getting script not found errors. I haven't spent time debugging this yet, but if there is a reference project to which someone can easily direct me it would be much appreciated. Otherwise please close this issue, and I will spend some time figuring it out. Thanks.

jstrimpel avatar Sep 28 '18 21:09 jstrimpel

I don't have a good reference example, but I'd be happy to either (1) document a good approach and/or (2) fix any bugs with the approach.

If you have a moment, could you create a minimal repository that exposes the issue with install + error reproduction steps that I could clone down and just jump into? Thanks!

ryan-roemer avatar Sep 28 '18 22:09 ryan-roemer

@ryan-roemer Thanks. I will throw together an example, eventually. :)

jstrimpel avatar Oct 17 '18 17:10 jstrimpel

@jstrimpel I've been avoiding mono repos, because I find that I don't need them if I'm using Builder, as the build/test/etc configs and scripts are then easy to share across projects with a simple npm install. I could see the ability to run a script on all projects at once being convenient, but I haven't needed that myself: I work on one project at a time, and version them independently, and running the same script in another project is a cd ../other-project command away.

An idea: maybe you could write a shell script in your directory that can cd to each project and run the same script? The script to run could be passed as an arg.

Another idea: Use Bolt to run the same builder script in each project. Bolt lets you run scripts on one, some, or all projects/packages in a mono-repo setup, and you could have Bolt trigger a builder run in each project of your mono repo.

trusktr avatar Mar 18 '19 21:03 trusktr

@trusktr Thanks. We are using a postinstall that symlinks hoisted archetypes. At some point we will refine this process.

jstrimpel avatar Mar 18 '19 21:03 jstrimpel