You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Puneet Kaur <pu...@gmail.com> on 2014/06/11 05:30:30 UTC

developing on cordova-cli

Hey,

I wish to develop on cordova-cli.We wish to work on making commands
"cordova platform add sugar" and "cordova build sugar" work.

So for that I have git cloned the repo from
https://github.com/apache/cordova-cli and
https://github.com/apache/cordova-lib

and followed steps mentioned here :
https://github.com/apache/cordova-lib#setup


*but how what do I need to do so that whatever changes I make in my local
copy(in the directory where I have git cloned the repository) are reflected
when I issue these commands in my terminal ?*

Re: developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
Jesse,

I am unable to it that way,am I missing on something ?

Please let me know

Thanks,
Puneet



On Wed, Jun 11, 2014 at 1:43 PM, Puneet Kaur <pu...@gmail.com> wrote:

> can someone from firefox please give an overview of how they added the cli
> to their platform ?
>
>
> On Wed, Jun 11, 2014 at 12:31 PM, Puneet Kaur <pu...@gmail.com>
> wrote:
>
>> Thanks,I did that .. but *after making changes in the js files* in the
>> cordova-lib directory , the one I have cloned,* I cant see them appear
>> on the terminal,*
>>
>>
>> for example - I changed the line for error if no platform is added to *'CHANGED
>> - No platform specified. Please specify a platform to add. See
>> `'+cordova_util.binname+' platform list`.' [line 60 platform.js]*
>>
>>
>> but I cant see the above line when I dont give a platform's name, still
>> the same line is reflected on terminal - *No platform specified. Please
>> specify a platform to add. See "platform list".*
>>
>>
>> On Wed, Jun 11, 2014 at 11:10 AM, Jesse <pu...@gmail.com> wrote:
>>
>>> This is well covered in the readme here:
>>> https://github.com/apache/cordova-lib/tree/master/cordova-lib
>>>
>>>
>>>    - Clone this repository onto your local machine. git clone
>>>    https://git-wip-us.apache.org/repos/asf/cordova-lib.git
>>>    - In terminal, navigate to the inner cordova-lib directory. cd
>>>    cordova-lib/cordova-lib
>>>    - Install dependencies and npm-link npm install && npm link
>>>    - Navigate to CLI and Plugman directories and link cordova-lib cd
>>>    ../../cordova-cli && npm link cordova-lib && npm installcd
>>>    ../../cordova-plugman && npm link cordova-lib && npm install
>>>
>>>
>>> @purplecabbage
>>> risingj.com
>>>
>>>
>>> On Tue, Jun 10, 2014 at 9:30 PM, Puneet Kaur <pu...@gmail.com>
>>> wrote:
>>>
>>> > when developing on cordova-cli .. do you install it again and again
>>> when
>>> > you make changes to the code or there's some better method of testing
>>> our
>>> > code for cordova-cli ??
>>> >
>>> >
>>> > On Wed, Jun 11, 2014 at 9:00 AM, Puneet Kaur <pu...@gmail.com>
>>> > wrote:
>>> >
>>> > > Hey,
>>> > >
>>> > > I wish to develop on cordova-cli.We wish to work on making commands
>>> > > "cordova platform add sugar" and "cordova build sugar" work.
>>> > >
>>> > > So for that I have git cloned the repo from
>>> > > https://github.com/apache/cordova-cli and
>>> > > https://github.com/apache/cordova-lib
>>> > >
>>> > > and followed steps mentioned here :
>>> > > https://github.com/apache/cordova-lib#setup
>>> > >
>>> > >
>>> > > *but how what do I need to do so that whatever changes I make in my
>>> local
>>> > > copy(in the directory where I have git cloned the repository) are
>>> > reflected
>>> > > when I issue these commands in my terminal ?*
>>> > >
>>> >
>>>
>>
>>
>

Re: developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
can someone from firefox please give an overview of how they added the cli
to their platform ?


On Wed, Jun 11, 2014 at 12:31 PM, Puneet Kaur <pu...@gmail.com>
wrote:

