cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Puneet Kaur <puneet.gk...@gmail.com>
Subject Re: list of valid platforms for cordova platform add command
Date Wed, 11 Jun 2014 15:05:04 GMT
Thanks a lot Mark :-)


On Wed, Jun 11, 2014 at 8:29 PM, Mark Koudritsky <kamrik@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@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@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@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
>>> >  ?
>>> >
>>>
>>
>>
>

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