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 419E5179C7 for ; Mon, 12 Jan 2015 04:43:48 +0000 (UTC) Received: (qmail 69967 invoked by uid 500); 12 Jan 2015 04:43:49 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 69922 invoked by uid 500); 12 Jan 2015 04:43:49 -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 69911 invoked by uid 99); 12 Jan 2015 04:43:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2015 04:43:48 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [64.202.189.19] (HELO m1plded02-02.prod.mesa1.secureserver.net) (64.202.189.19) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2015 04:43:23 +0000 Received: from listing-agent.com ([68.178.129.131]) by m1plded02-02.prod.mesa1.secureserver.net with : DED : id esgy1p06T2qERHw01sgz1z; Sun, 11 Jan 2015 21:40:59 -0700 x-originating-ip: 68.178.129.131 Message-ID: <54B35032.4070806@tmbsw.com> Date: Sun, 11 Jan 2015 22:40:18 -0600 From: "Terence M. Bandoian" MIME-Version: 1.0 To: dev@cordova.apache.org Subject: Re: Automatically installing missing platforms from cli References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Creating directories and downloading and installing files is a lot of "magic" that may not be desired. Here's another Git example: $ git commit -m "commit test." On branch development Changes not staged for commit: modified: html/data/topics.json modified: html/topics.html no changes added to commit $ git status On branch development Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) modified: html/data/topics.json modified: html/topics.html no changes added to commit (use "git add" and/or "git commit -a") On a related note, is there a diagram somewhere of all the cordova-cli commands and their associated options? -Terence On 1/10/2015 7:38 PM, Andrew Grieve wrote: > "cordova run" already builds before running (unless you add --nobuild). I > think it'd be pretty annoying if we had run fail with a "you need to build > first" kind of message. > > In my mind, cordova-cli's purpose is to add magic. Otherwise, you would > just use plugman+platform scripts (and yes, some people do and that is > okay). > > I think it would be awesome if you could clone a project, type "cordova run > ios" and have it do everything necessary to run the app (install, build, > and deploy). > > > > On Fri, Jan 9, 2015 at 8:13 PM, Jesse wrote: > >> what does `cordova run ios` do in windows? >> or: >> `cordova run wp8` in mac? >> >> Note that recent changes allow you to `platform add ios` in windows, but >> run will always be an error. >> Personally, I am with Terrance on this. Magic should be used very >> carefully. >> >> -------------- >> $ git on up >> git: 'on' is not a git command. See 'git --help'. >> >> Did you mean one of these? >> clone >> log >> notes >> svn >> >> >> >> @purplecabbage >> risingj.com >> >> On Fri, Jan 9, 2015 at 4:53 PM, Terence M. Bandoian >> wrote: >> >>> Seems to me that: >>> >>> cordova run ios >>> >>> should do just that. If the platform has not been added, I'd suggest >> that >>> it fail with an informative message that could include the command to run >>> to resolve the problem (similar to Git bash). At this level, deducing >> the >>> user's intentions has the potential to get messy in a hurry both in the >>> code and for the user. >>> >>> -Terence Bandoian >>> >>> >>> >>> On 1/9/2015 12:47 PM, Michal Mocny wrote: >>> >>>> I'd like to have cordova-cli automatically install missing platforms >> when >>>> it is obvious that the platform is required. i.e.: >>>> >>>> cordova create Foo && cd Foo >>>>> cordova run ios >>>>> >>>> ..should just `cordova platform add ios` automatically. >>>> >>>> It appears that this was already added to phonegap-cli. Would Adobe >> mind >>>> donating this to cordova-cli, or is it different enough for me to just >>>> start from scratch? Should be easy, but don't want to duplicate effort. >>>> >>>> Filed: https://issues.apache.org/jira/browse/CB-8283 >>>> >>>> -Michal >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org >>> For additional commands, e-mail: dev-help@cordova.apache.org >>> >>> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org