Re: Command Line Tooling

2012-06-07 Thread Anis KADRI
I just updated the windows script to work. https://github.com/imhotep/incubator-cordova-android/commit/e8b80e8752b840988b2b39e9106be584cea97075 will be adding a test for it (in node). You're welcome to try it out! Same deal: you can run it from anywhere and it's a single script (not using a seco

Re: Command Line Tooling

2012-06-04 Thread Anis KADRI
Yeah I will add a test for that. I just need to run it twice for it to generate once and fail the second time ;) On Mon, Jun 4, 2012 at 6:20 PM, Jesse wrote: > ./bin/create ./example > ?? > I think you got it with this: > > # clobber any existing example > if [ -d $PROJECT_PATH ] > then >ech

Re: Command Line Tooling

2012-06-04 Thread Jesse
./bin/create ./example ?? I think you got it with this: # clobber any existing example if [ -d $PROJECT_PATH ] then echo "Project already exists! Delete and recreate" exit 1 fi On Mon, Jun 4, 2012 at 6:11 PM, Anis KADRI wrote: > Can you be more specific ? Like give an example ? > > On

Re: Command Line Tooling

2012-06-04 Thread Anis KADRI
Can you be more specific ? Like give an example ? On Mon, Jun 4, 2012 at 6:10 PM, Jesse wrote: > Test that the script cannot receive params that would make it overwrite > itself or any of it's own required files? > > > On Mon, Jun 4, 2012 at 6:05 PM, Anis KADRI wrote: > > > > > > https://github

Re: Command Line Tooling

2012-06-04 Thread Jesse
Test that the script cannot receive params that would make it overwrite itself or any of it's own required files? On Mon, Jun 4, 2012 at 6:05 PM, Anis KADRI wrote: > > https://github.com/imhotep/incubator-cordova-android/blob/master/bin/test_create2.js > > FYI I did not use any testing framewor

Re: Command Line Tooling

2012-06-04 Thread Anis KADRI
https://github.com/imhotep/incubator-cordova-android/blob/master/bin/test_create2.js FYI I did not use any testing framework because I don't like dependencies and this is so simple that I don't think it deserves it. I guess this onewould have been cool. Anyho

Re: Command Line Tooling

2012-05-31 Thread Dave Johnson
Can we also commit some tests along with this new script? On Fri, Jun 1, 2012 at 6:59 AM, Joe Bowser wrote: > I'm starting to think that this shed is mostly paint now.  That's what > makes it lightweight! > > On Thu, May 31, 2012 at 1:57 PM, Brian LeRoux wrote: > >> truth! I forgot they went tha

Re: Command Line Tooling

2012-05-31 Thread Joe Bowser
I'm starting to think that this shed is mostly paint now. That's what makes it lightweight! On Thu, May 31, 2012 at 1:57 PM, Brian LeRoux wrote: > truth! I forgot they went that way again. (this shed has seen many > coats of paint) > > On Thu, May 31, 2012 at 1:46 PM, Anis KADRI wrote: > > Sur

Re: Command Line Tooling

2012-05-31 Thread Brian LeRoux
truth! I forgot they went that way again. (this shed has seen many coats of paint) On Thu, May 31, 2012 at 1:46 PM, Anis KADRI wrote: > Sure but just to remind you that with the current _create_ it is even more > verbose as android's update and create projects are *REALLY* verbose ;) > I can defi

Re: Command Line Tooling

2012-05-31 Thread Anis KADRI
Sure but just to remind you that with the current _create_ it is even more verbose as android's update and create projects are *REALLY* verbose ;) I can definitely add a "-v" flag and make sure that the messages display only if that option is passed. On Thu, May 31, 2012 at 1:40 PM, Brian LeRoux

Re: Command Line Tooling

2012-05-31 Thread Brian LeRoux
love everything except the echo stuff; could we add a quiet flag? only want noise if something breaks On Thu, May 31, 2012 at 12:39 PM, Anis KADRI wrote: > Hi guys, > > I did not want to mess with the current client tools for Android so I > created a new create script and called it create2. > > T

Re: Command Line Tooling

