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 6C09B106B4 for ; Tue, 3 Jun 2014 15:28:16 +0000 (UTC) Received: (qmail 74862 invoked by uid 500); 3 Jun 2014 15:28:16 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 74827 invoked by uid 500); 3 Jun 2014 15:28:16 -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 74816 invoked by uid 99); 3 Jun 2014 15:28:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 15:28:16 +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 (athena.apache.org: domain of brian.leroux@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-ig0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 15:28:12 +0000 Received: by mail-ig0-f180.google.com with SMTP id c1so4928055igq.13 for ; Tue, 03 Jun 2014 08:27:52 -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:message-id:subject :from:to:content-type; bh=ACnz3z7Laa3JFduxHRjbD4MpwlIxLtsTd+JxpNh9LeU=; b=BE66xOoSCkArZFD3FWJHL1Ozyyk4L8WGFY/kcEALI48VXmA9hJMndhWtLhzfFpzD99 cINF0BzZgpzO+dAb9nGGCvYojPkD+gUjyfEi+PSPXD9FZZ+D9IRsCDw5QE6GpkAJk/Jv oEMOy1tr/eLjDE9CiO2+Em0sS04R7wS27svm26dTdu0nRzzFV9WXNjTVEvh1VShHVTVx D7OFagQ4uwB172diLN7kOWX5gBWGh3hg7l+9FTCN4TgCJwCRIKwlHurKsVGOWbzCm8Nb WQZ9FXm0p7+JDF/9YYM2cg9X0+fBgERc06T8aR4s9v6o0f6/QWncDlmwVgCmvGGcbs+j M6aw== MIME-Version: 1.0 X-Received: by 10.43.87.72 with SMTP id av8mr8679055icc.56.1401809272068; Tue, 03 Jun 2014 08:27:52 -0700 (PDT) Sender: brian.leroux@gmail.com Received: by 10.50.173.40 with HTTP; Tue, 3 Jun 2014 08:27:52 -0700 (PDT) In-Reply-To: <538d54bd.64c5440a.766a.ffffa2e4@mx.google.com> References: <538d54bd.64c5440a.766a.ffffa2e4@mx.google.com> Date: Tue, 3 Jun 2014 08:27:52 -0700 X-Google-Sender-Auth: 9QsaNx30GHzkEa0SmhipSvSXP7E Message-ID: Subject: Re: npm based "cordova platform add" From: Brian LeRoux To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a11335930b464ce04faf027d3 X-Virus-Checked: Checked by ClamAV on apache.org --001a11335930b464ce04faf027d3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm still trying to understand why we're not using package.json for this. I seriously do not see any benefit: pls convince me! On Mon, Jun 2, 2014 at 9:53 PM, purplecabbage wrote: > >> $ cordova --usenpm platform add > >> ios@3.4.1 > > Why would you do this? > What version of cordova? > Do you expect to add multiple ios@versions to a single cordova project? > Ios@3.4.1 and android@3.5.2 > > Our version / dependency tree is already insane. Has anyone here submitte= d > a cross device app to a store? Made anything more complicated than hello > world? I feel like we're losing touch. > > Sent from my iPhone > > > On Jun 2, 2014, at 7:49 PM, Andrew Grieve wrote: > > > > Tried it out. Seemed to work fine: > > > > $ cordova --usenpm platform update ios > > npm http GET https://registry.npmjs.org/cordova-ios/3.5.0 > > npm http 200 https://registry.npmjs.org/cordova-ios/3.5.0 > > npm http GET > https://registry.npmjs.org/cordova-ios/-/cordova-ios-3.5.0.tgz > > npm http 200 > https://registry.npmjs.org/cordova-ios/-/cordova-ios-3.5.0.tgz > > iOS project is now at version 3.5.0 > > > > $ ls ~/.cordova/lib/npm_cache/cordova-ios/3.5.0/ > > .cache.json package/ package.tgz > > > > $ cordova --usenpm platform update ios > > npm http GET https://registry.npmjs.org/cordova-ios/3.5.0 > > npm http 304 https://registry.npmjs.org/cordova-ios/3.5.0 > > iOS project is now at version 3.5.0 > > > > $ cordova --usenpm platform update ios@3.4.1 > > Platform "ios@3.4.1" not recognized as a core cordova platform. See > > `cordova platform list`. > > > > $ cordova --usenpm platform add ios@3.4.1 > > Platform "ios@3.4.1" not recognized as a core cordova platform. See > > `cordova platform list`. > > > > > > Thoughts for next steps: > > - Allow platform@version in the command-line (as I tried to do) > > - Delete "url" and "version" from platforms.js (WOOHOO!) > > - Add "cordova cache ls" and "cordova cache clear" commands > > - Advertise the new awsomeness! > > > > > > > > > >> On Mon, Jun 2, 2014 at 5:46 PM, Brian LeRoux wrote: > >> > >> but=E2=80=A6why not package.json ? > > (leaving this discussion to the other thread) > > > >> > >> > >>> On Mon, Jun 2, 2014 at 3:28 PM, Mark Koudritsky > wrote: > >>> > >>> Hi All, > >>> > >>> I've added the bits needed to download platform files from npm when > doing > >>> cordova platform add > >>> Currently this is hidden behind a --usenpm flag > >>> e.g: cordova --usenpm platform add ios > >>> Some testing would highly appreciated before we switch to npm as the > >>> default place to download the platform files from. > >>> > >>> > >>> The links changes in cordova-lib > >>> < > >> > https://github.com/apache/cordova-lib/commit/55810360fe660276a1ab0d04382d= a633f9cf1290 > >>> and > >>> cordova-cli > >>> < > >> > https://github.com/apache/cordova-cli/commit/57179d61d0c35e32c808198d184d= 0d515fbb0c28 > >>> > >>> Some of the platforms on npm: > >>> https://www.npmjs.org/package/cordova-android > >>> https://www.npmjs.org/package/cordova-ios > >>> https://www.npmjs.org/package/cordova-blackberry > >> > --001a11335930b464ce04faf027d3--