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 4F8381825B for ; Sat, 24 Oct 2015 02:13:46 +0000 (UTC) Received: (qmail 42073 invoked by uid 500); 24 Oct 2015 02:13:46 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 42030 invoked by uid 500); 24 Oct 2015 02:13:46 -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 42018 invoked by uid 99); 24 Oct 2015 02:13:45 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Oct 2015 02:13:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4A87718099A for ; Sat, 24 Oct 2015 02:13:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.15 X-Spam-Level: *** X-Spam-Status: No, score=3.15 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id XYEK5SeNPcap for ; Sat, 24 Oct 2015 02:13:33 +0000 (UTC) Received: from mail-vk0-f41.google.com (mail-vk0-f41.google.com [209.85.213.41]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 2843A25465 for ; Sat, 24 Oct 2015 02:13:32 +0000 (UTC) Received: by vkex70 with SMTP id x70so72989672vke.3 for ; Fri, 23 Oct 2015 19:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=d/KiwnYiiDIsuoWe45z6UGFHNWocDIJo7kDOADKpLDQ=; b=BPNJuWHw2i2aZY9a2jdSQAxSX2uzFEYdY3w05WvyeqAi6m4GHycGIOfb22pihXMyJE DBIgSEd/l/1Wt2Hp3aQnh9vXSLaI9viMz5+DWixDF2E7YNhm9agxrtYRTVSNxIHxgP+F OlXX2vN3Qil6zTLt8tre+9BLWC9bc9PqeMDvga0OszGpYO2+6IU+ODyF6YCejMnTOmmq Ly/h5Tm5jexDAEX/uMQdxDRDIV3tl/5AWVz+G+E7/bpi2xHgs24b4PJMmZl4oX94aQqo xbj0h6JfImPsGi7P1QmHGmzn3medGv2cxcEyNKiDYJqevispoS9JIXC1BV6x85XKN0fi ax1g== X-Received: by 10.31.179.194 with SMTP id c185mr8561175vkf.68.1445652811154; Fri, 23 Oct 2015 19:13:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Carlos Santana Date: Sat, 24 Oct 2015 02:13:21 +0000 Message-ID: Subject: Re: npm install on cordova platform/plugin add To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a1143ac62470afb0522d0465c --001a1143ac62470afb0522d0465c Content-Type: text/plain; charset=UTF-8 The requirement will be that 3rd party plugins put exact versions of dependencies, not assuming that user will need to run npm install or npm update after adding the plugin to refresh the npm dependencies Apache Foundation Cordova Platforms and Plugins should ship with it's dependencies bundled, or use exact versions for dependencies. This way all users get the same software at the time of adding a platform or plugin. If not it becomes a big mess of having a certain version of the platform or plugin if not guarantee to have the same software as everyone else (not reproducible, not consistent) On Fri, Oct 23, 2015 at 7:39 PM Steven Gill wrote: > Issue: https://issues.apache.org/jira/browse/CB-9858 > > > On Fri, Oct 23, 2015 at 1:05 PM, Mefire O. wrote: > > > Ah, it makes sense in both platforms and plugins. > > > > Thanks, > > > > -----Original Message----- > > From: Steven Gill [mailto:stevengill97@gmail.com] > > Sent: Thursday, October 22, 2015 4:46 PM > > To: dev@cordova.apache.org > > Subject: Re: npm install on cordova platform/plugin add > > > > Yeah. Cordova-common is the main reason for platforms. IMO It doesn't > make > > sense to check it into platforms. It makes sense to have it as a > > bundleDependency but if you cordova platform add it via git url, the > > dependency won't be around. Hence the npm install On Oct 22, 2015 4:24 > PM, > > "Darryl Pogue" wrote: > > > > > One example would be the ios-sim and ios-deploy node modules that the > > > iOS platform needs for launching the simulator and deploying to a > device. > > > Currently these are bundled dependencies and checked in to git. > > > > > > Another example is the Platform API that's been added to > > > cordova-android, which depends on cordova-common. > > > > > > On 22 October 2015 at 16:17, Mefire O. wrote: > > > > > > > I can definitely see the case for adding deps specified in plugins' > > > > package.json, which is to make 'tools plugins' development easier. > > > > > > > > But I don't understand the use case for platforms. What scenario are > > > > we trying to fulfill there ? > > > > > > > > Thanks, > > > > Omar Mefire > > > > > > > > -----Original Message----- > > > > From: Steven Gill [mailto:stevengill97@gmail.com] > > > > Sent: Thursday, October 22, 2015 2:54 PM > > > > To: dev@cordova.apache.org > > > > Subject: npm install on cordova platform/plugin add > > > > > > > > We discussed running `npm install` on `cordova plugin add` at the > > > > Cordova F2F. > > > > > > > > I want to see how people feel about this. > > > > > > > > For installing a platform via git url, the dependency won't exist > > > > unless we check it in to the repo. This can cause problems. > > > > bundleDependencies > > > are > > > > only useful for installing via npm > > > > > > > > For platforms: > > > > > > > > i believe this is how it would work: > > > > > > > > Adding via `npm` > > > > > > > > 1) `cordova platform add ios` > > > > > > > > 2) cordova fetches `cordova-ios` from npm, adds it to global cordova > > > > directory > > > > > > > > 3) I'd like tools to run `npm install` , but these deps are most > > > > likely already included in fetched version due to > > > > `bundleDependecies`. So it wouldn't do anything > > > > > > > > Adding locally > > > > > > > > 1) `cordova platform add /YourLocalCordovaIOS` > > > > > > > > 2) cordova uses your `cordova-ios` > > > > > > > > 3) tools to run `npm install` which should have no impact (Assuming > > > you've > > > > done it manually) > > > > > > > > Adding via Git url > > > > > > > > 1) `cordova platform add > > > > > > > https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithu > > > b.com%2fapache%2fcordova-ios%60&data=01%7c01%7commenjik%40microsoft.co > > > m%7c8b52f2866d674b08c10b08d2db2b5347%7c72f988bf86f141af91ab2d7cd011db4 > > > 7%7c1&sdata=zdpqgA08JQxJ4h5DpWCpBiggl1RTZu%2fMN8gE%2fbXHPG8%3d > > > > > > > > 2) cordova clones it (i believe into global cordova directory) > > > > > > > > 3) tools to run `npm install` which is important because packages > > > > aren't bundled unless we manually check them in > > > > > > > > For Plugins > > > > It would allow plugins to have 3rd party npm dependencies and not > > > > have to check them in. This will be even more important once we > > > > switch to browserify method. > > > > > > > > Thoughts? > > > > > > > > > > --001a1143ac62470afb0522d0465c--