> Thanks,I did that .. but *after making changes in the js files* in the
> cordova-lib directory , the one I have cloned,* I cant see them appear on
> the terminal,*
>
>
> for example - I changed the line for error if no platform is added to *'CHANGED
> - No platform specified. Please specify a platform to add. See
> `'+cordova_util.binname+' platform list`.' [line 60 platform.js]*
>
>
> but I cant see the above line when I dont give a platform's name, still
> the same line is reflected on terminal - *No platform specified. Please
> specify a platform to add. See "platform list".*
>
>
> On Wed, Jun 11, 2014 at 11:10 AM, Jesse <pu...@gmail.com> wrote:
>
>> This is well covered in the readme here:
>> https://github.com/apache/cordova-lib/tree/master/cordova-lib
>>
>>
>>    - Clone this repository onto your local machine. git clone
>>    https://git-wip-us.apache.org/repos/asf/cordova-lib.git
>>    - In terminal, navigate to the inner cordova-lib directory. cd
>>    cordova-lib/cordova-lib
>>    - Install dependencies and npm-link npm install && npm link
>>    - Navigate to CLI and Plugman directories and link cordova-lib cd
>>    ../../cordova-cli && npm link cordova-lib && npm installcd
>>    ../../cordova-plugman && npm link cordova-lib && npm install
>>
>>
>> @purplecabbage
>> risingj.com
>>
>>
>> On Tue, Jun 10, 2014 at 9:30 PM, Puneet Kaur <pu...@gmail.com>
>> wrote:
>>
>> > when developing on cordova-cli .. do you install it again and again when
>> > you make changes to the code or there's some better method of testing
>> our
>> > code for cordova-cli ??
>> >
>> >
>> > On Wed, Jun 11, 2014 at 9:00 AM, Puneet Kaur <pu...@gmail.com>
>> > wrote:
>> >
>> > > Hey,
>> > >
>> > > I wish to develop on cordova-cli.We wish to work on making commands
>> > > "cordova platform add sugar" and "cordova build sugar" work.
>> > >
>> > > So for that I have git cloned the repo from
>> > > https://github.com/apache/cordova-cli and
>> > > https://github.com/apache/cordova-lib
>> > >
>> > > and followed steps mentioned here :
>> > > https://github.com/apache/cordova-lib#setup
>> > >
>> > >
>> > > *but how what do I need to do so that whatever changes I make in my
>> local
>> > > copy(in the directory where I have git cloned the repository) are
>> > reflected
>> > > when I issue these commands in my terminal ?*
>> > >
>> >
>>
>
>

Re: developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
Thanks,I did that .. but *after making changes in the js files* in the
cordova-lib directory , the one I have cloned,* I cant see them appear on
the terminal,*


for example - I changed the line for error if no platform is added to *'CHANGED
- No platform specified. Please specify a platform to add. See
`'+cordova_util.binname+' platform list`.' [line 60 platform.js]*


but I cant see the above line when I dont give a platform's name, still the
same line is reflected on terminal - *No platform specified. Please specify
a platform to add. See "platform list".*


On Wed, Jun 11, 2014 at 11:10 AM, Jesse <pu...@gmail.com> wrote:

> This is well covered in the readme here:
> https://github.com/apache/cordova-lib/tree/master/cordova-lib
>
>
>    - Clone this repository onto your local machine. git clone
>    https://git-wip-us.apache.org/repos/asf/cordova-lib.git
>    - In terminal, navigate to the inner cordova-lib directory. cd
>    cordova-lib/cordova-lib
>    - Install dependencies and npm-link npm install && npm link
>    - Navigate to CLI and Plugman directories and link cordova-lib cd
>    ../../cordova-cli && npm link cordova-lib && npm installcd
>    ../../cordova-plugman && npm link cordova-lib && npm install
>
>
> @purplecabbage
> risingj.com
>
>
> On Tue, Jun 10, 2014 at 9:30 PM, Puneet Kaur <pu...@gmail.com>
> wrote:
>
> > when developing on cordova-cli .. do you install it again and again when
> > you make changes to the code or there's some better method of testing our
> > code for cordova-cli ??
> >
> >
> > On Wed, Jun 11, 2014 at 9:00 AM, Puneet Kaur <pu...@gmail.com>
> > wrote:
> >
> > > Hey,
> > >
> > > I wish to develop on cordova-cli.We wish to work on making commands
> > > "cordova platform add sugar" and "cordova build sugar" work.
> > >
> > > So for that I have git cloned the repo from
> > > https://github.com/apache/cordova-cli and
> > > https://github.com/apache/cordova-lib
> > >
> > > and followed steps mentioned here :
> > > https://github.com/apache/cordova-lib#setup
> > >
> > >
> > > *but how what do I need to do so that whatever changes I make in my
> local
> > > copy(in the directory where I have git cloned the repository) are
> > reflected
> > > when I issue these commands in my terminal ?*
> > >
> >
>

Re: developing on cordova-cli

Posted by Jesse <pu...@gmail.com>.
This is well covered in the readme here:
https://github.com/apache/cordova-lib/tree/master/cordova-lib


   - Clone this repository onto your local machine. git clone
   https://git-wip-us.apache.org/repos/asf/cordova-lib.git
   - In terminal, navigate to the inner cordova-lib directory. cd
   cordova-lib/cordova-lib
   - Install dependencies and npm-link npm install && npm link
   - Navigate to CLI and Plugman directories and link cordova-lib cd
   ../../cordova-cli && npm link cordova-lib && npm installcd
   ../../cordova-plugman && npm link cordova-lib && npm install


@purplecabbage
risingj.com


On Tue, Jun 10, 2014 at 9:30 PM, Puneet Kaur <pu...@gmail.com> wrote:

> when developing on cordova-cli .. do you install it again and again when
> you make changes to the code or there's some better method of testing our
> code for cordova-cli ??
>
>
> On Wed, Jun 11, 2014 at 9:00 AM, Puneet Kaur <pu...@gmail.com>
> wrote:
>
> > Hey,
> >
> > I wish to develop on cordova-cli.We wish to work on making commands
> > "cordova platform add sugar" and "cordova build sugar" work.
> >
> > So for that I have git cloned the repo from
> > https://github.com/apache/cordova-cli and
> > https://github.com/apache/cordova-lib
> >
> > and followed steps mentioned here :
> > https://github.com/apache/cordova-lib#setup
> >
> >
> > *but how what do I need to do so that whatever changes I make in my local
> > copy(in the directory where I have git cloned the repository) are
> reflected
> > when I issue these commands in my terminal ?*
> >
>

