Repository: flex-utilities
Updated Branches:
  refs/heads/feature-npm-install a565003b7 -> 4c1017330


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/4c101733
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/4c101733
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/4c101733

Branch: refs/heads/feature-npm-install
Commit: 4c10173301a640e6f63b5323110da61340b5c504
Parents: a565003
Author: OmPrakash Muppirala <[email protected]>
Authored: Sun Feb 28 09:37:02 2016 -0800
Committer: OmPrakash Muppirala <[email protected]>
Committed: Sun Feb 28 09:37:02 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/4c101733/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/4c101733/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
+}

Reply via email to