Re: What's your daily workflow for cordova development?

2013-09-23 Thread Braden Shepherdson
It could be, and there's even a plugin add --link option. BUT, there's a major caveat here: Changes to plugin.xml, native code, and possibly other parts, won't be updated on cordova prepare, but only on cordova plugin add. So you'd have to plugin rm+add on most changes anyway, so there's little ad

Re: What's your daily workflow for cordova development?

2013-09-23 Thread Jamie Munro
Could a plugin that is in development be symlinked into the plugins folder of the project it is being developed for? Robert (Jamie) Munro On 20 September 2013 17:38, Brian LeRoux wrote: > Agree you will certainly arrive at the ideal solution by iterating from the > less-than-ideal solution. Th

Re: What's your daily workflow for cordova development?

2013-09-20 Thread Brian LeRoux
Agree you will certainly arrive at the ideal solution by iterating from the less-than-ideal solution. That is not a reason to not start breaking stuff though. On Fri, Sep 20, 2013 at 5:31 PM, Michal Mocny wrote: > Ugh, unfortunately Braden is right. Still, I think that means we can move > forw

Re: What's your daily workflow for cordova development?

2013-09-20 Thread Michal Mocny
Ugh, unfortunately Braden is right. Still, I think that means we can move forward with the plan to make "plugman create" work anywhere and "cordova plugin create" only work inside of a workspace, but don't implement the latter until its actually feasible to make edits to plugins inside a workspace

Re: What's your daily workflow for cordova development?

2013-09-20 Thread Braden Shepherdson
I would caution against developing a plugin inside a cordova-cli workspace. The nature of the install vs. prepare divide is that any changes to native code require reinstalling. That's confusing for developers, so I would recommend that the best way to develop a plugin using CLI is to plugman creat

Re: What's your daily workflow for cordova development?

