Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFB0210107 for ; Tue, 8 Oct 2013 16:25:10 +0000 (UTC) Received: (qmail 85399 invoked by uid 500); 8 Oct 2013 16:25:10 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 85375 invoked by uid 500); 8 Oct 2013 16:25:09 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 85360 invoked by uid 99); 8 Oct 2013 16:25:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 16:25:07 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lholmqui@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 16:25:02 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r98GOfnr029038 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 8 Oct 2013 12:24:41 -0400 Received: from [10.10.54.164] (vpn-54-164.rdu2.redhat.com [10.10.54.164]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r98GOb4G020770 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 8 Oct 2013 12:24:39 -0400 From: Lucas Holmquist Content-Type: multipart/alternative; boundary="Apple-Mail=_928BA14D-42AF-42AE-8C18-9F7D608775DF" Message-Id: <6EE08C11-4DAB-497A-9587-ECB3447DA768@redhat.com> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: Plugin Generator Date: Tue, 8 Oct 2013 12:24:33 -0400 References: <9545A287-1C3B-476D-AC65-6E61043DECE2@redhat.com> To: dev@cordova.apache.org In-Reply-To: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_928BA14D-42AF-42AE-8C18-9F7D608775DF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 So i've started some work on adding a "create" command to plugman w.r.t = this JIRA https://issues.apache.org/jira/browse/CB-4886 what i was thinking for workflow would be : $ plugman create --name "PluginName" --plugin_id "The PluginID" = --plugin_version "the plugin version" --variable description=3D"Some = Cool Description" You could add multiple variables such as author and license The result would be a basic file structure set up, with a base JS file, = and a very basic plugin.xml setup. Then to add a platform, there could be another command, which i'm = having a hard time naming, like this $ plugman platform --platform_name=3Dios Then this would scaffold out some basic .h and .m files and add the = "platform" tag to the plugin.xml Android would do android specific stuff, etc=85 This should also probably be=20 $ plugman platform --add =85. or=20 $ plugman platform --remove =85 but i haven't gotten that far yet. I've updated my yeoman generator to use plugman behind the scenes and = also to use my fork with these new changes here is my current fork for yeoman = https://github.com/lholmquist/cordova-plugman/tree/for_yeoman=20 i still need to add tests, just wanted to see the thoughts first Here is a shameless plug for my blog where i go into a bit more detail: = http://blog.lholmquist.org/cordova/phonegap/yeoman/plugman/2013/10/03/plug= in-generator/ On Sep 20, 2013, at 11:24 AM, Brian LeRoux wrote: > +1 >=20 > totally awesome >=20 >=20 > On Fri, Sep 20, 2013 at 3:14 PM, Michal Mocny = wrote: >=20 >> Filed CB-4886 for plugin create. >>=20 >> There were a few previous threads about it, and it seemed to be a >> positively received proposal. Linked to the more recent mailing list >> discussions from the JIRA issue. >>=20 >> Probably a low priority item, but if you would like to take a shot at = it >> Lucas, that would be awesome. >>=20 >> -Michal >>=20 >> On Fri, Sep 20, 2013 at 5:51 AM, Lucas Holmquist >> wrote: >>=20 >>>=20 >>> On Sep 20, 2013, at 1:27 AM, Brian LeRoux wrote: >>>=20 >>>> This is great. I think we have it in our backlog to have something = like >>>> `plugman create ...` and thusly `cordova plugin create ...`. >>>>=20 >>>> Would you be up for contributing back to the cordova tools? >>>=20 >>> Word Up. >>>=20 >>> I think it makes sense to be in the cordova tools. I started to do = it in >>> yeoman because i wanted to check out there generator stuff. and = it's >> shiny >>> :) >>>=20 >>>=20 >>>>=20 >>>>=20 >>>> On Thu, Sep 19, 2013 at 9:31 PM, Shazron wrote: >>>>=20 >>>>> Heh ;) I was waiting for "patches welcome :)" >>>>>=20 >>>>>=20 >>>>> On Thu, Sep 19, 2013 at 12:29 PM, Lucas Holmquist < >> lholmqui@redhat.com >>>>>> wrote: >>>>>=20 >>>>>> version 0.0.1 :) >>>>>>=20 >>>>>> On Sep 19, 2013, at 3:28 PM, Shazron wrote: >>>>>>=20 >>>>>>> Awesome! Any reason not to use instead? >>>>>>>=20 >>>>>>>=20 >>>>>>> On Thu, Sep 19, 2013 at 12:22 PM, Lucas Holmquist < >>> lholmqui@redhat.com >>>>>>> wrote: >>>>>>>=20 >>>>>>>> I was looking for something to help me create a plugin but i = didn't >>>>> see >>>>>>>> anything, so i created a yeoman generator: >>>>>>>>=20 >>>>>>>> https://npmjs.org/package/generator-cordova-plugin here is = version >>>>>> 0.0.1 >>>>>>=20 >>>>>>=20 >>>>>=20 >>>=20 >>>=20 >>=20 --Apple-Mail=_928BA14D-42AF-42AE-8C18-9F7D608775DF--