Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8FE718A4A for ; Sun, 13 Mar 2016 08:45:17 +0000 (UTC) Received: (qmail 92294 invoked by uid 500); 13 Mar 2016 08:45:17 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 92232 invoked by uid 500); 13 Mar 2016 08:45:17 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 91951 invoked by uid 99); 13 Mar 2016 08:45:16 -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; Sun, 13 Mar 2016 08:45:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A2881E08BD; Sun, 13 Mar 2016 08:45:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bigosmallm@apache.org To: commits@flex.apache.org Date: Sun, 13 Mar 2016 08:45:30 -0000 Message-Id: <2baaf6670bf24b5eae360f15e06eb0fb@git.apache.org> In-Reply-To: <1aae773fa0954520bc4bba19058b9459@git.apache.org> References: <1aae773fa0954520bc4bba19058b9459@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [15/16] git commit: [flex-utilities] [refs/heads/develop] - Add dependencies from package.json Add dependencies from package.json Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/b0c1cfab Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/b0c1cfab Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/b0c1cfab Branch: refs/heads/develop Commit: b0c1cfab51b1f3f37e25b6b980d66abeba39d38b Parents: a5747a3 Author: OmPrakash Muppirala Authored: Sun Feb 28 09:37:02 2016 -0800 Committer: OmPrakash Muppirala Committed: Sun Mar 13 00:44:26 2016 -0800 ---------------------------------------------------------------------- npm-flexjs/dependencies/ApacheFlexJS.js | 7 +++++-- npm-flexjs/package.json | 7 ++++++- 2 files changed, 11 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0c1cfab/npm-flexjs/dependencies/ApacheFlexJS.js ---------------------------------------------------------------------- diff --git a/npm-flexjs/dependencies/ApacheFlexJS.js b/npm-flexjs/dependencies/ApacheFlexJS.js index d806678..1606949 100644 --- a/npm-flexjs/dependencies/ApacheFlexJS.js +++ b/npm-flexjs/dependencies/ApacheFlexJS.js @@ -22,14 +22,17 @@ var request = require('request'); var fs = require('fs'); var events = require('events'); var unzip = require('unzip'); +var pjson = require('../package'); var constants = require('../dependencies/Constants'); var ApacheFlexJS = module.exports = Object.create(events.EventEmitter.prototype); +console.error(Object.keys(pjson)); + //FlexJS -var pathToFlexJSBinary = 'flex/flexjs/0.5.0/binaries/'; -var fileNameFlexJSBinary = 'apache-flex-flexjs-0.5.0-bin.zip'; +var pathToFlexJSBinary = pjson.org_apache_flex.flexjs_path_binary; //'flex/flexjs/0.5.0/binaries/'; +var fileNameFlexJSBinary = pjson.org_apache_flex.flexjs_file_name; //'apache-flex-flexjs-0.5.0-bin.zip'; ApacheFlexJS.handleFlexJSMirrorsResponse = function (error, response, body) { http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b0c1cfab/npm-flexjs/package.json ---------------------------------------------------------------------- diff --git a/npm-flexjs/package.json b/npm-flexjs/package.json index bd3ac59..492234f 100644 --- a/npm-flexjs/package.json +++ b/npm-flexjs/package.json @@ -20,6 +20,7 @@ "merge-dirs": "^0.2.1", "mkdirp": "^0.5.1", "prompt": "^0.2.14", + "read-package-json": "^2.0.3", "replace": "^0.3.0", "request": "^2.67.0", "unzip": "^0.1.11", @@ -32,5 +33,9 @@ "asjsc": "./js/bin/asjscnpm", "asjscompc": "./js/bin/asjscompcnpm", "mxmlc": "./js/bin/mxmlcnpm" + }, + "org_apache_flex": { + "flexjs_path_binary": "flex/flexjs/0.5.0/binaries/", + "flexjs_file_name": "apache-flex-flexjs-0.5.0-bin.zip" } -} \ No newline at end of file +}