2012-05-31 Thread Michael Brooks
Nice work Anis! Before we release 1.9, I'd be in favour of replacing `create` with `create2` (and renaming it). Michael On Thu, May 31, 2012 at 1:16 PM, Anis KADRI wrote: > Yes we can > > On Thu, May 31, 2012 at 1:04 PM, Joe Bowser wrote: > > > Cool. Can we put this in 1.9? > > > > On Thu, Ma

Re: Command Line Tooling

2012-05-31 Thread Anis KADRI
Yes we can On Thu, May 31, 2012 at 1:04 PM, Joe Bowser wrote: > Cool. Can we put this in 1.9? > > On Thu, May 31, 2012 at 12:39 PM, Anis KADRI wrote: > > > Hi guys, > > > > I did not want to mess with the current client tools for Android so I > > created a new create script and called it creat

Re: Command Line Tooling

2012-05-31 Thread Joe Bowser
Cool. Can we put this in 1.9? On Thu, May 31, 2012 at 12:39 PM, Anis KADRI wrote: > Hi guys, > > I did not want to mess with the current client tools for Android so I > created a new create script and called it create2. > > The advantages of my script compared to the current one: > - It's only

Re: Command Line Tooling

2012-05-31 Thread Anis KADRI
Hi guys, I did not want to mess with the current client tools for Android so I created a new create script and called it create2. The advantages of my script compared to the current one: - It's only one script. It doesn't use a hidden .cordova directory and doesn't use a secondary create script t

Re: Command Line Tooling

2012-05-10 Thread Filip Maj
http://incubator.apache.org/cordova/ Click mailing list Send an email to all *-unsubscribe emails you see. On 5/10/12 12:51 PM, "Mike Flores" wrote: > >How can I unsubscribe from all emails from apache?? > >On 5/10/12 4:49 AM, "Jan Becicka" wrote: > >>I'm sorry, I feel stupidŠ >>I simply don

Re: Command Line Tooling

2012-05-10 Thread Mike Flores
How can I unsubscribe from all emails from apache?? On 5/10/12 4:49 AM, "Jan Becicka" wrote: >I'm sorry, I feel stupidŠ >I simply don't see it. I use phonegap 1.7.0 from phonegap.com and it's >default installation does not create any bin folder. > >I tried to find all "create" files on my disk

Re: Command Line Tooling

2012-05-10 Thread Filip Maj
See https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=summa ry Specifically this part in the tree: https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-ios.git;a=tree; f=bin;h=8b2c465d164fb76952c170cba2a2516e7c5506c6;hb=HEAD On 5/10/12 4:49 AM, "Jan Becicka" wrote: >

Re: Command Line Tooling

2012-05-10 Thread Brian LeRoux
Ah np, the download currently includes no cli tooling. Just the bare bones there. You need the dev repos to get the tools. This will change in the future though how is yet to be sussed out. On Thu, May 10, 2012 at 1:49 PM, Jan Becicka wrote: > I'm sorry, I feel stupid… > I simply don't see it. I

Re: Command Line Tooling

2012-05-10 Thread Jan Becicka
I'm sorry, I feel stupid… I simply don't see it. I use phonegap 1.7.0 from phonegap.com and it's default installation does not create any bin folder. I tried to find all "create" files on my disk and it is not here. I'm really confused, because I see, that the files are in the git repository, bu

Re: Command Line Tooling

2012-05-04 Thread Brian LeRoux
yup it does in ./bin, also keep an eye here: https://issues.apache.org/jira/browse/CB-630 On Fri, May 4, 2012 at 4:13 AM, Jan Becicka wrote: > Hm, it looks like iOS does not have such tools… Or did I miss something? > Regards, > Jan > > >> Every platform has its own set of CLI tools at the momen

Re: Command Line Tooling

2012-05-04 Thread Jan Becicka
Hm, it looks like iOS does not have such tools… Or did I miss something? Regards, Jan > Every platform has its own set of CLI tools at the moment. > > See each platform's README file. Android and BlackBerry-webworks have the > ones I am most familiar with. Android has a bash script that you can