2013-09-20 Thread Lucas Holmquist
i always forget about plugman On Sep 20, 2013, at 9:57 AM, Michal Mocny wrote: > plugman create could be used outside of a project, and cordova plugin > create should be used only inside of a project? > > All other cordova commands must be used inside a project (except the > "create" entry point

Re: What's your daily workflow for cordova development?

2013-09-20 Thread Michal Mocny
plugman create could be used outside of a project, and cordova plugin create should be used only inside of a project? All other cordova commands must be used inside a project (except the "create" entry point), and if we decide to ship the plugin templates with platforms, and/or decide to make the

Re: What's your daily workflow for cordova development?

2013-09-20 Thread Lucas Holmquist
So currently when doing $ cordova plugin …. it fails if you are not in a cordova project. but $ cordova plugin create might not be used inside a project( i think it shouldn't be used inside a project at all, but i can be convinced otherwise ) On Sep 4, 2013, at 10:46 PM, lmnbeyond wrote

Re: What's your daily workflow for cordova development?

2013-09-20 Thread Michal Mocny
Filed CB-4886 for plugin create. On Fri, Sep 6, 2013 at 6:54 PM, James Jong wrote: > +1 create,add/watch workflow , IMO watch would be a nice addition > > -James Jong > > On Sep 4, 2013, at 10:46 PM, lmnbeyond wrote: > > > > > > >> I also think it should sub-shell to a platform script. We alre

Re: What's your daily workflow for cordova development?

2013-09-06 Thread James Jong
+1 create,add/watch workflow , IMO watch would be a nice addition -James Jong On Sep 4, 2013, at 10:46 PM, lmnbeyond wrote: > > >> I also think it should sub-shell to a platform script. We already have >> a `project template` folder in each platform. We can easily add a >> `plugin template` a

Re: What's your daily workflow for cordova development?

2013-09-04 Thread lmnbeyond
> I also think it should sub-shell to a platform script. We already have > a `project template` folder in each platform. We can easily add a > `plugin template` as well and write a quick create_plugin script. > > What do you guys think of the workflow I described above ? Any > comments ? I can c

Re: What's your daily workflow for cordova development?

2013-09-04 Thread Jesse
Personally, I don't think this should be built into the system; I see nothing wrong with the workflow that Anis originally posted. If all we ever did was write echo plugins, then this would make sense, but IMHO, actually writing a plugin requires some time spent in each ./platform As an example: I

Re: What's your daily workflow for cordova development?

2013-09-04 Thread Anis KADRI
I also think it should sub-shell to a platform script. We already have a `project template` folder in each platform. We can easily add a `plugin template` as well and write a quick create_plugin script. What do you guys think of the workflow I described above ? Any comments ? I can create jira iss

Re: What's your daily workflow for cordova development?

2013-09-04 Thread Michal Mocny
Maybe a plugin template ships with each platform, and when you "plugin create" it merges the template for each platform you have installed? That would mean you have to add all interested platforms before creating a plugin. -Michal On Wed, Sep 4, 2013 at 10:22 AM, Ian Clelland wrote: > On Tue,

Re: What's your daily workflow for cordova development?

2013-09-04 Thread Ian Clelland
On Tue, Sep 3, 2013 at 11:50 AM, Braden Shepherdson wrote: > On Tue, Sep 3, 2013 at 11:07 AM, Jonathan Bond-Caron < > jbo...@gdesolutions.com> wrote: > > Two new features could be useful from cli: > > a) Create an initial plugin from a template > > cordova plugin create [path] [name] > > > > e.g.

Re: What's your daily workflow for cordova development?

2013-09-03 Thread Anis KADRI
This would be my ideal workflow $ cordova plugin add /path/to/plugin $ cordova plugin watch /path/to/plugin # detects if plugin is installed (otherwise fails), watches for changes and automatically updates CLIPROJECT/plugins and re-runs prepare. maybe even `add --watch` (CTRL+C to cancel). We do

Re: What's your daily workflow for cordova development?

2013-09-03 Thread Braden Shepherdson
Responses inline. On Tue, Sep 3, 2013 at 11:07 AM, Jonathan Bond-Caron < jbo...@gdesolutions.com> wrote: > On Mon Sep 2 07:34 PM, Brian LeRoux wrote: > > Here's a shot. Ideal flow tomorrow might be to generate a plugin called, > lets say, > > "Echo" that matches something we'd find in our docs,

RE: What's your daily workflow for cordova development?

2013-09-03 Thread Jonathan Bond-Caron
On Mon Sep 2 07:34 PM, Brian LeRoux wrote: > Here's a shot. Ideal flow tomorrow might be to generate a plugin called, lets > say, > "Echo" that matches something we'd find in our docs, automate add/remove > with some sort of watch command. That way ppl are writing to the plugin spec > from the beg

Re: What's your daily workflow for cordova development?

2013-09-03 Thread Michal Mocny
I do like the idea of a `plugin watch` command, but I think we need to consider a few points: Our current plan for "plugin upgrade" is to plugin rm && plugin add. So, we need an keep immutable copy of the original plugin as it was during install time in order to uninstall correctly (thought: mayb

Re: What's your daily workflow for cordova development?

2013-09-02 Thread lmnbeyond
+ 1 love "watch command" idea :) Best Regards! On 2013-9-3, at 上午7:34, Brian LeRoux wrote: > automate > add/remove with some sort of watch command. That way ppl are writing to the > plugin spec from the beginning instead of refactoring a plugin out of a > native project.

Re: What's your daily workflow for cordova development?

2013-09-02 Thread Tommy-Carlos Williams
+1 I am surprised that once a plugin has been added to ./platforms/**/* it is never refreshed from the version in ./plugins/**/* It means that plugin dev has to happen in ./platforms instead of in ./plugins at the very least. If I could create a plugin or even add a scaffold of a plugin to ./p

Re: What's your daily workflow for cordova development?

2013-09-02 Thread Brian LeRoux
So, first of all I agree, this is probably the ideal flow today. A good reason for this list is to figure out how we can make the best possible developer experience going forward. With the Discovery side of things all but deployed I'd love for us to look at making this part a little more sane for o

Re: What's your daily workflow for cordova development?

2013-09-01 Thread lmnbeyond
Hi, Thanks for all your detailed explanations. I tend to agree with @Anis KADRI, CLI is amazing, but it's a little low-productive to iterate "add/remove". However, I think I can accept a compromise: add a "plugin upgrade" command, as @Michal Mocny has mentioned. Best Regards!

Re: What's your daily workflow for cordova development?

2013-08-30 Thread Anis KADRI
Neither CLI nor plugman (at least while developing). I would create a project using our platform scripts and develop my plugin in that project workspace and when I feel that my plugin is ready that I will create a plugin.xml and test it out with plugman and CLI and then publish it. plugman automa

Re: What's your daily workflow for cordova development?

2013-08-30 Thread Anis KADRI
I wouldn't use cordova-cli if I were to develop a plugin. I don't think the workflow is ideal. On Fri, Aug 30, 2013 at 6:47 AM, Michal Mocny wrote: > I am interpreting your concern in two different ways, so I'll clarify my > assumption and answer both: > > -- > > Interpretation (1

Re: What's your daily workflow for cordova development?

2013-08-30 Thread Michal Mocny
How is plugin dev via CLI worse than just using plugman directly? The only other option is to not use our plugin format at all, and treat your "feature" as a platform extension. You can still use some of our plugin guide to develop your feature, I wouldn't consider it a plugin, i.e. you couldn't

Re: What's your daily workflow for cordova development?

2013-08-30 Thread Brian LeRoux
Pls explain. On Aug 30, 2013 12:45 PM, "Anis KADRI" wrote: > I wouldn't use cordova-cli if I were to develop a plugin. I don't > think the workflow is ideal. > > On Fri, Aug 30, 2013 at 6:47 AM, Michal Mocny wrote: > > I am interpreting your concern in two different ways, so I'll clarify my > >

Re: What's your daily workflow for cordova development?

2013-08-30 Thread Michal Mocny
I am interpreting your concern in two different ways, so I'll clarify my assumption and answer both: -- Interpretation (1): You want to develop a new plugin, and find it hard to find the right files to track inside a cli created workspace. If you want to "develop some feature or