[Feedhenry-raincatcher] Lerna-js based monorepo, lets try to migrate now before this dies again!

Wojciech Trocki wtrocki at redhat.com
Fri Mar 31 11:21:11 UTC 2017


Thank you for contribution. Really good work - looking forward to use lerna.
I think that the biggest challenge with monorepo is to agree on how we
should support or possibly move out from our forking model.
Another challenge I see is just a building PR's.
Having code in one place is good start, but we would also need to fully
understand impact of that change to our customers that already forked
repositories etc.
It will be hard to revert that back in case of any problems.

I created travis configuration[1] for this. Let's check if we can build it
in some sensible time.

[1] https://github.com/paolobueno/raincatcher-mono/pull/1


Wojciech Trocki
Red Hat Mobile

On Fri, Mar 31, 2017 at 9:24 AM, Damien Murphy <damurphy at redhat.com> wrote:

> Looks really good, should eliminate a lot of pain
>
> On Fri, Mar 31, 2017 at 12:53 AM, Paolo Haji <phaji at redhat.com> wrote:
>
>> Goood neeews, everyone! <https://www.youtube.com/watch?v=0oRlVKdOzmU>
>>
>> I went ahead and setup a lerna.js <https://lernajs.io/>-based monorepo
>> for raincatcher.
>> This was mostly from me being exceedingly annoyed at having to bump
>> everything that used the mediator after Ger fixed a memory leak
>> <https://github.com/feedhenry-raincatcher/raincatcher-mediator/pull/24>
>>
>> I've captured all current repos in the feedhenry-raincatcher org through this
>> tool <https://github.com/unravelin/tomono> and did some small
>> adjustments. Mostly enforcing the "fh-wfm-" prefix and bumping versions to
>> latest.
>>
>> The repo is currently available here: https://github.com/paolobueno/
>> raincatcher-mono (didn't want to overwrite Peter's previous attempt).
>> Lerna seems to have everything we need in terms of extra basic scripts,
>> such as symlinking everything, coordinating version bumps and publishes
>> (even with independent versioning), publishing alpha versions, running npm
>> scripts and arbitrary commands in multiple subrepos, etc.
>>
>> Apart from some weirdness with the browserifying in demo-portal and
>> demo-mobile that I haven't been able to fix yet, it seems very promising.
>>
>> I think on top of that we'd need to setup CI to run all tests (and
>> potentally improve it to run only on repos that have changed through lerna
>> updated), DRY some dev-dependencies to the root and maybe add some
>> scripts to deploy all demo apps at once to a cluster.
>>
>> In the linked repo the package versions all suffered a minor bump, along
>> with a test publishing through lerna publish --canary --exact, you
>> should be able to see 'canary' npm dist-tags on all modules as an example.
>>
>> I urge everyone to take a look and see if we can make the leap.
>>
>> _______________________________________________
>> Feedhenry-raincatcher mailing list
>> Feedhenry-raincatcher at redhat.com
>> https://www.redhat.com/mailman/listinfo/feedhenry-raincatcher
>>
>>
>
> _______________________________________________
> Feedhenry-raincatcher mailing list
> Feedhenry-raincatcher at redhat.com
> https://www.redhat.com/mailman/listinfo/feedhenry-raincatcher
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/feedhenry-raincatcher/attachments/20170331/8739117f/attachment.htm>


More information about the Feedhenry-raincatcher mailing list