cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Braden Shepherdson <>
Subject Re: CLI lazy loading of libraries
Date Fri, 07 Jun 2013 14:07:02 GMT
The Apache Way of having source release bundles is important and we follow
it. But we can download content for CLI from wherever we please. We're
currently downloading the libs from npm, getting the code from npm and the
libs from Github doesn't change much.

This is $HOME, as in /Users/me or /home/me or C:\Users\me\Application Data
or whatever it is on Windows? SGTM.

The before hook should have the ability to substitute their own copy of the
libs from somewhere else, ideally a git URL/directory and revision. This
way it would be trivial to point CLI at master versions of platforms.


On Fri, Jun 7, 2013 at 3:58 AM, Filip Maj <> wrote:

> One of the last key outstanding tasks for the CLI is lazy loading of
> platform libraries [1].
> I want to start tackling that tomorrow. I have a few points/questions to
> bring up and wanted to share my vision of the implementation, give folks
> an opportunity to comment.
> - where to download the source from? seems
> to have all of our releases, but each zip file contains ALL platforms, not
> individual ones., on the other hand, DOES offer per-platform
> downloads, for e.g. [2].
> - storing the location in HOME/.cordova-libs cool with people? I want to
> avoid naming the folder .cordova since that is already used on a
> per-project basis to identify the root of a cordova-cli-created project (a
> la git).
> - I am thinking of exposing hooks/events for this (before_library_download
> and after_library_download is my initial thought, which get passed in
> platform and version as event parameters/data).
> Comments/suggestions welcome. Thanks!
> Fil
> [1]
> [2]

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