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 2CE94C8DB for ; Sun, 11 Jan 2015 01:40:52 +0000 (UTC) Received: (qmail 13007 invoked by uid 500); 11 Jan 2015 01:40:53 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 12964 invoked by uid 500); 11 Jan 2015 01:40:53 -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 12948 invoked by uid 99); 11 Jan 2015 01:40:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jan 2015 01:40:52 +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 (athena.apache.org: domain of agrieve@google.com designates 209.85.216.42 as permitted sender) Received: from [209.85.216.42] (HELO mail-qa0-f42.google.com) (209.85.216.42) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jan 2015 01:40:48 +0000 Received: by mail-qa0-f42.google.com with SMTP id n8so11678936qaq.1 for ; Sat, 10 Jan 2015 17:38:57 -0800 (PST) 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=scJ6cHnoOevdLNJm/9l9lx9TAJ9b7pnWYdpz3IfHFp4=; b=RCYALYNymPrIw98NSUfWGKEPkDuRYwdh7xu5EEtK5zwTe9y9mUq+8Bq9ZQiSC4eSvj mGEv9V9vZJjCZL3mKTYKZzP7n+Dpm9uR5Sksc+43oMELrliwZdHAY/veywZQefglBXUp W09KWjdFSjOTBZ9zn6B6DzQHs4pnNz3mV8yZN8gV2z9AxoRiKY7MDlao6PIbVJRrwZM4 uLW8eKxKgqZBxdz303fYPnsVxmpKTq5rBz0cbcwNOoWMI+gX7Uwx2YnNzBrJZVpNgJOq Jr+2kW7Up9R4a1INk48vRtx+3/XRYlbI3BJ/mZp8JOKoct8LuFjOBqST4vBrstBDlhn5 nm+A== 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=scJ6cHnoOevdLNJm/9l9lx9TAJ9b7pnWYdpz3IfHFp4=; b=QxYa2prauUKspBi+ME17MHsZaBpo5J57T35H4dSFdXiV7VO2zKqNr/FhG5/niNE01p C2jIwFTbs/O4FzyIH82bgo3mahsxkpAZpUT/LX6YvZWzOoCY7f+J9r6Ye5CflnuXfHlq v3aoOzmHeDRhbmrCnFeLVUCjTqii9hayYabow= 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=scJ6cHnoOevdLNJm/9l9lx9TAJ9b7pnWYdpz3IfHFp4=; b=lIymLaOrzFZw54Ocs8diw82xB3sTczt7TEGxXeLBnejgkTVL2BzZ/oq/xp2IiaL76I YTFoNaT1Bg3wlU2l73ijXTmsbn6Q/ym1X5ABYrYJDCR5Wap2GT162VDyj6Z7pNT+XqKD VSvgOUMtXzSRbsL00AlXZZQOYbTyHgO5Q3fcdGQij9+/48WmTzfuXLZBdxJeu4LO5/mK LMgqLq9R2Uaxt+Et6UtgWvxvVVNO/zaHWOGx9ozcEpA1X3JNui7I2WzDhHqPDCLPt5Pm 9BGPalDjopm6n9FUHdYepJyPplVr7MqfqZ1VTmQifEfnHyfUlSHaIE5ycjBHkT2AFpRf Wypg== X-Gm-Message-State: ALoCoQlLX9ovt+K1ONk+wE6cow/mmq5M0apcYqIOe5wRz9Hlrze/08FgIgH6aZuEfGsNc1KI75jZ X-Received: by 10.224.47.8 with SMTP id l8mr29016710qaf.20.1420940337736; Sat, 10 Jan 2015 17:38:57 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.140.101.74 with HTTP; Sat, 10 Jan 2015 17:38:37 -0800 (PST) In-Reply-To: References: <54B07804.9070206@tmbsw.com> From: Andrew Grieve Date: Sat, 10 Jan 2015 20:38:37 -0500 X-Google-Sender-Auth: N72APPl4VEVVeiVhgx1TyZbTYko Message-ID: Subject: Re: Automatically installing missing platforms from cli To: dev Content-Type: multipart/alternative; boundary=001a11c2c3c8140e12050c56745c X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2c3c8140e12050c56745c Content-Type: text/plain; charset=UTF-8 "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 > > > > > --001a11c2c3c8140e12050c56745c--