[Sugar-devel] list of valid platforms for cordova platform add command

Puneet Kaur puneet.gkaur at gmail.com
Wed Jun 11 11:05:04 EDT 2014


Thanks a lot Mark :-)


On Wed, Jun 11, 2014 at 8:29 PM, Mark Koudritsky <kamrik at gmail.com> wrote:

> Hi Puneet,
>
> Make sure that you are running the right copy of cordova-cl and that it
> imports the right copy of cordova-lib (the one you edit, and not some other
> copy say under cordova-cli/node_modules/). "npm link" might be helpful.
>
> Make sure you are running the latest versions (master branch from github).
>
> The places where platform names are mentioned (at least the ones I
> remember) are:
>  - src/cordova/platforms.js
>  - src/cordova/metadata/platform_name_parser.js
>  - src/plugman/platforms.js
>  - scr/plugman/platforms/platform_name.js
>
> Try running cordova with -d switch (debug mode) it will print out full
> stack trace pointing you at the right place in code.
>
>
>
> On Wed, Jun 11, 2014 at 9:57 AM, Puneet Kaur <puneet.gkaur at gmail.com>
> wrote:
>
>> ok so in my local directory , where I have cloned
>> https://github.com/apache/cordova-lib I added a new platform in
>> platforms.js and also followed the steps mentioned on
>> https://github.com/apache/cordova-lib#setup but my changes dont reflect
>> on cordova command line ..
>>
>> am I missing something ?
>>
>>
>> On Wed, Jun 11, 2014 at 6:16 PM, Ian Clelland <iclelland at chromium.org>
>> wrote:
>>
>>> Yep, you can see in the code for platform.js (same directory) that it
>>> requires 'platforms', and uses the keys from that object as the list of
>>> available platforms.
>>>
>>>
>>> On Wed, Jun 11, 2014 at 12:29 AM, Puneet Kaur <puneet.gkaur at gmail.com>
>>> wrote:
>>>
>>> >  from where does "cordova platform add <platform name>" command fetch
>>> the
>>> > platform's list ?
>>> >
>>> > is it from
>>> >
>>> >
>>> https://github.com/puneetgkaur/cordova-lib/blob/master/cordova-lib/src/cordova/platforms.js
>>> >  ?
>>> >
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140611/de6b0f3f/attachment.html>


More information about the Sugar-devel mailing list