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 990C4200B8B for ; Tue, 4 Oct 2016 20:53:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 97C14160AEF; Tue, 4 Oct 2016 18:53:22 +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 DCA26160AC7 for ; Tue, 4 Oct 2016 20:53:21 +0200 (CEST) Received: (qmail 62863 invoked by uid 500); 4 Oct 2016 18:53:21 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 62572 invoked by uid 99); 4 Oct 2016 18:53:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2016 18:53:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8F58A2C0B05 for ; Tue, 4 Oct 2016 18:53:20 +0000 (UTC) Date: Tue, 4 Oct 2016 18:53:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-9157) coho command to create and copy cordova.js to platform MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 04 Oct 2016 18:53:22 -0000 [ https://issues.apache.org/jira/browse/CB-9157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15546288#comment-15546288 ] ASF GitHub Bot commented on CB-9157: ------------------------------------ Github user stevengill commented on a diff in the pull request: https://github.com/apache/cordova-coho/pull/141#discussion_r81827457 --- Diff: src/platform-release.js --- @@ -59,6 +59,36 @@ function cpAndLog(src, dest) { } } +/* + * A function that handles version if it is defined or undefined + * + * @param {String} repo current repo + * @param {String|undefined} ver current version that can be defined or undefined + * @param {String|undefined} validate current version that can be defined or undefined + * + * @return {String} version Returns the calculated version + * + */ + +function *handleVersion(repo,ver,validate) { + var platform = repo.id; + var version = ver || undefined; + + if (version === undefined) { + yield repoutil.forEachRepo([repo], function*() { + // Grabbing version from platformPackageJson + var platformPackage = path.join(process.cwd(), 'package.json'); + var platformPackageJson = require(platformPackage); + if(validate === true) { --- End diff -- This if/else should be tabbed as it is inside the `forEachRepo` block > coho command to create and copy cordova.js to platform > ------------------------------------------------------- > > Key: CB-9157 > URL: https://issues.apache.org/jira/browse/CB-9157 > Project: Apache Cordova > Issue Type: New Feature > Components: Coho > Reporter: Steve Gill > Assignee: Steve Gill > > Right now, prepare-release-branch command does this. I want to split it up into its own command so we can update platform's cordova.js files before release time. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org