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 B346411E1F for ; Tue, 15 Apr 2014 21:42:11 +0000 (UTC) Received: (qmail 80978 invoked by uid 500); 15 Apr 2014 21:42:11 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 80945 invoked by uid 500); 15 Apr 2014 21:42:10 -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 80937 invoked by uid 99); 15 Apr 2014 21:42:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 21:42:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mmocny@google.com designates 209.85.128.169 as permitted sender) Received: from [209.85.128.169] (HELO mail-ve0-f169.google.com) (209.85.128.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 21:42:06 +0000 Received: by mail-ve0-f169.google.com with SMTP id pa12so10130276veb.0 for ; Tue, 15 Apr 2014 14:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=90mcEYNB2tYgPL+7xF1CXfolORPwwKY6RKOE57Y35RI=; b=Jp4alCGmHzOz6ARduKj28QUkDkK8nUmOJW6B27o5KDVYSPAC7sLd8zHwFEdhzekDR9 BPByj42rICbKPdlui6FOQB5e8WzaDrFyDYy5MWLD1ymnSd4uyEdIKyk2TuZyhRifChRV RRB5b0PvBlCWT1sZbFAs0Ti9Vp5FwhGrC8WuuUooBfiemYD+UHG2mnqhyXLsN2J2Q7An t9jchHkH2xT1Y6MYtOVcvcjv+Du6xNzgqKDgUkyWphyPsilNLUCWh4PyA0Y1Gc8J71tC GH5EBIDltnldLlAeiqSmE8yqlEyIMX28oLATMYFqymPKFIwuqMXUv11uDQgad5QCWrB6 OfEg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=90mcEYNB2tYgPL+7xF1CXfolORPwwKY6RKOE57Y35RI=; b=L5qaWutznLU313yZK8AlKa2hBbM9qAhb97BUwNZURiZftgNZ+IMHIxvv4Mfgefap41 0ncyNpTxi8pNQD2oH4bY1+BD/TZzsivP3UwmvowNsPVGgCZkTINaQmhiikcQ+Z3Z4mrV /o7siBx3xRJVCTun1yWgaqKLshDmWosHGaGWw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=90mcEYNB2tYgPL+7xF1CXfolORPwwKY6RKOE57Y35RI=; b=JC0R2QmWg1cdNcmKUcICEb8S5sxRNzY+yqKhH9wi+C2hZWVs+LI3ocML/jpFwgk62X bMvA4Be1hpBu8c/xSWp8BDtVk57cctDbazdNYcxGKj0POZHA84kdX2IeWy+VMWK0y2M7 APBREdFbpC+pi9sVmMii1v88VcPIRHmF9Zs5D8BEO2npV1gN0Xxvpbe9IakP/D2mEH/3 QZg1Y8Ein3qyJfW+ZK56VqQ6iZAzyF1Aedd/cxObP2mZB9Afv/fDzc954+Yfbm6GjXbo 7MoCmEcFvoP6mc6Ajm9CfCdP9w5QE5zohGKN4LYN5QeqtLvTXxsrfsZ09atm8lVs6oel auZg== X-Gm-Message-State: ALoCoQkhmPVk91VvgiVYHwnh4APVTJDKMkx8rHfzGm6YlYnePrGitoiViSSmnmfwIvwW09mSMhuzR/rkD7Q75IOmWjnvGu+6ul9rkdpElKosyMRSMtU4YKH1Sv51ter/lP9z+GO7KvtdNJvn+284IsXETyDm/gk1Um9s9fi+UE7UDXeMoRe/M64L8V74QsEriFjpMtagCFc5jiSql40XA6MJ/5m/yQcCvQ== X-Received: by 10.52.186.39 with SMTP id fh7mr28594vdc.72.1397598103941; Tue, 15 Apr 2014 14:41:43 -0700 (PDT) MIME-Version: 1.0 Sender: mmocny@google.com Received: by 10.52.31.101 with HTTP; Tue, 15 Apr 2014 14:41:23 -0700 (PDT) In-Reply-To: References: From: Michal Mocny Date: Tue, 15 Apr 2014 17:41:23 -0400 X-Google-Sender-Auth: 5eMAwnLvJyMG-wuXdepBfOefHSE Message-ID: Subject: Re: Sharing code between plugman and cordova-cli To: dev Content-Type: multipart/alternative; boundary=bcaec5489e1786520004f71baaa7 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5489e1786520004f71baaa7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I should have updated this email thread. That proposal is old news, Mark has done a writeup: https://docs.google.com/document/d/1GVtG6BD266dqRURKaS-GEDefb0tBYt56acxrJEK= AfmE/edit (I know you have commented on it already, but for others) On Tue, Apr 15, 2014 at 4:20 PM, Brian LeRoux wrote: > > > > I think everyone is on board with the idea that modules should be used = to > > enable sharing code, and for code organization. > > > > Cool. > > > > Two problems that are happening in practice: > > - Multiple pull requests (plugman and CLI) to make a change > > - Code duplication between the repositories > > > > Both of these are solved by moving all common code into the same git > > repository. > > > > Nope. Multiple pull requests to make a single functional change could be > achieved by pulling a common module out. I respect you have a single repo > at Google but this is not the solution to everything! > > > > > > I think whether to make additional npm packages should happen as a > > follow-up, and as concrete proposals (e.g. Let's publish CordovaError > into > > an npm package) > > > > Sure > > > It's a bit weird that a lot of cordova's CLI is in a module called > > "cordova", but you need to install "plugman" to publish to the registry= . > > > > Nope. The choice to make the CLI the entry point for developers of cordov= a > makes perfect sense. To have a separate tool for publishing also makes > sense. Exposing that tool from Cordova was always the idea. > > > > > How about folding the functionality of plugman into cordova? > > > > Right. This doesn't mean they have to be in the same git repo. In Cordova > you can use package.json to include Plugman and expose functionality. Thi= s > way you win versioning which is the point dependency management=E2=80=A6n= ot SCM. > > > > For users that are accustomed to using plugman directly, we could make > > plugman depend on CLI to have it continue working. > > > > What?! Why! > --bcaec5489e1786520004f71baaa7--