Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 54DB1200B63 for ; Mon, 15 Aug 2016 21:56:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5369E160AA7; Mon, 15 Aug 2016 19:56:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C0826160A8A for ; Mon, 15 Aug 2016 21:56:56 +0200 (CEST) Received: (qmail 46167 invoked by uid 500); 15 Aug 2016 19:56:55 -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 46156 invoked by uid 99); 15 Aug 2016 19:56:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2016 19:56:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6B8A4DFF8D; Mon, 15 Aug 2016 19:56:55 +0000 (UTC) From: vladimir-kotikov To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-lib pull request #480: CB-11687 platform-specific plugin prepare hoo... Content-Type: text/plain Message-Id: <20160815195655.6B8A4DFF8D@git1-us-west.apache.org> Date: Mon, 15 Aug 2016 19:56:55 +0000 (UTC) archived-at: Mon, 15 Aug 2016 19:56:57 -0000 Github user vladimir-kotikov commented on a diff in the pull request: https://github.com/apache/cordova-lib/pull/480#discussion_r74823439 --- Diff: cordova-lib/src/cordova/prepare.js --- @@ -37,23 +37,25 @@ function prepare(options) { return Q().then(function() { var projectRoot = cordova_util.cdProjectRoot(); var config_json = config.read(projectRoot); - options = options || { verbose: false, platforms: [], options: {} }; + options = options || { verbose: false, options: {} }; + options.platforms = options.platforms || cordova_util.listPlatforms(projectRoot); --- End diff -- can we just call `cordova_util.preProcessOptions` here? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org