Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE17CDEBA for ; Sun, 14 Oct 2012 23:58:44 +0000 (UTC) Received: (qmail 60317 invoked by uid 500); 14 Oct 2012 23:58:44 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 60293 invoked by uid 500); 14 Oct 2012 23:58:44 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 60282 invoked by uid 99); 14 Oct 2012 23:58:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2012 23:58:44 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brian.leroux@gmail.com designates 74.125.83.47 as permitted sender) Received: from [74.125.83.47] (HELO mail-ee0-f47.google.com) (74.125.83.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Oct 2012 23:58:38 +0000 Received: by mail-ee0-f47.google.com with SMTP id t10so2472509eei.6 for ; Sun, 14 Oct 2012 16:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=lAITZjzYsXh7SGledQgxudu5SWjLQ7+XeoiStXFDG6k=; b=qDcfk3TaoM5heehyQUtqWKXFH/woHpTQy9GkKnj3W3hbWLPsdnYAzpX1KlWtCqooPH /vAWch8sV9H7TJfILGMlHtnf40rlyhC4VoserbKMDs5YP+AZDNDo+vQLWfTNNraqSB2M pPhIF4oVPRETvv/Ytt7wB33HxDEdnsbiF26IFGZEFo6CvZ+TxF3XnEZ+c5hzi0f0J1kB M7CK8aoH7R9zLN+nX/lZFVt7CLQ37J9RlWYzGaQPrGMul0IR8MkGKp/mt9hrwpMMTDtI cN9Xj6GTiSRn/ufUJGREYxn/VGzZHakjxRSmNa/lZD0UJDojnx8tqMFbi8IaHAlKna+h lk9g== MIME-Version: 1.0 Received: by 10.14.0.198 with SMTP id 46mr13732519eeb.21.1350259098144; Sun, 14 Oct 2012 16:58:18 -0700 (PDT) Sender: brian.leroux@gmail.com Received: by 10.14.177.198 with HTTP; Sun, 14 Oct 2012 16:58:18 -0700 (PDT) In-Reply-To: References: Date: Sun, 14 Oct 2012 16:58:18 -0700 X-Google-Sender-Auth: chh-KIjXafIpSbPEkxQuqONAyYA Message-ID: Subject: Re: a package manager experiment From: Brian LeRoux To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I'm in the 'reuse npm as a dependency' camp. We can override stuff that way and not get stuck re-implementing the entire thing. Just look at the size of Max's proposal as a result.Less code to write, means less to test, and ultimately less to maintain. That said, I encourage we code for all the things and see what suites us best. On Sun, Oct 14, 2012 at 12:11 PM, Mike Reinstein wrote: > Hi Max! > > We've been chatting about package manager stuff a bit prior to your arrival > a few days ago. The 2 main proposals we've seen are to use npm for > everything, or try to set up an independant system, which is similar but > different (hopefully suited to cordova's particulars.) I've been exploring > option 2, and had a brief discussion with Isaac Schlueter and Dominic about > this. I think it's an interesting read. > https://github.com/dominictarr/rc/issues/5 > > Here is the spec (and partial implementation) of what I've got so far: > https://github.com/mreinstein/cpm > > I would really appreciate some feedback on this. If it turns out that the > cordova community is really against doing it this way then I'd rather know > sooner than later, so I'm not burning time on a project that no one wants. > I'm hoping for more feedback from Isaac as well, especially on the bullets > in that rc discussion because I think I outlined all the major hurdles that > using npm straight up might introduce. In my opinion, using npm directly > would be a mistake, but I'm still in the experimentation phase at this > point. > > -Mike > > > On Sun, Oct 14, 2012 at 8:27 AM, Max Ogden wrote: > >> meet lunny >> >> https://github.com/maxogden/lunny >> >> lunny is about 60 lines of code: >> https://github.com/maxogden/lunny/blob/master/lib/lunny.js >> >> the basic idea is: >> >> 1. use npm for pretty much everything >> 2. if a package has some special metadata in its package.json then lunny >> will run plugin-install with the proper arguments >> 3. there is no step 3! >> >> right now the hardest part about publishing and distributing a cordova >> package is authoring the plugin.xml file so I have only tested this with >> the childbrowser plugin from http://github.com/alunny/childbrowser >> >> thoughts welcome! >>