Re: [DISCUSS] Add Ripple support to cordova-cli

2013-03-20 Thread Filip Maj
Agreed, I am summarizing my thoughts on the other thread, but as Gord
originally insinuated, these commands should lie in cordova-cli, not in
the underlying platform scripts.

On 3/20/13 10:32 AM, Michael Brooks mich...@michaelbrooks.ca wrote:


 We have a discussion going on the Cordova list running about this
 right now. The idea will be that `cordova run` will launch the app in
 Ripple. (And we're going to kill off the `cordova serve` cmd.) We'll
 keep `cordova emulate [platform]` around but I doubt ppl will use it
 much once `run` is there.


I'd like to avoid the sprawl of commands and keep it more organized and
intuitive.

Ripple is an emulator and belongs under the emulate command.

The command signature should be:
$ cordova emulate [options] platform

$ cordova emulate platform
Launches the platform's SDK emulator

$ cordova emulate platform --ripple [--port p]
Launches the platform in the Ripple emulator

Michael

On Wed, Mar 20, 2013 at 3:30 AM, Brian LeRoux b...@brian.io wrote:

 We have a discussion going on the Cordova list running about this
 right now. The idea will be that `cordova run` will launch the app in
 Ripple. (And we're going to kill off the `cordova serve` cmd.) We'll
 keep `cordova emulate [platform]` around but I doubt ppl will use it
 much once `run` is there.

 Good times! =)



 On Wed, Mar 20, 2013 at 1:12 AM, Alessandro Aprile
 aprile.alessan...@gmail.com wrote:
  +1 ripple is so simple and useful...
 
  2013/3/20 Tommy-Carlos Williams to...@devgeeks.org
 
  +1
 
  Ripple is all I use `cordova serve` for anyway :)
 
 
  On 20/03/2013, at 10:14 AM, Filip Maj f...@adobe.com wrote:
 
   I would like to see Ripple support completely replace the cordova
  server
   command - they both do the same thing but Ripple is better
tailored at
   doing the server+emulation job.
  
   On 3/9/13 12:08 PM, Brian LeRoux b...@brian.io wrote:
  
   Yes, this is awesome, think a Ripple command is good while we
suss it
   out: `cordova emulate ripple` or even just `cordova ripple`.
  
   Eventually I'd think we'd want `cordova emulate` to just default
to
   Ripple once it feels baked enough.
  
   On Thu, Mar 7, 2013 at 11:12 AM, Gord Tanner gtan...@gmail.com
 wrote:
   Hello everyone,
  
   I made a quick prototype to add support for using ripple from the
   cordova-cli [1].
  
   Currently I just added a new command called ripple that calls the
   cordova
   emulate command and then starts the ripple server to point to it.
  It
   will
   then launch the default browser (cross platform) which will
launch
 your
   App
   in ripple.  This does not require the plugin to be installed as
 Ripple
   is
   functioning as a proxy / web app.
  
   I have a question on how to handle this command:
  
   - Should this be a flag on the cordova emulate command?
  
   The Command could ether be:
  
   cordova serve platform [port] --ripple
  
   or
  
   cordova ripple platform [port]
  
   There are also a couple of todos:
  
   - Ripple needs to be published to npm and we should install it
via
  that,
   currently I am just cloning via git.  This will happen soon and
is
 just
   a
   temp hack.
   - Ripple is currently starting its own server, we should allow
the
   cordova
   emulate middleware to be usable by ripple
   - Ripple should allow us to pick the device we want to launch on.
  If I
   launch using blackberry I shouldn't have ripple emulate an
iPhone.
  
  
   [1]
  
  
 
 
https://github.com/gtanner/cordova-cli/commit/cf499d53b3e6f6631513fd5
   110c0861f8f01
  
 
 




Re: [DISCUSS] Add Ripple support to cordova-cli

2013-03-20 Thread Gord Tanner
+1 to Micheal's API.

I am going to do the initial integration in with the ripple command (just
to keep that commit isolated to some changes to serve and the new ripple
command).


