cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naik, Archana" <>
Subject Re: cordova-lib split out
Date Fri, 02 May 2014 19:36:29 GMT
Cool. I just checked amazon-fireos and looks like there are no scripts
referring to cordova/something. So all is well. :)


On 5/2/14 12:33 PM, "Mark Koudritsky" <> wrote:

>On Fri, May 2, 2014 at 3:12 PM, Naik, Archana <> wrote:
>> Thanks Mark for sending this out. I just noticed these changes as I need
>> to fix something in amazon_fireos_parser.js. :)
>> Question: re: code that does require('cordova/something') will break.
>> Platform scripts use 'cordova/something' and I guess we will have to
>> care of those. Is this change going in 3.5.0?
>Hi Archana,
>Which platform scripts are you referring to?
>At least the scripts in cordova-ios and cordova-android don't seem to
>require() anything from within cordova. "cordova build" works ok for iOS
>and Android.
>All the code that lived in cordova-cli and cordova-plugman repos was
>The only place where I saw this problem was in
>cca<> where
>it does
>var platforms = require('cordova/platforms')
>This would need to be changed to
>var cordova_lib = require('cordova-lib');
>var platforms = cordova_lib.cordova_platforms;
>Note that
>is a temporary shim, until we move to platforms list/object which will be
>common to plugman and ex cordova-cli code.

View raw message