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 3972FF12F for ; Tue, 26 Mar 2013 05:36:36 +0000 (UTC) Received: (qmail 91966 invoked by uid 500); 26 Mar 2013 05:36:36 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 91845 invoked by uid 500); 26 Mar 2013 05:36:35 -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 91830 invoked by uid 99); 26 Mar 2013 05:36:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 05:36:35 +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 benn.mapes@gmail.com designates 74.125.83.43 as permitted sender) Received: from [74.125.83.43] (HELO mail-ee0-f43.google.com) (74.125.83.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 05:36:29 +0000 Received: by mail-ee0-f43.google.com with SMTP id c50so3634543eek.16 for ; Mon, 25 Mar 2013 22:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=tnPdENwkhlM9ZphC3I1d3MAuogH2ifmdh6Y1anupx84=; b=ScdktieJUYjsJgMSg/S1swwTsOg5dtDJxZlTdiFxQtg7nSMNhRqAozk2w4n685lbUl 7b+M3AJ2usQ6TjGe1ifB1GpOMzrOGItNooz389DbazzWD2MF1rLbUjSXkMl4IjJ5dxUW s12zEsd15VkeYEqdqY7IpFCQ+fF96a0iJ9yb3f2khNQyp1FEdNzi/U6wTcBy4v/SlMG2 LOqIt4IjJdKC3v4rMBNmCs78JGEoiXyqJVemv2GrLPp7l7ZhAqclRKawap4e+slMfKw5 kjhx/mdLFKtvFVAQYppRFti00qSJJA8bcsVpfv3fAAeZPyX0y4QQyzZ0NEnv8q4v4Ybt PD5Q== MIME-Version: 1.0 X-Received: by 10.15.34.198 with SMTP id e46mr41475599eev.27.1364276169104; Mon, 25 Mar 2013 22:36:09 -0700 (PDT) Received: by 10.223.73.205 with HTTP; Mon, 25 Mar 2013 22:36:08 -0700 (PDT) In-Reply-To: References: Date: Mon, 25 Mar 2013 22:36:08 -0700 Message-ID: Subject: Re: [windows] Scripts for Windows Phone From: Benn Mapes To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=089e0160c9f26f7fd504d8cd4c3c X-Virus-Checked: Checked by ClamAV on apache.org --089e0160c9f26f7fd504d8cd4c3c Content-Type: text/plain; charset=ISO-8859-1 Yah, the difference is that Windows Phone has multiple of these templates so that's why i wanted to pull the cordova folder it out. Sounds like we're on the same page now so i'll go ahead and do that. On Mon, Mar 25, 2013 at 8:24 PM, Filip Maj wrote: > Yes sounds good. Most other platforms implement it in this way: > > - Android's create script [1] uses a templates folder [2] that it makes > copies of on-create, which contains (among other things) the cordova > folder [3]. > - Blackberry does a similar thing [4] > - so does iOS [5] > > [1] https://github.com/apache/cordova-android/blob/master/bin/create#L159 > [2] https://github.com/apache/cordova-android/tree/master/bin/templates > [3] > https://github.com/apache/cordova-android/tree/master/bin/templates/cordova > [4] https://github.com/apache/cordova-blackberry/tree/master/bin/templates > [5] https://github.com/apache/cordova-ios/tree/master/bin/templates > > On 3/25/13 5:45 PM, "Benn Mapes" wrote: > > >I could be reading your responses wrong but, this does not answer my > >proposal, maybe I wasn't clear enough. > > > >For the windows platform there are multiple templates, there is the full > >template which includes a dll of the cordovaLib(native code) and a > >standalone template which uses the source code. > > > >Right now there cordova folders within each of these containing all the > >project scripts (when you create a project it will use one of these > >templates - default is full template). My proposal was to pull the cordova > >folder out of the templates and put it in one spot so there isn't any > >duplication of these scripts which will add more consistency. Then when > >create is called, it will just copy that single cordova folder containing > >all the scripts into the created project folder. > > > >Does that make sense? > > > > > > > > > >On Mon, Mar 25, 2013 at 1:48 PM, Filip Maj wrote: > > > >> We already have established spots for scripts. > >> > >> Global scripts: > >> > >> cordova-/bin/create > >> cordova-/bin/check_reqs (in the works) > >> > >> > >> Project-level scripts: > >> > >> Myapp/cordova > >> Myapp/cordova/lib (soon to come) > >> > >> On 3/25/13 1:38 PM, "Benn Mapes" wrote: > >> > >> >Right now most of the scripts for windows phone except create are in > >> >/tooling/scripts/ > >> >and there are duplicate cordova folders in each template (/templates/*) > >> >folder with the emulate and debug scripts for deploying to > >>emulator/device > >> >respectively. > >> > > >> >In light of the recent scripting discussion I would like to propose > >>moving > >> >all the scripts that will go into the cordova folder of a project into > >> >/framework/cordova/ (or maybe /tooling/cordova/). This folder can then > >>be > >> >copied into a new project when the create command is called. > >> > > >> >That way we only have one place where all these scripts reside, > >>instead of > >> >having a cordova folder for each template. > >> > > >> >Thoughts? > >> > >> > > --089e0160c9f26f7fd504d8cd4c3c--