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 67DD4DAB8 for ; Tue, 12 Feb 2013 18:19:57 +0000 (UTC) Received: (qmail 37395 invoked by uid 500); 12 Feb 2013 18:19:57 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 37350 invoked by uid 500); 12 Feb 2013 18:19:57 -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 37342 invoked by uid 99); 12 Feb 2013 18:19:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 18:19:57 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FRT_ADOBE2,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.214.48 as permitted sender) Received: from [209.85.214.48] (HELO mail-bk0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 18:19:51 +0000 Received: by mail-bk0-f48.google.com with SMTP id jf20so172397bkc.21 for ; Tue, 12 Feb 2013 10:19:31 -0800 (PST) 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=dC55lg+cQ7L+t3CkwcRN9nH5VBI0aAoTWtIIgfWmmt8=; b=hPIrktxGj6qC3yL0anfwTkLu5oMbgynw7dmG6EiKLDGUTFn+a7QXL174TmDMkwHvYW X3u/zxy0KswH3F8wsauOcXrkME35+io0goYPrVh2JQrKh+VcBOEnwNdvUrcompB746Vp h8wYvLSnixdTD68Q0HlFiCJwN1K1H4yNNAMX328oIW6R2D2ssFfgENid7cLv8UDwL1g3 +gjE5wzIE8b6z/wAwEoCJCXGr01pjqSazCnL8S0Zutb+FITXdbraodrzPvPAVR0Z4F3h b+0cwKQ5DoV7oLjN71j/aYW9nbW95+uPyFFAwJO6wavmYi0K8xQACKHA8UwelFAB96Ta IsvA== 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=dC55lg+cQ7L+t3CkwcRN9nH5VBI0aAoTWtIIgfWmmt8=; b=b7T99/MNbQnnKHokITYsBPOg4FYR0TIgh+7t7BlDwvmJ0Y6xIjHfMRueE/dOkbuqdP F50Mp+0KPbjJ7kBMtC7Ye1zqCIqghjfNt/DG6wPWHZxUlrN8lDRTVfsWvjl1Fugttips 1tqO4ascSV01n4C1z/IC1tK572Mumo4mTvhJ4= 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=dC55lg+cQ7L+t3CkwcRN9nH5VBI0aAoTWtIIgfWmmt8=; b=I5agUFxW0ezj3AWtapvoeDm7KSim7dc6XymiygZf3NJZN1pJqscVnlVvzgmYqK1MjG nceMUG+0rhJTA6xDOl4GehxM7nv9PKHY19Q2hK7o0qHf27hgklt1n+PQgxnDmheL3zv9 Jfy3W+LqOl49PXoRQrCuWn6WhPPBSA2TRKqSBGYnZsj+DZTYuxtfLW9teEr8GHh5ilPH KuGzBhnnrT8BNo07dI/VdhblgYTOLkzG5jxEBTMaBHS1VNL0plE58+w2WBmFiQJIN7Y0 QZvzzp/pg2vNp/l63njk7wwOqRDvtD71acnRy9F+KAHNmgQdSpG6J/ZvamlkhrS12LDA wyYg== MIME-Version: 1.0 X-Received: by 10.204.153.1 with SMTP id i1mr2073921bkw.20.1360693170815; Tue, 12 Feb 2013 10:19:30 -0800 (PST) Sender: mmocny@google.com Received: by 10.205.131.203 with HTTP; Tue, 12 Feb 2013 10:19:30 -0800 (PST) In-Reply-To: References: Date: Tue, 12 Feb 2013 13:19:30 -0500 X-Google-Sender-Auth: HRzn1_sKpzdjqk61jZ32jZ_0iMw Message-ID: Subject: Re: cordova command cli and merges concept pull request From: Michal Mocny To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=0015175cb28418424704d58b1191 X-Gm-Message-State: ALoCoQk9O3txZKUhrWAiPJyzQPJHSnn1sznmmu3LoWuBI2ClQ5pk4d+2oJFRiR6bWY+1HpWOGWWQdKs9+/jpjvZjircboik08FlLIOO0mi+of0zzLxBZ5ZwZaVOpIF3DM8dGnjzFROw7UKIKqGlA4wm9UgU1bw/FMOZ2qNJ+2BZFxQdzcmSy4/K5XzrrjzEorVYfa5HI9Cjj X-Virus-Checked: Checked by ClamAV on apache.org --0015175cb28418424704d58b1191 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Feb 12, 2013 at 1:11 PM, Brian LeRoux wrote: > Splash screens and making an app a type of super plugin are rad ideas > for other pull requests. ;) > > Attached image of me when idea of making an app a plugin came up. No you didn't ;) > On Tue, Feb 12, 2013 at 5:58 PM, Michal Mocny wrote= : > > Perhaps this is crazy, but: We already have all this awesome > functionality > > for plugins -- would it be impossible to just implement an app as a > plugin? > > > > > > On Tue, Feb 12, 2013 at 12:59 PM, Filip Maj wrote: > > > >> BTW, Michael love the pull req, but is there any chance you can add > tests > >> for it? > >> > >> On 2/11/13 8:28 PM, "Michael Wolf" wrote: > >> > >> >Hey all: > >> > > >> >I submitted a pull request for an enhancement of the addition of a > merges > >> >folder/concept into the cli build process. > >> > > >> >https://github.com/apache/cordova-cli/pull/3 > >> > > >> >The concept of merges is pretty simple, to support a common core web > base > >> >across platforms, but allow for deploying platform specific www conte= nt > >> >to specific platforms. The addition to the CLI tool adds a new folde= r > >> >"merges" to the root level. Upon running "cordova platforms add|remo= ve > >> >platform" a new folder is created under the "merges" folder (ie: > >> >merges/ios , merges/android etc). Upon running "cordova buid" any > >> >content added to this folder will be deployed to the associated www > >> >folder in the platforms. This carries for either new content being > >> >added, or more importantly overrides existing content from the www > >> >folder. For a very simple example imagine you have a css file named > >> >css/chrome.css in the www folder, where you could have .backButton { > >> >display:block;} , but then under merges/android/css/chrome.css you > could > >> >have .backButton{display:none;}, this is a very simplistic use but it > >> >illustrates the concept. This additional workflow to the build system > in > >> >the cli enables some great processes for building a nice clean cordov= a > >> >app for example. > >> > > >> > > >> > * Allows for keeping code clean and limits the need for platform > >> >specific js logic per platform > >> > * Enables a process of mocking in custom plugins for in browser de= v > >> >(mocks under www real implementations under merges) , and not risking > >> >this code filtering into production/device code > >> > * Allows for creating platform specific assets such as css / font = / > >> >images/ videos etc that only gets merged into the specific desired > >> >platform > >> > * Allows for accepting that each platform is unique and sometimes > need > >> >specific logic and or shims, and always deserves the platform specif= ic > >> >love, and the build process should support doing this cleanly > >> > > >> >Anywho =C5=A0.. Would love to see this integrated in. > >> > > >> >Thanks > >> > > >> >mw > >> > >> > --0015175cb28418424704d58b1191--