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 6617611E42 for ; Mon, 21 Jul 2014 18:43:26 +0000 (UTC) Received: (qmail 63832 invoked by uid 500); 21 Jul 2014 18:43:26 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 63794 invoked by uid 500); 21 Jul 2014 18:43:26 -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 63781 invoked by uid 99); 21 Jul 2014 18:43:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jul 2014 18:43:25 +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.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; Mon, 21 Jul 2014 18:43:23 +0000 Received: by mail-ig0-f180.google.com with SMTP id l13so3153615iga.1 for ; Mon, 21 Jul 2014 11:42:58 -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=LrXEiIA59OvnqqUOSzlfCuxs3ynt83RhVcBe05f5ppQ=; b=FbORQK7oL4oPQLevXZmbC9t2fbJujcr3xHHSG/+SV1fuENeFwQ+VONKDR6seujo8CM E/1itFgFM6n7cWBp5vdhaHuC6GgxAqbIIkHXBi8lugK0dcaAIuOMTKmZgXlJXIHAfNMT EMCMTOqPcBOpMof/2PHwEol+CAKYnB7EIp9pbWTyN2WYxhIEpmg1nEkMdPomVA3F3veA JdaASPazORnfT0o+hGzbz8vS3xJWxsKlbEXwHOv+Q2iF4/dypa3H1zA4aPWb58+ge6rg nk6o+Dv/twzXV2ND6OurgOcwglMF8X9wYkC7lwVadZ5rfL6zYL8+5Fuc3vAaaAnH7f5V /PUA== 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=LrXEiIA59OvnqqUOSzlfCuxs3ynt83RhVcBe05f5ppQ=; b=adC+RNRD6bkFZvPnf38nABRt/4FV+TZKTvwOjuc4w+LqyAychNLTP2CDe5Uytgwctl DkBtgTLnXmObvZwyfJIvnj1v7Jcu7sfN2r88ZbloOHIn+sNyZY3frFr6nka6tTWJMDun tff3ahg4O2SBQ7+6HJvMYyMa3IYVO/zlaTGOk= 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=LrXEiIA59OvnqqUOSzlfCuxs3ynt83RhVcBe05f5ppQ=; b=I9lXvSCm1fFOkJ6xDu9cS4h0wGf46eDcjpiXcil6+xeTDou+T4wNAa/d4WFfR6NKJ3 DrTbBantvZbJomkFIK0bvH+MW7Qvi00DC0/YAvWuAZEMsd4BuV+BOylOPFwVt04rBBQG 3a1v1tjcIfJVG08lEDCy1HTdtp3albc+i/Z/2VtRticeyeYTwjnDQIfyABf2YUZy8Gch WI4grig4FPJAlUtmTuEOtmo0fRlH+eD/oKhv0KG79ES0LwV5b/yJ3FJktrNE0YMSsxhC heDmbzAVgFwVCUqFoUf7sF4H4Xh9isQFhZxcuxeqJgDDuPmOgwwKiMM/5wq/rapj3SEP Xfew== X-Gm-Message-State: ALoCoQkxcDV9IvBXbxP6QTq3sch1gp0UCM7HnGt9dYr6EG5nh6tzXynhfs5PMg6DbZnA8BDYODqO X-Received: by 10.50.110.103 with SMTP id hz7mr8093049igb.10.1405968178293; Mon, 21 Jul 2014 11:42:58 -0700 (PDT) MIME-Version: 1.0 Sender: mmocny@google.com Received: by 10.64.162.129 with HTTP; Mon, 21 Jul 2014 11:42:38 -0700 (PDT) In-Reply-To: References: <1405964044398.33111@adobe.com> From: Michal Mocny Date: Mon, 21 Jul 2014 14:42:38 -0400 X-Google-Sender-Auth: KNfAtSdtcWY1ew0K0E5E_zKuksY Message-ID: Subject: Re: When is .cordova created? To: dev Content-Type: multipart/alternative; boundary=089e01183756d5501d04feb879b3 X-Virus-Checked: Checked by ClamAV on apache.org --089e01183756d5501d04feb879b3 Content-Type: text/plain; charset=UTF-8 That directory is optional. It will only exist if you have non standard config options. When using --link-to and --copy-from, we set the config option { "lib": { "www": { "uri": ..., link: true/false } } }. We also set config settings for e.g. Custom platform paths and plugin search paths. Since Mark added the ability to specify search path from the command line, and to add platforms by path directly, there are fewer and fewer reasons to have a custom cordova config file. (Also, do we really even needed the lib.www.url setting saved in there when using --link-to/--copy-from?). Theres even an autoPersist setting which specifies if config file changes should apply temporarily or be written out to disk. There's also the question of how cordova config files *should* look like in the future (see app config.xml vs platform config.xml vs .cordova/config.json vs app manifest.json), or even what it means to be a cordova workspace (see gulp/grunt workflow suggestions). So, while I see the value of having one file that guarantees marking a cordova project, I'm hesitant to mandate the existence of the .cordova folder. Up till now, we've been using `cordovaLib.cordova.findProjectRoot()` to find the root of a cordova project. That helper should probably be improved a bit, but its worked well enough in practice. Its probably a good candidate for breaking out into its own node package. -Michal On Mon, Jul 21, 2014 at 1:41 PM, Shazron wrote: > My guess is ever since hooks were moved out of .cordova to hooks/ the > creation of .cordova by default wasn't removed also when using > --copy-from. > > On Mon, Jul 21, 2014 at 10:34 AM, Ray Camden wrote: > > (This question feels like it *should* be appropriate here, but if I > should raise it on the PG Google group, I will.) > > > > I recently released a Brackets extension that wrapped calls to the > Cordova CLI. I wrote some simple logic to handle checking if a folder is a > Cordova project. I simply looked for a subdirectory called .cordova. > > > > But a user told me the extension wasn't correctly seeing a Cordova > project and when I tested, it looks like the default cordova create command > will not make the folder. It only exists (so far in my testing) if I create > a new project and use --copy-from. > > > > Is there a reason why .cordova doesn't always exist? > > > > Worse comes to worse, I may just use some logic to see if platforms, > plugins, and www exist as subdirectories. > --089e01183756d5501d04feb879b3--