couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <kxe...@gmail.com>
Subject Re: Sharing CommonJS modules across design documents / databases?
Date Wed, 28 Oct 2015 20:20:39 GMT
Hi Ronan,


On Wed, Oct 28, 2015 at 5:32 PM, Ronan Jouchet
<ronan.jouchet@cadensimaging.com> wrote:
> → Does that mean I will have to deploy/duplicate my little library across
> all the design documents / databases needing it?!

Yes.


> With such a limitation, my team is considering eyebrow-raising strategies
> like enhancing our deployment tool to duplicate library js code across all
> {database * design docs}s at deploy time, which sounds like a terrible idea.
> Is what I'm asking for an anti-pattern suggesting we're Doing It The Wrong
> Way® ?

There is no right way to workaround it. Basically, you have to copy
it. However, you can easy maintenance of the common libraries but git
submodules, automatically copying on upload, using overlay system etc.

--
,,,^..^,,,

Mime
View raw message