cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Koudritsky <kam...@google.com>
Subject Re: Sharing code between plugman and cordova-cli
Date Wed, 16 Apr 2014 14:45:31 GMT
On Wed, Apr 16, 2014 at 9:59 AM, Carlos Santana <csantana23@gmail.com>wrote:

> If you the decision factor is to consolidate all the cli tooling into a
> single git repo, that's ok but
>
> I still think we should treat what's inside the single repo as different
> small independent npm modules and use the bundleDependencies in the cli and
> plugman pacakge.json
>
> /cordova-the-one-repo-to-rule-them-all
> |- cli
> |  '- package.json
> |- plugman
> |  '- package.json
> |- common
> |  '-util_a/package.json
> |  '-util_b/package.json
> |  '-util_c/package.json
>
> cli and plugman pacakge.json will contain
> "bundleDependencies": [
>     "util_a",
>     "util_b"
>     ]
>
> during dev and plublish, coho can automate
> cd cli
> #link dependencies
> npm link ../common/util_a
> npm link ../common/util_b


The bundleDependencies method seems good, didn't know about it.

What happens if util_c also depends on util_a?
I think in that case you I'll need to cd to util_c and also do some linking
magic there. I guess we'll need a script (or several) for setting up the
dev environment.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message