Re: developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
when developing on cordova-cli .. do you install it again and again when
you make changes to the code or there's some better method of testing our
code for cordova-cli ??


On Wed, Jun 11, 2014 at 9:00 AM, Puneet Kaur <pu...@gmail.com> wrote:

> Hey,
>
> I wish to develop on cordova-cli.We wish to work on making commands
> "cordova platform add sugar" and "cordova build sugar" work.
>
> So for that I have git cloned the repo from
> https://github.com/apache/cordova-cli and
> https://github.com/apache/cordova-lib
>
> and followed steps mentioned here :
> https://github.com/apache/cordova-lib#setup
>
>
> *but how what do I need to do so that whatever changes I make in my local
> copy(in the directory where I have git cloned the repository) are reflected
> when I issue these commands in my terminal ?*
>

Re: [Sugar-devel] developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
Thanks a lot !

was looking for a answer like that.

It would surely help :-)


On Wed, Jun 11, 2014 at 8:25 PM, Michal Mocny <mm...@chromium.org> wrote:

> You say you followed the steps, but it sounds like something is not right.
>  (Also, this isn't a cordova issue per-se, its a lesson in node development
> and managing multiple local package dependencies.  You should read about
> npm dependencies and npm link if you aren't sure what its doing and how to
> confirm everything is right.)
>
>
> At the end of the day, (1) your local cordova-lib and cordova-cli should
> be linked globally, then (2) from your local cordova-cli you should link to
> the global cordova-lib to complete the link.
>
> In other words, something like:
>
> GLOBAL_NPM/lib/node_modiles/cordova-cli -> LOCAL_CORDOVA/cordova-cli  #
> Global cli should point to your local clone
> GLOBAL_NPM/lib/node_modiles/cordova-lib ->
> LOCAL_CORDOVA/cordova-lib/cordova-lib # Global lib should point to your
> local clone, NOTE the subdirectory since
> LOCAL_CORDOVA/cordova-cli/node_modules/cordova-lib ->
> GLOBAL_NPM/lib/node_modiles/cordova-lib # Local cli dependency on lib
> should point to your global link
>
> The best way to test is:
> 1) create a temporary file inside cordova-lib/src
> 2) go to local cordova-cli/node_modules/cordova-lib/src and make sure its
> there.  If its not, something has gone wrong.
> 3) also make sure your global cordova-cli is linked to your local
>
> -Michal
>
>
> On Wed, Jun 11, 2014 at 10:07 AM, Gonzalo Odiard <go...@sugarlabs.org>
> wrote:
>
>> Looks like a question for the cordova guys....
>>
>>
>> On Wed, Jun 11, 2014 at 10:53 AM, Puneet Kaur <pu...@gmail.com>
>> wrote:
>>
>> > I have cloned the git repository from
>> > https://github.com/apache/cordova-lib
>> >
>> > and then made changes in the code in my local directory.
>> >
>> > But these changes dont reflect in the cordova commands :-(
>> >
>> > I followed the steps mentioned here :
>> > https://github.com/apache/cordova-lib#setup but still cant get see my
>> > changes when I issue the cordova commands :(
>> >
>> >
>> > On Wed, Jun 11, 2014 at 7:08 PM, Gonzalo Odiard <go...@sugarlabs.org>
>> > wrote:
>> >
>> >> I can't understand the question. Could you rephrase it?
>> >>
>> >> Gonzalo
>> >>
>> >>
>> >> On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <pu...@gmail.com>
>> >> wrote:
>> >>
>> >>> Hey,
>> >>>
>> >>> I wish to develop on cordova-cli.We wish to work on making commands
>> >>> "cordova platform add sugar" and "cordova build sugar" work.
>> >>>
>> >>> So for that I have git cloned the repo from
>> >>> https://github.com/apache/cordova-cli and
>> >>> https://github.com/apache/cordova-lib
>> >>>
>> >>> and followed steps mentioned here :
>> >>> https://github.com/apache/cordova-lib#setup
>> >>>
>> >>>
>> >>> *but how what do I need to do so that whatever changes I make in my
>>
>> >>> local copy(in the directory where I have git cloned the repository)
>> are
>> >>> reflected when I issue these commands in my terminal ?*
>>
>> >>>
>> >>> _______________________________________________
>> >>> Sugar-devel mailing list
>> >>> Sugar-devel@lists.sugarlabs.org
>> >>> http://lists.sugarlabs.org/listinfo/sugar-devel
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> Gonzalo Odiard
>> >>
>> >> SugarLabs - Software for children learning
>> >>
>> >
>> >
>>
>>
>> --
>> Gonzalo Odiard
>>
>> SugarLabs - Software for children learning
>>
>
>

Re: [Sugar-devel] developing on cordova-cli

Posted by Michal Mocny <mm...@chromium.org>.
You say you followed the steps, but it sounds like something is not right.
 (Also, this isn't a cordova issue per-se, its a lesson in node development
and managing multiple local package dependencies.  You should read about
npm dependencies and npm link if you aren't sure what its doing and how to
confirm everything is right.)


At the end of the day, (1) your local cordova-lib and cordova-cli should be
linked globally, then (2) from your local cordova-cli you should link to
the global cordova-lib to complete the link.

In other words, something like:

GLOBAL_NPM/lib/node_modiles/cordova-cli -> LOCAL_CORDOVA/cordova-cli  #
Global cli should point to your local clone
GLOBAL_NPM/lib/node_modiles/cordova-lib ->
LOCAL_CORDOVA/cordova-lib/cordova-lib # Global lib should point to your
local clone, NOTE the subdirectory since
LOCAL_CORDOVA/cordova-cli/node_modules/cordova-lib ->
GLOBAL_NPM/lib/node_modiles/cordova-lib # Local cli dependency on lib
should point to your global link

The best way to test is:
1) create a temporary file inside cordova-lib/src
2) go to local cordova-cli/node_modules/cordova-lib/src and make sure its
there.  If its not, something has gone wrong.
3) also make sure your global cordova-cli is linked to your local