On Wed, Mar 20, 2013 at 2:30 PM, Filip Maj f...@adobe.com wrote:

 Agreed, I am summarizing my thoughts on the other thread, but as Gord
 originally insinuated, these commands should lie in cordova-cli, not in
 the underlying platform scripts.

 On 3/20/13 10:32 AM, Michael Brooks mich...@michaelbrooks.ca wrote:

 
  We have a discussion going on the Cordova list running about this
  right now. The idea will be that `cordova run` will launch the app in
  Ripple. (And we're going to kill off the `cordova serve` cmd.) We'll
  keep `cordova emulate [platform]` around but I doubt ppl will use it
  much once `run` is there.
 
 
 I'd like to avoid the sprawl of commands and keep it more organized and
 intuitive.
 
 Ripple is an emulator and belongs under the emulate command.
 
 The command signature should be:
 $ cordova emulate [options] platform
 
 $ cordova emulate platform
 Launches the platform's SDK emulator
 
 $ cordova emulate platform --ripple [--port p]
 Launches the platform in the Ripple emulator
 
 Michael
 
 On Wed, Mar 20, 2013 at 3:30 AM, Brian LeRoux b...@brian.io wrote:
 
  We have a discussion going on the Cordova list running about this
  right now. The idea will be that `cordova run` will launch the app in
  Ripple. (And we're going to kill off the `cordova serve` cmd.) We'll
  keep `cordova emulate [platform]` around but I doubt ppl will use it
  much once `run` is there.
 
  Good times! =)
 
 
 
  On Wed, Mar 20, 2013 at 1:12 AM, Alessandro Aprile
  aprile.alessan...@gmail.com wrote:
   +1 ripple is so simple and useful...
  
   2013/3/20 Tommy-Carlos Williams to...@devgeeks.org
  
   +1
  
   Ripple is all I use `cordova serve` for anyway :)
  
  
   On 20/03/2013, at 10:14 AM, Filip Maj f...@adobe.com wrote:
  
I would like to see Ripple support completely replace the cordova
   server
command - they both do the same thing but Ripple is better
 tailored at
doing the server+emulation job.
   
On 3/9/13 12:08 PM, Brian LeRoux b...@brian.io wrote:
   
Yes, this is awesome, think a Ripple command is good while we
 suss it
out: `cordova emulate ripple` or even just `cordova ripple`.
   
Eventually I'd think we'd want `cordova emulate` to just default
 to
Ripple once it feels baked enough.
   
On Thu, Mar 7, 2013 at 11:12 AM, Gord Tanner gtan...@gmail.com
  wrote:
Hello everyone,
   
I made a quick prototype to add support for using ripple from the
cordova-cli [1].
   
Currently I just added a new command called ripple that calls the
cordova
emulate command and then starts the ripple server to point to it.
   It
will
then launch the default browser (cross platform) which will
 launch
  your
App
in ripple.  This does not require the plugin to be installed as
  Ripple
is
functioning as a proxy / web app.
   
I have a question on how to handle this command:
   
- Should this be a flag on the cordova emulate command?
   
The Command could ether be:
   
cordova serve platform [port] --ripple
   
or
   
cordova ripple platform [port]
   
There are also a couple of todos:
   
- Ripple needs to be published to npm and we should install it
 via
   that,
currently I am just cloning via git.  This will happen soon and
 is
  just
a
temp hack.
- Ripple is currently starting its own server, we should allow
 the
cordova
emulate middleware to be usable by ripple
- Ripple should allow us to pick the device we want to launch on.
   If I
launch using blackberry I shouldn't have ripple emulate an
 iPhone.
   
   
[1]
   
   
  
 
 
 https://github.com/gtanner/cordova-cli/commit/cf499d53b3e6f6631513fd5
110c0861f8f01
   
  
  
 




Re: [DISCUSS] Add Ripple support to cordova-cli

2013-03-19 Thread Filip Maj
I would like to see Ripple support completely replace the cordova server
command - they both do the same thing but Ripple is better tailored at
doing the server+emulation job.

On 3/9/13 12:08 PM, Brian LeRoux b...@brian.io wrote:

Yes, this is awesome, think a Ripple command is good while we suss it
out: `cordova emulate ripple` or even just `cordova ripple`.

Eventually I'd think we'd want `cordova emulate` to just default to
Ripple once it feels baked enough.

On Thu, Mar 7, 2013 at 11:12 AM, Gord Tanner gtan...@gmail.com wrote:
 Hello everyone,

 I made a quick prototype to add support for using ripple from the
 cordova-cli [1].

 Currently I just added a new command called ripple that calls the
cordova
 emulate command and then starts the ripple server to point to it.  It
will
 then launch the default browser (cross platform) which will launch your
App
 in ripple.  This does not require the plugin to be installed as Ripple
is
 functioning as a proxy / web app.

 I have a question on how to handle this command:

 - Should this be a flag on the cordova emulate command?

 The Command could ether be:

 cordova serve platform [port] --ripple

 or

 cordova ripple platform [port]

 There are also a couple of todos:

 - Ripple needs to be published to npm and we should install it via that,
 currently I am just cloning via git.  This will happen soon and is just
a
 temp hack.
 - Ripple is currently starting its own server, we should allow the
cordova
 emulate middleware to be usable by ripple
 - Ripple should allow us to pick the device we want to launch on.  If I
 launch using blackberry I shouldn't have ripple emulate an iPhone.


 [1]
 
https://github.com/gtanner/cordova-cli/commit/cf499d53b3e6f6631513fd5
110c0861f8f01



