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 AFEB810951 for ; Mon, 29 Jul 2013 23:41:58 +0000 (UTC) Received: (qmail 70997 invoked by uid 500); 29 Jul 2013 23:41:58 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 70967 invoked by uid 500); 29 Jul 2013 23:41:58 -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 70959 invoked by uid 99); 29 Jul 2013 23:41:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 23:41:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anis.kadri@gmail.com designates 209.85.192.173 as permitted sender) Received: from [209.85.192.173] (HELO mail-pd0-f173.google.com) (209.85.192.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 23:41:54 +0000 Received: by mail-pd0-f173.google.com with SMTP id p11so1873666pdj.4 for ; Mon, 29 Jul 2013 16:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=khEaHrTz5xzYCuPFnsgR09/TNJFcrA6+9mYQiQpDAvM=; b=tRVdAOjBoIMtqLQEQ/eCMptVx8/VbzTqv04+Z0UyTfEPRwWAmL+bvcHEDIZovLLXcf 6Sgf0uc0ArlEyhyjf+9vyGk+bT2sFPfR/fd9DgEqNP5IJKFLi36h8+GbjEPOrZmEKsI7 VN6UtEklZCQgYYyUvYTzXe8AeUM60j/oR9u6bHiT/6u7weOOHzl+weRhEPeESxjMe6nY gXB06EiaG1/27+ieedZFKcHpHfJEy5gEuRqYnyxXOeEMepxjlvUmlIzZftVk02JMJSrW RLDNHftlulRvzhmub/WBpie7+7eBUsvpJBiMvq8TNNtz3TqpkXW434xq/wHexIse75Zh WVUA== MIME-Version: 1.0 X-Received: by 10.66.122.41 with SMTP id lp9mr72366936pab.6.1375141293822; Mon, 29 Jul 2013 16:41:33 -0700 (PDT) Received: by 10.66.90.101 with HTTP; Mon, 29 Jul 2013 16:41:33 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Jul 2013 16:41:33 -0700 Message-ID: Subject: Re: Plugin / Platform mismatch problems From: Anis KADRI To: "dev@cordova.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I spoke with @dshaw about this and told him why it was (currently) not an option for Cordova. Specifically (un)install actions and dependency management are different. It seems like a a lot of overhead to get npm to do what plugman (un)install does. Everything else is pretty much the same and moving from plugin.xml to package.json won't hurt us I don't think. I guess we wouldn't be able to do XSLTs to validate documents but...other than that it would be a logical move. The other thing too is that npm is mainly for nodejs and/or javascript packages and getting Cordova plugins in there can make search and discovery harder. There are currently 36,472 NPMs as of this writing. The counter-argument to this is that there are npm modules that use native codes to execute. Some of them even require some third-party interpreters (Ruby, Python, etc...). On Mon, Jul 29, 2013 at 4:28 PM, Brian LeRoux wrote: > I have a parallel conversation rolling w/ the node guys and they're > hoping to convince us to move everything to the npm registry itself. > (Or at least be compatible to do so.) > > I think this is a worthwhile goal but it does mean: > > - plugin.xml gets either deprecated for package.json or we continue > tool that impedance mismatch > - install on the npm side needs to learn about cordova (yes issac is > open to this!) > > Did I miss anything Anis? > > Thoughts [larger group]? > > > > On Mon, Jul 29, 2013 at 6:06 PM, Anis KADRI wrote: >> Agree. >> For the last point. There is a tag added to the spec to >> facilitate search. Has to be added by plugin author. >> I am going to drop the current names for the registry and republish >> them with the new convention. Unless anyone has any objections. We'll >> implement that prefixing right after. >> >> On Mon, Jul 29, 2013 at 2:55 PM, Filip Maj wrote: >>> I think what would work is: >>> >>> - use ids to uniquely identify >>> - prepending org.apache.cordova.core or w/e our core plugin namespace is >>> as a fallback attempt to match makes sense >>> - finally, for discovery/searching, we should do searches vs a plugin's >>> field and do our best to enforce good descriptions on >>> plugins being submitted to the apache cordova registry >>> >>> On 7/29/13 1:13 PM, "Anis KADRI" wrote: >>> >>>>Right but npm registry uses JSON not XML. I think prefixing core >>>>plugins when no package name is provided is a good idea. >>>> >>>>On Mon, Jul 29, 2013 at 1:08 PM, Marcel Kinard wrote: >>>>> That could be accomplished with XSLT. And XPath has basic query >>>>>capability. James Jong and I have skills in those. >>>>> >>>>> On Jul 26, 2013, at 2:19 PM, Filip Maj wrote: >>>>> >>>>>> Ahh yeah. Some kind of at-publish-time conversion of certain plugin.xml >>>>>> fields to json fields? >>>>>> >>>>>> On 7/26/13 10:27 AM, "Anis KADRI" wrote: >>>>>> >>>>>>> I think XML is not a query friendly language. I suggest we add an >>>>>>> engine field initially and then add fields as we need them. I suspect >>>>>>> we won't be needing the bulk of plugin.xml in the registry. I have to >>>>>>> experiment with custom fields still but it seems possible. I will >>>>>>> report back sometime today. >>>>> >>>