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 DD525FDD4 for ; Mon, 25 Mar 2013 14:32:31 +0000 (UTC) Received: (qmail 88053 invoked by uid 500); 25 Mar 2013 14:32:31 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 88019 invoked by uid 500); 25 Mar 2013 14:32:31 -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 88007 invoked by uid 99); 25 Mar 2013 14:32:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 14:32:31 +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 braden@google.com designates 209.85.214.54 as permitted sender) Received: from [209.85.214.54] (HELO mail-bk0-f54.google.com) (209.85.214.54) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 14:32:25 +0000 Received: by mail-bk0-f54.google.com with SMTP id q16so472778bkw.13 for ; Mon, 25 Mar 2013 07:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=edm2Z6in0K20HYJYk/pRIA2nvJWPInLZdDrafcxwf5E=; b=lVzZjZFdLHDX+hbqevfduvcucy5AV8FOMY7ZA+/m57FQk2CBlu0PDSFZ8+rM0RZ1cA GzdNpdtkBG8sI7wvafPosd02w2V6MgcyS2W7ttjm7Mm3YISaw56opcQR/GAORsUtNmGv VT++uzMQkhmkn3eJ8dZIr2E6JdQ7Gjnt0u/+Efi9cI++ilc2WAWJ2NPGSFZPoD+XwylW 3xHHAK47FfZTWdVzN3HW8d0N/t6kc4VeOv4eKUoaD6VhAD81u7Mxoz2ask32BoQtz3Uk BSjTEcLZSk7J9DzHDQrEnNO0UibqGtxSaWYO2lgvRWebpfyKcUUFEl4D548cJ90uqXRb kspQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=edm2Z6in0K20HYJYk/pRIA2nvJWPInLZdDrafcxwf5E=; b=DsQAcO4pBG0LUxRGnRl8sP6WCHjjdRLP0hx92kc2DuJpZl4DJWfPgjT09xnRrer5uU rYoYbRs1ydx1Fwcc3v6MCFRHtMAEMbFX5nyUgO0I/3uOOi7EYtXnpNe2i7ykF0WrFmgQ CWbv3EcrVaBoE5YoRTu37LUIybFSUjXpH0yD0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :x-gm-message-state; bh=edm2Z6in0K20HYJYk/pRIA2nvJWPInLZdDrafcxwf5E=; b=YkQspagptNAhu1Y9Dj5vj5x7Aiz/TXCudtJr3mUJgpmHZCKsEb1ApFeaELbJ2/bHDE quUI1W5o8rwoyUGW2T1xeuCMriV0Zk4xQcnY9hWChxFMUZRtK2RgF7qisTIgHFGrg5Hk VTlYHgBeYRrQOXlZjUV4C1mbkoJCcqDEd/JYR0lgVSD6y4P+uZMqol8wGkKsWW93zePz c8PLCaZcNPqv2CTZ10CccQ5jd0TFg8O7gEKkJcTjU46LdpaGP8uETMQN55ghsGJlYjJQ FyHL0gH15LNeOOd7g42pWugIpu/I4yRidrwUbt5i05P9fDj2aa5Inou27UqGYVE5d/YI MolQ== MIME-Version: 1.0 X-Received: by 10.204.224.75 with SMTP id in11mr5515444bkb.97.1364221925164; Mon, 25 Mar 2013 07:32:05 -0700 (PDT) Sender: braden@google.com Received: by 10.204.37.77 with HTTP; Mon, 25 Mar 2013 07:32:05 -0700 (PDT) In-Reply-To: References: Date: Mon, 25 Mar 2013 10:32:05 -0400 X-Google-Sender-Auth: KIIY4WaeH7TbTKF4dQPLYVdIqVQ Message-ID: Subject: Re: Moving www into an app folder From: Braden Shepherdson To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=485b3970d0763ed4c404d8c0ab3f X-Gm-Message-State: ALoCoQlcMl++ee0ewAxPsTChT/MN4+5psOW7O9aKaBNkppT39l1Za1rONKwZ9L38ADVfzgjfda9zuJkhQ7mdL51/ydHBo//rNhfDm1ORKr2HZEo+d48aXELDXWZyTLKtKnCZbY7GwZ+cS5ycgPBAxVUb1Wl6TjfRsmqBweRPXycJT/R1SQaP+SMdKD5mb0rLtqO/dWtGgz7z X-Virus-Checked: Checked by ClamAV on apache.org --485b3970d0763ed4c404d8c0ab3f Content-Type: text/plain; charset=ISO-8859-1 A big +1 from me for this world, Michal's option 2. I want to be able to cordova create , and have it create an empty project where the app/ directory is the git repo. Then a full project might look like this: platforms/ android/ ios/ plugins/ ... app/ merges/ ... www/ ... README.md config.xml docs/ etc... So I can have whatever meta-information I want inside my app/ (and therefore my git repo) - tests, docs, samples, etc. - but not inside the www that actually ships. This makes it sane to have just the app's files in git, but not the platforms/ or plugins/ directories. Braden On Sun, Mar 24, 2013 at 6:02 PM, Michal Mocny wrote: > So a few questions: > > 0. Do we want to support app distribution? Sample apps, Test Harness, > working in a team, open source projects.. hint at yes, but we could just > leave that to be done manually. > 1. Do we want to support app documentation? Where would you put it if you > wanted to ship it along with a app? > 2. Do we have any apps already using the merges/ folder? How do they ship > it? > > I suspect what would happen now is app devs would already need an app > folder to keep all the pieces, would cordova create a workspace, and > link/copy over www/ and merges/. > > If we wanted to support app distribution (such that say cordova create > ), we would need to support importing from an app folder (for > the two folder merges and www reason alone). Yet we currently plan to > unpack that app folder inside the workspace. > > -Michal > > > On Sun, Mar 24, 2013 at 5:22 PM, Brian LeRoux wrote: > > > Ya no worries we'll advocate on best for the project vs our particular > > downstream. File path handling, while tedious, is most certainly not a > > reason to block a reasonable change. > > > > I think this is reasonable but not convinced it is a win. > > > > On Fri, Mar 22, 2013 at 7:35 PM, Michal Mocny > wrote: > > > Ah yes, I see what you are asking. The point being that phonegap build > > > would need to change to work with the new structure. > > > > > > Its a fair point, and its important generally to not harm downstream > > > distributions on purpose, but I think we generally should do whats best > > for > > > cordova and give downstream every opportunity to adjust. With this > > > particular proposal I can only image it would not be a problem, > > especially > > > if they use the same tools internally (but the actual phonegap build > team > > > should speak here). > > > > > > -Michal > > > > > > > > > On Fri, Mar 22, 2013 at 10:27 PM, Tommy-Carlos Williams > > > wrote: > > > > > >> I just mean that build expects config.xml to be in www, yeah? > > >> > > >> > > >> > > >> On 23/03/2013, at 1:12 PM, Michal Mocny wrote: > > >> > > >> > But isn't the app incomplete without the merges folder? Most apps > > >> probably > > >> > don't use it, but for those that do, a zip of www isn't enough, you > > >> already > > >> > need to ship more than just the www folder. Creating an app folder > > would > > >> > actually make the situation easier I think. > > >> > > > >> > project > > >> > - platforms > > >> > - .. > > >> > - plugins > > >> > - ... > > >> > - app(s?) > > >> > - www/ > > >> > - merges/ > > >> > - config.xml > > >> > - README.md > > >> > - docs/ > > >> > - etc stuff that doesn't get copied into platform/ output on build > > >> > > > >> > > > >> > (oh, and hey, notice the similarity in structure to plugins? just > > >> sayin..) > > >> > > > >> > > > >> > > > >> > On Fri, Mar 22, 2013 at 7:00 PM, Tommy-Carlos Williams > > >> > wrote: > > >> > > > >> >> Can I just ask a question about this? > > >> >> > > >> >> Is the config.xml supposed to be compatible with > build.phonegap.comat > > >> >> all? > > >> >> > > >> >> I ask because I could see a scenario where you might want to use > the > > cli > > >> >> tools, but still utilise build.phonegap.com for other platforms > (or > > >> even > > >> >> for the ones supported by the cli). > > >> >> > > >> >> If the cli config.xml is "build" compatible, it makes sense for it > > to be > > >> >> in the www folder so that the www folder can go straight to > > >> >> build.phonegap.com. > > >> >> > > >> >> > > >> >> > > >> >> On 23/03/2013, at 9:15 AM, Brian LeRoux wrote: > > >> >> > > >> >>> I'm ok with ./merges at the same level as ./www but the config.xml > > >> >>> inside of ./www bugs me too. I think having a root level ./www > just > > >> >>> works well mentally in that its obvious whats there, what it does, > > and > > >> >>> who it effects. The ./merges folder is really just stuff that gets > > >> >>> added to ./www in the right cases so having at the same depth is > ok > > >> >>> (for me). > > >> >>> > > >> >>> I get where you are coming from though. > > >> >>> > > >> >>> The real sticky bit is a config file hiding with the app > > >> >>> implementation. It seems like that would live at the root. The > idea > > of > > >> >>> having it inside of ./www is a simple zip and rename of ./www > would > > >> >>> result in an installable package...but logically with our tooling > > and > > >> >>> such that would be a build artifact that just lives in ./platforms > > >> >>> after we do our magic. > > >> >>> > > >> >>> =/ > > >> >>> > > >> >>> > > >> >>> On Fri, Mar 22, 2013 at 1:24 PM, Michal Mocny < > mmocny@chromium.org> > > >> >> wrote: > > >> >>>> Paraphrasing our meeting notes today: > > >> >>>> > > >> >>>> * currently www/ has to have config.xml inside it, docs inside > it, > > >> >> README > > >> >>>> etc > > >> >>>> * merges folder is already a sibling of www/ but its logically > > part of > > >> >> the > > >> >>>> app. > > >> >>>> * So, why not move everything that isn't the actual assets of the > > app > > >> >>>> itself out of www? > > >> >>>> * Option 1: move everything out into the root. > > >> >>>> * harder for git versioning your app, since cordova artifacts > > >> >>>> (platforms, plugins) are inside. > > >> >>>> * Option 2: make a new top level "app/" folder that holds merges/ > > and > > >> >> www/ > > >> >>>> and manifestes etc > > >> >>>> * then you can just clone/install an app into one location > > >> >>>> > > >> >>>> > > >> >>>> And I'll throw out a third option: Create an "apps" folder which > > can > > >> >> have > > >> >>>> any number of named apps, like plugins. > > >> >>>> > > >> >>>> > > >> >>>> I think (2) should be totally doable (just change some default > > paths > > >> in > > >> >> the > > >> >>>> tooling) and is a strict improvement (minus the hassle of moving > > your > > >> >> files > > >> >>>> around the first time for app devs). (3) I think is interesting, > > but > > >> >> is a > > >> >>>> bit of a departure. > > >> >>>> > > >> >>>> -Michal > > >> >> > > >> >> > > >> > > >> > > > --485b3970d0763ed4c404d8c0ab3f--