Re: [DISCUSS] Add Ripple support to cordova-cli

2013-03-19 Thread Tommy-Carlos Williams
+1

Ripple is all I use `cordova serve` for anyway :)


On 20/03/2013, at 10:14 AM, Filip Maj f...@adobe.com wrote:

 I would like to see Ripple support completely replace the cordova server
 command - they both do the same thing but Ripple is better tailored at
 doing the server+emulation job.
 
 On 3/9/13 12:08 PM, Brian LeRoux b...@brian.io wrote:
 
 Yes, this is awesome, think a Ripple command is good while we suss it
 out: `cordova emulate ripple` or even just `cordova ripple`.
 
 Eventually I'd think we'd want `cordova emulate` to just default to
 Ripple once it feels baked enough.
 
 On Thu, Mar 7, 2013 at 11:12 AM, Gord Tanner gtan...@gmail.com wrote:
 Hello everyone,
 
 I made a quick prototype to add support for using ripple from the
 cordova-cli [1].
 
 Currently I just added a new command called ripple that calls the
 cordova
 emulate command and then starts the ripple server to point to it.  It
 will
 then launch the default browser (cross platform) which will launch your
 App
 in ripple.  This does not require the plugin to be installed as Ripple
 is
 functioning as a proxy / web app.
 
 I have a question on how to handle this command:
 
 - Should this be a flag on the cordova emulate command?
 
 The Command could ether be:
 
 cordova serve platform [port] --ripple
 
 or
 
 cordova ripple platform [port]
 
 There are also a couple of todos:
 
 - Ripple needs to be published to npm and we should install it via that,
 currently I am just cloning via git.  This will happen soon and is just
 a
 temp hack.
 - Ripple is currently starting its own server, we should allow the
 cordova
 emulate middleware to be usable by ripple
 - Ripple should allow us to pick the device we want to launch on.  If I
 launch using blackberry I shouldn't have ripple emulate an iPhone.
 
 
 [1]
 
 https://github.com/gtanner/cordova-cli/commit/cf499d53b3e6f6631513fd5
 110c0861f8f01
 



Re: [DISCUSS] Add Ripple support to cordova-cli

2013-03-09 Thread Brian LeRoux
Yes, this is awesome, think a Ripple command is good while we suss it
out: `cordova emulate ripple` or even just `cordova ripple`.

Eventually I'd think we'd want `cordova emulate` to just default to
Ripple once it feels baked enough.

On Thu, Mar 7, 2013 at 11:12 AM, Gord Tanner gtan...@gmail.com wrote:
 Hello everyone,

 I made a quick prototype to add support for using ripple from the
 cordova-cli [1].

 Currently I just added a new command called ripple that calls the cordova
 emulate command and then starts the ripple server to point to it.  It will
 then launch the default browser (cross platform) which will launch your App
 in ripple.  This does not require the plugin to be installed as Ripple is
 functioning as a proxy / web app.

 I have a question on how to handle this command:

 - Should this be a flag on the cordova emulate command?

 The Command could ether be:

 cordova serve platform [port] --ripple

 or

 cordova ripple platform [port]

 There are also a couple of todos:

 - Ripple needs to be published to npm and we should install it via that,
 currently I am just cloning via git.  This will happen soon and is just a
 temp hack.
 - Ripple is currently starting its own server, we should allow the cordova
 emulate middleware to be usable by ripple
 - Ripple should allow us to pick the device we want to launch on.  If I
 launch using blackberry I shouldn't have ripple emulate an iPhone.


 [1]
 https://github.com/gtanner/cordova-cli/commit/cf499d53b3e6f6631513fd5110c0861f8f01


[DISCUSS] Add Ripple support to cordova-cli

2013-03-07 Thread Gord Tanner
Hello everyone,

I made a quick prototype to add support for using ripple from the
cordova-cli [1].

Currently I just added a new command called ripple that calls the cordova
emulate command and then starts the ripple server to point to it.  It will
then launch the default browser (cross platform) which will launch your App
in ripple.  This does not require the plugin to be installed as Ripple is
functioning as a proxy / web app.

I have a question on how to handle this command:

- Should this be a flag on the cordova emulate command?

The Command could ether be:

cordova serve platform [port] --ripple

or

cordova ripple platform [port]

There are also a couple of todos:

- Ripple needs to be published to npm and we should install it via that,
currently I am just cloning via git.  This will happen soon and is just a
temp hack.
- Ripple is currently starting its own server, we should allow the cordova
emulate middleware to be usable by ripple
- Ripple should allow us to pick the device we want to launch on.  If I
launch using blackberry I shouldn't have ripple emulate an iPhone.


[1]
https://github.com/gtanner/cordova-cli/commit/cf499d53b3e6f6631513fd5110c0861f8f01