Re: Command Line Tooling

2012-04-27 Thread Filip Maj
Every platform has its own set of CLI tools at the moment. See each platform's README file. Android and BlackBerry-webworks have the ones I am most familiar with. Android has a bash script that you can use to create projects (./bin/create), and blackberry-webworks has a cordova-level ant file (for

Re: Command Line Tooling

2012-04-27 Thread Patrick Mueller
On Fri, Apr 27, 2012 at 03:58, Jan Becicka wrote: > I'm looking at http://wiki.apache.org/cordova/CommandLineToolingDesign > and I'd like to ask for help. > This document describes command line tool "cordova" but it looks like this > tool is not distributed with phonegap. Is this tool already av

Command Line Tooling

2012-04-27 Thread Jan Becicka
Hi, I'm looking at http://wiki.apache.org/cordova/CommandLineToolingDesign and I'd like to ask for help. This document describes command line tool "cordova" but it looks like this tool is not distributed with phonegap. Is this tool already available somewhere or is the document just proposal f

Re: command line tooling, and plugin design wiki pages

2012-04-06 Thread Michael Brooks
I also updated the wiki articles with a few documentation notes. We want to start encouraging good documentation of each plugin. Michael On 2012-04-06, at 10:15 PM, Filip Maj wrote: > I've updated the PluginDesign [1] wiki article's sections on JavaScript > and native file structure with my s

Re: command line tooling, and plugin design wiki pages

2012-04-06 Thread Filip Maj
I've updated the PluginDesign [1] wiki article's sections on JavaScript and native file structure with my suggestions. These are all based on the existing native plugin interfaces and the one we are slowly building up via cordova-js. [1] http://wiki.apache.org/cordova/PluginDesign On 3/29/12 1:49

Re: command line tooling, and plugin design wiki pages

2012-03-29 Thread Patrick Mueller
On Thu, Mar 29, 2012 at 16:40, Brian LeRoux wrote: > hackathon even better; agree on design consensus and code. all I ask > is: pls no camel case in my cli!!! (unless we want to scope bash > completion with this... lol) > Sadly, bash completion scripting is a dark art I've managed to avoid up-ti

Re: command line tooling, and plugin design wiki pages

2012-03-29 Thread Brian LeRoux
> Great, thx.  I'll integrate some of this info on the wiki, when I get a > chance, if you haven't already. cool, ya today prolly not >> anyhow, lots to chew on there. phone call or, better, F2F might help >> > > Hackathon?  But it would be nice to get consensus on some overall design > aspects,

Re: command line tooling, and plugin design wiki pages

2012-03-29 Thread Patrick Mueller
On Thu, Mar 29, 2012 at 16:14, Brian LeRoux wrote: > yah. there is tonnes of prior art for this stuff. I will update the > wiki but quickly ... > Great, thx. I'll integrate some of this info on the wiki, when I get a chance, if you haven't already. > anyhow, lots to chew on there. phone call

Re: command line tooling, and plugin design wiki pages

2012-03-29 Thread Brian LeRoux
also check the old wiki and andrew lunny has a tool called plugin-install for ios/android On Thu, Mar 29, 2012 at 1:14 PM, Brian LeRoux wrote: > yah. there is tonnes of prior art for this stuff. I will update the > wiki but quickly > > https://github.com/brianleroux/Cordova/tree/b816aacfb7583174b

Re: command line tooling, and plugin design wiki pages

2012-03-29 Thread Brian LeRoux
yah. there is tonnes of prior art for this stuff. I will update the wiki but quickly https://github.com/brianleroux/Cordova/tree/b816aacfb7583174be9f44f71dc32c8465d13109 was stable then other things happened. those scripts ended up in the mainline projects. the idea was a standard package format

command line tooling, and plugin design wiki pages

2012-03-29 Thread Patrick Mueller
I've created some stubs here, based on conversation in the "git 2.x separate branch thread". - http://wiki.apache.org/cordova/CommandLineToolingDesign - http://wiki.apache.org/cordova/PluginDesign Or do we already have something, somewhere, to use instead? Hopefully I'll get a chance to do a bra