Maybe a good first stab at this (and maybe this works already), is to
ensure multiple versions of CLI can be installed at the same time.

e.g.

/usr/loca/cordova-cli/2.4
/usr/loca/cordova-cli/2.5
/usr/loca/cordova-cli/2.6

The global symlink in /usr/local/bin would point to the latest, but your
project can just call the relevant one directly.







On Fri, Mar 22, 2013 at 2:58 PM, tommy-carlos Williams
<to...@devgeeks.org>wrote:

> I don't have much to add except that I really like this about Grunt.
>
> However, it would get "interesting" with Cordova since the global is what
> creates a project in the first place. I still think it could work and have
> the global only responsible for creating dirs and setting up package.json
> stuff etc...
>
> +1 for looking into this.
>
> On 23/03/2013, at 4:53, Brian LeRoux <b...@brian.io> wrote:
>
> > Right now the global executable is version locked to a Cordova
> > release. If you have a project running 2.5 you are required to have
> > Cordova/CLI 2.5. If you need to then work in Cordova 2.4 you need to
> > downgrade (not really but you would to be safe).
> >
> > In Grunt .4 the global executable is dumb. It just shells to locally
> > installed ./node_module version of Grunt. This enables project level
> > versioning of Grunt. Nice feature. We can do the same thing: with the
> > caveat that you would then require a package.json and ./node_modules
> > folder in our Cordova projects.
> >
> > Discuss.
>

Reply via email to