-Michal


On Wed, Jun 11, 2014 at 10:07 AM, Gonzalo Odiard <go...@sugarlabs.org>
wrote:

> Looks like a question for the cordova guys....
>
>
> On Wed, Jun 11, 2014 at 10:53 AM, Puneet Kaur <pu...@gmail.com>
> wrote:
>
> > I have cloned the git repository from
> > https://github.com/apache/cordova-lib
> >
> > and then made changes in the code in my local directory.
> >
> > But these changes dont reflect in the cordova commands :-(
> >
> > I followed the steps mentioned here :
> > https://github.com/apache/cordova-lib#setup but still cant get see my
> > changes when I issue the cordova commands :(
> >
> >
> > On Wed, Jun 11, 2014 at 7:08 PM, Gonzalo Odiard <go...@sugarlabs.org>
> > wrote:
> >
> >> I can't understand the question. Could you rephrase it?
> >>
> >> Gonzalo
> >>
> >>
> >> On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <pu...@gmail.com>
> >> wrote:
> >>
> >>> Hey,
> >>>
> >>> I wish to develop on cordova-cli.We wish to work on making commands
> >>> "cordova platform add sugar" and "cordova build sugar" work.
> >>>
> >>> So for that I have git cloned the repo from
> >>> https://github.com/apache/cordova-cli and
> >>> https://github.com/apache/cordova-lib
> >>>
> >>> and followed steps mentioned here :
> >>> https://github.com/apache/cordova-lib#setup
> >>>
> >>>
> >>> *but how what do I need to do so that whatever changes I make in my
> >>> local copy(in the directory where I have git cloned the repository) are
> >>> reflected when I issue these commands in my terminal ?*
> >>>
> >>> _______________________________________________
> >>> Sugar-devel mailing list
> >>> Sugar-devel@lists.sugarlabs.org
> >>> http://lists.sugarlabs.org/listinfo/sugar-devel
> >>>
> >>>
> >>
> >>
> >> --
> >> Gonzalo Odiard
> >>
> >> SugarLabs - Software for children learning
> >>
> >
> >
>
>
> --
> Gonzalo Odiard
>
> SugarLabs - Software for children learning
>

Re: [Sugar-devel] developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
Hey,

I got through :-)

Thanks to all those who replied on this thread :)




Puneet


On Fri, Jun 13, 2014 at 4:21 PM, Puneet Kaur <pu...@gmail.com> wrote:

