You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by bi...@apache.org on 2016/03/13 09:45:30 UTC

[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 <bi...@gmail.com>
Authored: Sun Feb 28 09:37:02 2016 -0800
Committer: OmPrakash Muppirala <bi...@gmail.com>
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
+}