I've had success using git submodules for this pattern.

On Wed, Jan 11, 2017 at 8:26 PM, Jeff Schomay <[email protected]> wrote:

> Has anyone tried this?
>
> I would like to do something similar to babel.js
> <https://github.com/babel/babel> (they use lerna <https://lernajs.io/>).
> I have tried (https://github.com/jschomay/elm-monorepo-test), but it
> doesn't work, because my "sub-package"' elm-package.json's repository field
> is https://github.com/jschomay/elm-monorepo-test/
> tree/master/packages/monorepo-test1, which causes an error (it expects
> https://github.com/user/repo.git only).
>
> Is there any way to do this?  Any ideas?
>
> Why I want to do this:
>
> I have the structure below, which includes different pieces that are all
> interrelated, but have different languages, published locations, and
> licenses.  Having them in the same repo is nice for many reasons
> <https://github.com/babel/babel/blob/master/doc/design/monorepo.md>,
> while still letting me publish individual packages to the associated
> repositories.
>
> elm-narrative-engine (the monorepo)
> ├── elm-package.json (top level with all packages included in src to run
> the whole thing)
> └── packages/
>         ├──── engine/ (Elm package, open license)
>          |      └──── src/*
>         ├──── editor/ (closed license)
>          |      └──── src/*
>         ├──── editor-backend/ (closed license, node.js)
>          |       └──── src/*
>         └──── story-starter/ (Node package, open license)
>                 └──── src/*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to