> here you can see the linking
>
> /usr/local/lib/node_modules/cordova-lib -> /home/dr/sugar
> cordova/cordova-lib/cordova-lib
>
>
> /home/dr/sugar cordova/cordova-cli/node_modules/cordova-lib ->
> /usr/local/lib/node_modules/cordova-lib -> /home/dr/sugar
> cordova/cordova-lib/cordova-lib
>
>
> /usr/local/lib/node_modules/cordova -> /home/dr/sugar cordova/cordova-cli
>
> all these links exist ^
>
> but not sure why I am not able to make/see the changes done in code in
> these directories.
>
>
>
> On Fri, Jun 13, 2014 at 2:47 PM, Puneet Kaur <pu...@gmail.com>
> wrote:
>
>> So I made the changes as recommended ..
>>
>> npm link to make a symbolic link between the global directory and local
>> directory
>>
>> also linked the cordova-lib in cordova-cli/node_modules to the local
>> cordova-lib
>>
>> Now I can see the changes I make in my local cordova-lib being reflected
>> in the global cordova-lib directory and the one in cordova-cli too.
>>
>>
>> But still I don't know why my change to a simple line here
>> <https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/platform.js#L59> is
>> not getting reflected when in the command line.I changed the line just to
>> see if I can see the change in command when I give the cordova platform add
>> command with no arguments , but I dont see my changed line as output, its
>> still same.
>>
>> So just wished to ask what development environment do you guys use for
>> developing cordova-cli ?
>>
>>
>> On Wed, Jun 11, 2014 at 11:35 PM, Puneet Kaur <pu...@gmail.com>
>> wrote:
>>
>>> Thanks archana :-)
>>>
>>>
>>> On Wed, Jun 11, 2014 at 11:20 PM, Naik, Archana <na...@lab126.com>
>>> wrote:
>>>
>>>> Hi, Puneet
>>>>
>>>> One quick way of testing your changes to replace these files on global
>>>> install of cordova-lib. On Mac, its
>>>> /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/. You might
>>>> have to change the permissions using sudo on these folders to make any
>>>> changes. Once you test it and looks ok then you can submit the changes
>>>> to
>>>> github.
>>>>
>>>> Archana
>>>>
>>>> On 6/11/14 7:07 AM, "Gonzalo Odiard" <go...@sugarlabs.org> wrote:
>>>>
>>>> >Looks like a question for the cordova guys....
>>>> >
>>>> >
>>>> >On Wed, Jun 11, 2014 at 10:53 AM, Puneet Kaur <pu...@gmail.com>
>>>> >wrote:
>>>> >
>>>> >> I have cloned the git repository from
>>>> >> https://github.com/apache/cordova-lib
>>>> >>
>>>> >> and then made changes in the code in my local directory.
>>>> >>
>>>> >> But these changes dont reflect in the cordova commands :-(
>>>> >>
>>>> >> I followed the steps mentioned here :
>>>> >> https://github.com/apache/cordova-lib#setup but still cant get see
>>>> my
>>>> >> changes when I issue the cordova commands :(
>>>> >>
>>>> >>
>>>> >> On Wed, Jun 11, 2014 at 7:08 PM, Gonzalo Odiard <
>>>> godiard@sugarlabs.org>
>>>> >> wrote:
>>>> >>
>>>> >>> I can't understand the question. Could you rephrase it?
>>>> >>>
>>>> >>> Gonzalo
>>>> >>>
>>>> >>>
>>>> >>> On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <
>>>> puneet.gkaur@gmail.com>
>>>> >>> wrote:
>>>> >>>
>>>> >>>> Hey,
>>>> >>>>
>>>> >>>> I wish to develop on cordova-cli.We wish to work on making commands
>>>> >>>> "cordova platform add sugar" and "cordova build sugar" work.
>>>> >>>>
>>>> >>>> So for that I have git cloned the repo from
>>>> >>>> https://github.com/apache/cordova-cli and
>>>> >>>> https://github.com/apache/cordova-lib
>>>> >>>>
>>>> >>>> and followed steps mentioned here :
>>>> >>>> https://github.com/apache/cordova-lib#setup
>>>> >>>>
>>>> >>>>
>>>> >>>> *but how what do I need to do so that whatever changes I make in my
>>>> >>>> local copy(in the directory where I have git cloned the repository)
>>>> >>>>are
>>>> >>>> reflected when I issue these commands in my terminal ?*
>>>> >>>>
>>>> >>>> _______________________________________________
>>>> >>>> Sugar-devel mailing list
>>>> >>>> Sugar-devel@lists.sugarlabs.org
>>>> >>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>> >>>>
>>>> >>>>
>>>> >>>
>>>> >>>
>>>> >>> --
>>>> >>> Gonzalo Odiard
>>>> >>>
>>>> >>> SugarLabs - Software for children learning
>>>> >>>
>>>> >>
>>>> >>
>>>> >
>>>> >
>>>> >--
>>>> >Gonzalo Odiard
>>>> >
>>>> >SugarLabs - Software for children learning
>>>>
>>>>
>>>
>>
>

Re: [Sugar-devel] developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
here you can see the linking

/usr/local/lib/node_modules/cordova-lib -> /home/dr/sugar
cordova/cordova-lib/cordova-lib


/home/dr/sugar cordova/cordova-cli/node_modules/cordova-lib ->
/usr/local/lib/node_modules/cordova-lib -> /home/dr/sugar
cordova/cordova-lib/cordova-lib


/usr/local/lib/node_modules/cordova -> /home/dr/sugar cordova/cordova-cli

all these links exist ^

but not sure why I am not able to make/see the changes done in code in
these directories.



On Fri, Jun 13, 2014 at 2:47 PM, Puneet Kaur <pu...@gmail.com> wrote:

> So I made the changes as recommended ..
>
> npm link to make a symbolic link between the global directory and local
> directory
>
> also linked the cordova-lib in cordova-cli/node_modules to the local
> cordova-lib
>
> Now I can see the changes I make in my local cordova-lib being reflected
> in the global cordova-lib directory and the one in cordova-cli too.
>
>
> But still I don't know why my change to a simple line here
> <https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/platform.js#L59> is
> not getting reflected when in the command line.I changed the line just to
> see if I can see the change in command when I give the cordova platform add
> command with no arguments , but I dont see my changed line as output, its
> still same.
>
> So just wished to ask what development environment do you guys use for
> developing cordova-cli ?
>
>
> On Wed, Jun 11, 2014 at 11:35 PM, Puneet Kaur <pu...@gmail.com>
> wrote:
>
>> Thanks archana :-)
>>
>>
>> On Wed, Jun 11, 2014 at 11:20 PM, Naik, Archana <na...@lab126.com> wrote:
>>
>>> Hi, Puneet
>>>
>>> One quick way of testing your changes to replace these files on global
>>> install of cordova-lib. On Mac, its
>>> /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/. You might
>>> have to change the permissions using sudo on these folders to make any
>>> changes. Once you test it and looks ok then you can submit the changes to
>>> github.
>>>
>>> Archana
>>>
>>> On 6/11/14 7:07 AM, "Gonzalo Odiard" <go...@sugarlabs.org> wrote:
>>>
>>> >Looks like a question for the cordova guys....
>>> >
>>> >
>>> >On Wed, Jun 11, 2014 at 10:53 AM, Puneet Kaur <pu...@gmail.com>
>>> >wrote:
>>> >
>>> >> I have cloned the git repository from
>>> >> https://github.com/apache/cordova-lib
>>> >>
>>> >> and then made changes in the code in my local directory.
>>> >>
>>> >> But these changes dont reflect in the cordova commands :-(
>>> >>
>>> >> I followed the steps mentioned here :
>>> >> https://github.com/apache/cordova-lib#setup but still cant get see my
>>> >> changes when I issue the cordova commands :(
>>> >>
>>> >>
>>> >> On Wed, Jun 11, 2014 at 7:08 PM, Gonzalo Odiard <
>>> godiard@sugarlabs.org>
>>> >> wrote:
>>> >>
>>> >>> I can't understand the question. Could you rephrase it?
>>> >>>
>>> >>> Gonzalo
>>> >>>
>>> >>>
>>> >>> On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <
>>> puneet.gkaur@gmail.com>
>>> >>> wrote:
>>> >>>
>>> >>>> Hey,
>>> >>>>
>>> >>>> I wish to develop on cordova-cli.We wish to work on making commands
>>> >>>> "cordova platform add sugar" and "cordova build sugar" work.
>>> >>>>
>>> >>>> So for that I have git cloned the repo from
>>> >>>> https://github.com/apache/cordova-cli and
>>> >>>> https://github.com/apache/cordova-lib
>>> >>>>
>>> >>>> and followed steps mentioned here :
>>> >>>> https://github.com/apache/cordova-lib#setup
>>> >>>>
>>> >>>>
>>> >>>> *but how what do I need to do so that whatever changes I make in my
>>> >>>> local copy(in the directory where I have git cloned the repository)
>>> >>>>are
>>> >>>> reflected when I issue these commands in my terminal ?*
>>> >>>>
>>> >>>> _______________________________________________
>>> >>>> Sugar-devel mailing list
>>> >>>> Sugar-devel@lists.sugarlabs.org
>>> >>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>> >>>>
>>> >>>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>> Gonzalo Odiard
>>> >>>
>>> >>> SugarLabs - Software for children learning
>>> >>>
>>> >>
>>> >>
>>> >
>>> >
>>> >--
>>> >Gonzalo Odiard
>>> >
>>> >SugarLabs - Software for children learning
>>>
>>>
>>
>

Re: [Sugar-devel] developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
So I made the changes as recommended ..

npm link to make a symbolic link between the global directory and local
directory

also linked the cordova-lib in cordova-cli/node_modules to the local
cordova-lib

Now I can see the changes I make in my local cordova-lib being reflected in
the global cordova-lib directory and the one in cordova-cli too.


But still I don't know why my change to a simple line here
<https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/platform.js#L59>
is
not getting reflected when in the command line.I changed the line just to
see if I can see the change in command when I give the cordova platform add
command with no arguments , but I dont see my changed line as output, its
still same.

So just wished to ask what development environment do you guys use for
developing cordova-cli ?


On Wed, Jun 11, 2014 at 11:35 PM, Puneet Kaur <pu...@gmail.com>
wrote:

> Thanks archana :-)
>
>
> On Wed, Jun 11, 2014 at 11:20 PM, Naik, Archana <na...@lab126.com> wrote:
>
>> Hi, Puneet
>>
>> One quick way of testing your changes to replace these files on global
>> install of cordova-lib. On Mac, its
>> /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/. You might
>> have to change the permissions using sudo on these folders to make any
>> changes. Once you test it and looks ok then you can submit the changes to
>> github.
>>
>> Archana
>>
>> On 6/11/14 7:07 AM, "Gonzalo Odiard" <go...@sugarlabs.org> wrote:
>>
>> >Looks like a question for the cordova guys....
>> >
>> >
>> >On Wed, Jun 11, 2014 at 10:53 AM, Puneet Kaur <pu...@gmail.com>
>> >wrote:
>> >
>> >> I have cloned the git repository from
>> >> https://github.com/apache/cordova-lib
>> >>
>> >> and then made changes in the code in my local directory.
>> >>
>> >> But these changes dont reflect in the cordova commands :-(
>> >>
>> >> I followed the steps mentioned here :
>> >> https://github.com/apache/cordova-lib#setup but still cant get see my
>> >> changes when I issue the cordova commands :(
>> >>
>> >>
>> >> On Wed, Jun 11, 2014 at 7:08 PM, Gonzalo Odiard <godiard@sugarlabs.org
>> >
>> >> wrote:
>> >>
>> >>> I can't understand the question. Could you rephrase it?
>> >>>
>> >>> Gonzalo
>> >>>
>> >>>
>> >>> On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <puneet.gkaur@gmail.com
>> >
>> >>> wrote:
>> >>>
>> >>>> Hey,
>> >>>>
>> >>>> I wish to develop on cordova-cli.We wish to work on making commands
>> >>>> "cordova platform add sugar" and "cordova build sugar" work.
>> >>>>
>> >>>> So for that I have git cloned the repo from
>> >>>> https://github.com/apache/cordova-cli and
>> >>>> https://github.com/apache/cordova-lib
>> >>>>
>> >>>> and followed steps mentioned here :
>> >>>> https://github.com/apache/cordova-lib#setup
>> >>>>
>> >>>>
>> >>>> *but how what do I need to do so that whatever changes I make in my
>> >>>> local copy(in the directory where I have git cloned the repository)
>> >>>>are
>> >>>> reflected when I issue these commands in my terminal ?*
>> >>>>
>> >>>> _______________________________________________
>> >>>> Sugar-devel mailing list
>> >>>> Sugar-devel@lists.sugarlabs.org
>> >>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>> --
>> >>> Gonzalo Odiard
>> >>>
>> >>> SugarLabs - Software for children learning
>> >>>
>> >>
>> >>
>> >
>> >
>> >--
>> >Gonzalo Odiard
>> >
>> >SugarLabs - Software for children learning
>>
>>
>

Re: [Sugar-devel] developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
Thanks archana :-)


On Wed, Jun 11, 2014 at 11:20 PM, Naik, Archana <na...@lab126.com> wrote:

> Hi, Puneet
>
> One quick way of testing your changes to replace these files on global
> install of cordova-lib. On Mac, its
> /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/. You might
> have to change the permissions using sudo on these folders to make any
> changes. Once you test it and looks ok then you can submit the changes to
> github.
>
> Archana
>
> On 6/11/14 7:07 AM, "Gonzalo Odiard" <go...@sugarlabs.org> wrote:
>
> >Looks like a question for the cordova guys....
> >
> >
> >On Wed, Jun 11, 2014 at 10:53 AM, Puneet Kaur <pu...@gmail.com>
> >wrote:
> >
> >> I have cloned the git repository from
> >> https://github.com/apache/cordova-lib
> >>
> >> and then made changes in the code in my local directory.
> >>
> >> But these changes dont reflect in the cordova commands :-(
> >>
> >> I followed the steps mentioned here :
> >> https://github.com/apache/cordova-lib#setup but still cant get see my
> >> changes when I issue the cordova commands :(
> >>
> >>
> >> On Wed, Jun 11, 2014 at 7:08 PM, Gonzalo Odiard <go...@sugarlabs.org>
> >> wrote:
> >>
> >>> I can't understand the question. Could you rephrase it?
> >>>
> >>> Gonzalo
> >>>
> >>>
> >>> On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <pu...@gmail.com>
> >>> wrote:
> >>>
> >>>> Hey,
> >>>>
> >>>> I wish to develop on cordova-cli.We wish to work on making commands
> >>>> "cordova platform add sugar" and "cordova build sugar" work.
> >>>>
> >>>> So for that I have git cloned the repo from
> >>>> https://github.com/apache/cordova-cli and
> >>>> https://github.com/apache/cordova-lib
> >>>>
> >>>> and followed steps mentioned here :
> >>>> https://github.com/apache/cordova-lib#setup
> >>>>
> >>>>
> >>>> *but how what do I need to do so that whatever changes I make in my
> >>>> local copy(in the directory where I have git cloned the repository)
> >>>>are
> >>>> reflected when I issue these commands in my terminal ?*
> >>>>
> >>>> _______________________________________________
> >>>> Sugar-devel mailing list
> >>>> Sugar-devel@lists.sugarlabs.org
> >>>> http://lists.sugarlabs.org/listinfo/sugar-devel
> >>>>
> >>>>
> >>>
> >>>
> >>> --
> >>> Gonzalo Odiard
> >>>
> >>> SugarLabs - Software for children learning
> >>>
> >>
> >>
> >
> >
> >--
> >Gonzalo Odiard
> >
> >SugarLabs - Software for children learning
>
>

Re: [Sugar-devel] developing on cordova-cli

Posted by "Naik, Archana" <na...@lab126.com>.
Hi, Puneet

One quick way of testing your changes to replace these files on global
install of cordova-lib. On Mac, its
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/. You might
have to change the permissions using sudo on these folders to make any
changes. Once you test it and looks ok then you can submit the changes to
github.

Archana

On 6/11/14 7:07 AM, "Gonzalo Odiard" <go...@sugarlabs.org> wrote:

>Looks like a question for the cordova guys....
>
>
>On Wed, Jun 11, 2014 at 10:53 AM, Puneet Kaur <pu...@gmail.com>
>wrote:
>
>> I have cloned the git repository from
>> https://github.com/apache/cordova-lib
>>
>> and then made changes in the code in my local directory.
>>
>> But these changes dont reflect in the cordova commands :-(
>>
>> I followed the steps mentioned here :
>> https://github.com/apache/cordova-lib#setup but still cant get see my
>> changes when I issue the cordova commands :(
>>
>>
>> On Wed, Jun 11, 2014 at 7:08 PM, Gonzalo Odiard <go...@sugarlabs.org>
>> wrote:
>>
>>> I can't understand the question. Could you rephrase it?
>>>
>>> Gonzalo
>>>
>>>
>>> On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <pu...@gmail.com>
>>> wrote:
>>>
>>>> Hey,
>>>>
>>>> I wish to develop on cordova-cli.We wish to work on making commands
>>>> "cordova platform add sugar" and "cordova build sugar" work.
>>>>
>>>> So for that I have git cloned the repo from
>>>> https://github.com/apache/cordova-cli and
>>>> https://github.com/apache/cordova-lib
>>>>
>>>> and followed steps mentioned here :
>>>> https://github.com/apache/cordova-lib#setup
>>>>
>>>>
>>>> *but how what do I need to do so that whatever changes I make in my
>>>> local copy(in the directory where I have git cloned the repository)
>>>>are
>>>> reflected when I issue these commands in my terminal ?*
>>>>
>>>> _______________________________________________
>>>> Sugar-devel mailing list
>>>> Sugar-devel@lists.sugarlabs.org
>>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>>
>>>>
>>>
>>>
>>> --
>>> Gonzalo Odiard
>>>
>>> SugarLabs - Software for children learning
>>>
>>
>>
>
>
>-- 
>Gonzalo Odiard
>
>SugarLabs - Software for children learning


Re: [Sugar-devel] developing on cordova-cli

Posted by Gonzalo Odiard <go...@sugarlabs.org>.
Looks like a question for the cordova guys....


On Wed, Jun 11, 2014 at 10:53 AM, Puneet Kaur <pu...@gmail.com>
wrote:

> I have cloned the git repository from
> https://github.com/apache/cordova-lib
>
> and then made changes in the code in my local directory.
>
> But these changes dont reflect in the cordova commands :-(
>
> I followed the steps mentioned here :
> https://github.com/apache/cordova-lib#setup but still cant get see my
> changes when I issue the cordova commands :(
>
>
> On Wed, Jun 11, 2014 at 7:08 PM, Gonzalo Odiard <go...@sugarlabs.org>
> wrote:
>
>> I can't understand the question. Could you rephrase it?
>>
>> Gonzalo
>>
>>
>> On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <pu...@gmail.com>
>> wrote:
>>
>>> Hey,
>>>
>>> I wish to develop on cordova-cli.We wish to work on making commands
>>> "cordova platform add sugar" and "cordova build sugar" work.
>>>
>>> So for that I have git cloned the repo from
>>> https://github.com/apache/cordova-cli and
>>> https://github.com/apache/cordova-lib
>>>
>>> and followed steps mentioned here :
>>> https://github.com/apache/cordova-lib#setup
>>>
>>>
>>> *but how what do I need to do so that whatever changes I make in my
>>> local copy(in the directory where I have git cloned the repository) are
>>> reflected when I issue these commands in my terminal ?*
>>>
>>> _______________________________________________
>>> Sugar-devel mailing list
>>> Sugar-devel@lists.sugarlabs.org
>>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>>
>>>
>>
>>
>> --
>> Gonzalo Odiard
>>
>> SugarLabs - Software for children learning
>>
>
>


-- 
Gonzalo Odiard

SugarLabs - Software for children learning

Re: [Sugar-devel] developing on cordova-cli

Posted by Puneet Kaur <pu...@gmail.com>.
I have cloned the git repository from https://github.com/apache/cordova-lib

and then made changes in the code in my local directory.

But these changes dont reflect in the cordova commands :-(

I followed the steps mentioned here :
https://github.com/apache/cordova-lib#setup but still cant get see my
changes when I issue the cordova commands :(


On Wed, Jun 11, 2014 at 7:08 PM, Gonzalo Odiard <go...@sugarlabs.org>
wrote:

> I can't understand the question. Could you rephrase it?
>
> Gonzalo
>
>
> On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <pu...@gmail.com>
> wrote:
>
>> Hey,
>>
>> I wish to develop on cordova-cli.We wish to work on making commands
>> "cordova platform add sugar" and "cordova build sugar" work.
>>
>> So for that I have git cloned the repo from
>> https://github.com/apache/cordova-cli and
>> https://github.com/apache/cordova-lib
>>
>> and followed steps mentioned here :
>> https://github.com/apache/cordova-lib#setup
>>
>>
>> *but how what do I need to do so that whatever changes I make in my local
>> copy(in the directory where I have git cloned the repository) are reflected
>> when I issue these commands in my terminal ?*
>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel@lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>>
>
>
> --
> Gonzalo Odiard
>
> SugarLabs - Software for children learning
>

Re: [Sugar-devel] developing on cordova-cli

Posted by Gonzalo Odiard <go...@sugarlabs.org>.
I can't understand the question. Could you rephrase it?

Gonzalo


On Wed, Jun 11, 2014 at 12:30 AM, Puneet Kaur <pu...@gmail.com>
wrote:

> Hey,
>
> I wish to develop on cordova-cli.We wish to work on making commands
> "cordova platform add sugar" and "cordova build sugar" work.
>
> So for that I have git cloned the repo from
> https://github.com/apache/cordova-cli and
> https://github.com/apache/cordova-lib
>
> and followed steps mentioned here :
> https://github.com/apache/cordova-lib#setup
>
>
> *but how what do I need to do so that whatever changes I make in my local
> copy(in the directory where I have git cloned the repository) are reflected
> when I issue these commands in my terminal ?*
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel@lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>


-- 
Gonzalo Odiard

SugarLabs - Software for children learning