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 826AD11F2C for ; Mon, 2 Jun 2014 19:30:16 +0000 (UTC) Received: (qmail 17489 invoked by uid 500); 2 Jun 2014 19:30:16 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 17455 invoked by uid 500); 2 Jun 2014 19:30: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 17444 invoked by uid 99); 2 Jun 2014 19:30:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 19:30: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 agrieve@google.com designates 209.85.219.45 as permitted sender) Received: from [209.85.219.45] (HELO mail-oa0-f45.google.com) (209.85.219.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2014 19:30:12 +0000 Received: by mail-oa0-f45.google.com with SMTP id l6so5135433oag.4 for ; Mon, 02 Jun 2014 12:29:49 -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=yZPTOxi4GAmNEU3AZKP/9S5Gad3OOQ27EHa3wUAAdE4=; b=O5sov5wQ5EaKsbOUaDRT6li9e1q1WH3UtoysXWClm+6JQmKcjx/j7OMctWD0hqunnL fQsNFxdzfCjk9s0V2KglO3OPV2Y5tV9zSXxiDohp36PPcu+gt8IPdJA3aZh/rV6dhpGO z9PxZrG/b5HSCV6OoLwccXvL7gho20kyQNqq5wTu5NUI3YbByV5+67ojvHZPOSNRZx6r xgsUqfpnZ4mstg0yKsUor2fPgDmvG0Nh6Wgkw9MG033TDdd2uR9ZxYM1msRTjSb7K1vi uaicNTI3CgrEZX6X7NgLCm/bgdwD/G2r7NzthgUZHrS3446ZYra/t8UWXEIg48AUAr8H Wuvg== 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=yZPTOxi4GAmNEU3AZKP/9S5Gad3OOQ27EHa3wUAAdE4=; b=kKo0NEKEtUSaEubGR5O0qyuAUliy0OdGDzMs5Ogggmh9QOihf5IeOxfGGR51Kb4v6p KHERuhuqxsfaHRC/TWyZb9tEQmH8XvpGOP+t9nEVCVepYhtzOMqUKqhPbRS910IIEg1w 2LFW3yg3MKP5bdZBgdgobe90eCEqvuu7v8h5E= 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=yZPTOxi4GAmNEU3AZKP/9S5Gad3OOQ27EHa3wUAAdE4=; b=PlytPV7qg+H5HcRs9VqUbZeQ8e5hECH+PqbIkIxoRIBuHZDDL4KZdEImLuI4Razooq GEaYDElFyud6kf6581zxEIuJ3LJX0YrNoJJCMoG5FFm4DFLh2tLgUuERFUTV0JDh6weZ /6FYccC5tsM9hatd7JwDlp7pNdzrNK10euvWt5Rht9JjWnz0nYPJRgnt8CxCD0BTUvH6 mJ/CTeq5I2KK6jTN4U1rlqTpGCO1LXQADLn5MQ0WL8ytERpEqHykMd+Yz1GeUx/xNZzK aEZdlXrvTujnn8dPKNYm79XMfukHRX3m19REGYISCdYdT49usRFZnDvL1aGS6EM7OCgx xNmg== X-Gm-Message-State: ALoCoQkDl6UDDoXVh4s6RXaHMeWyMbWeGBVBfGlJXll0xp94DJApx6Is+hyW3gC/rKXjy/5oHuk8 X-Received: by 10.182.28.104 with SMTP id a8mr40993223obh.30.1401737389662; Mon, 02 Jun 2014 12:29:49 -0700 (PDT) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.182.135.40 with HTTP; Mon, 2 Jun 2014 12:29:29 -0700 (PDT) In-Reply-To: References: <365a26f7a01d4fa59c36ca36b64a042c@DM2PR03MB366.namprd03.prod.outlook.com> From: Andrew Grieve Date: Mon, 2 Jun 2014 15:29:29 -0400 X-Google-Sender-Auth: 7bArM6dVYQcE1TBtnDmEj9k-tH0 Message-ID: Subject: Re: adding platforms to npm for dependency sanity To: dev Content-Type: multipart/alternative; boundary=089e015372c62e03c504fadf6b6a X-Virus-Checked: Checked by ClamAV on apache.org --089e015372c62e03c504fadf6b6a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Not sure what your question is. On Mon, Jun 2, 2014 at 2:03 PM, Brian LeRoux wrote: > *ahem > > > On Wed, May 28, 2014 at 11:20 AM, Brian LeRoux wrote: > > > npm i cordova-ios@3.5.0 > > > > Right? > > On May 27, 2014 11:06 PM, "Andrew Grieve" wrote: > > > >> Lazy loading is what will give us the ability to support multiple > versions > >> of platforms. > >> > >> If we don't support users choosing the version of the platform they > want, > >> then they will resist updating their version of CLI (like they do righ= t > >> now). > >> > >> I'm very keen to allow users to chose their platform versions, just as > >> they > >> are able to choose their plugin versions. > >> > >> > >> > >> On Tue, May 27, 2014 at 5:57 PM, Mark Koudritsky > >> wrote: > >> > >> > +1 > >> > > >> > Steve published (some of?) the platforms on npm as part of the lates= t > >> > release. > >> > https://www.npmjs.org/package/cordova-android > >> > https://www.npmjs.org/package/cordova-ios > >> > > >> > CLI already require()s npm for downloading plugins from the registry= . > >> > Extending this to platforms is on my todo list for this\next week. > >> > The "lazy" part of the loading was about caching, so we don't lose i= t > >> since > >> > npm does its own caching. > >> > > >> > > >> > > >> > On Tue, May 27, 2014 at 5:42 PM, Parashuram Narasimhan (MS OPEN TECH= ) > < > >> > panarasi@microsoft.com> wrote: > >> > > >> > > +1. This will also be a step towards releasing platforms > >> independently. > >> > > Will the CLI have a semver like dependency on the platform specifi= ed > >> > > somewhere ? Would the cli have to require('npm') and do the instal= l? > >> > > > >> > > -----Original Message----- > >> > > From: brian.leroux@gmail.com [mailto:brian.leroux@gmail.com] On > >> Behalf > >> > Of > >> > > Brian LeRoux > >> > > Sent: Tuesday, May 27, 2014 2:20 PM > >> > > To: dev@cordova.apache.org > >> > > Subject: adding platforms to npm for dependency sanity > >> > > > >> > > We've discussed this but I'm not sure the whole idea has > crystalized. > >> My > >> > > proposal (based on previous discussions) below. I'll use iOS as an > >> > example > >> > > but this applies to all platforms supported by the CLI. > >> > > > >> > > First, we'd add two files: > >> > > > >> > > cordova-ios > >> > > |-package.json > >> > > '-index.js > >> > > > >> > > =E2=80=A6I don't think I need to describe the utility of package.j= son but > >> > index.js > >> > > would expose programatic library apis: > >> > > > >> > > module.exports =3D { create:Function, run:Function, build:Function= , > >> > > clean:Function, log:Function} > >> > > > >> > > We then publish to npm. That is it for now. Ideal future CLI uses > >> > > platforms just like other deps. We lose lazy loading but network a= nd > >> disk > >> > > is cheap so it wasn't really important anyhow. > >> > > > >> > > Discuss! > >> > > > >> > > >> > > > --089e015372c62e03c504fadf6b6a--