You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jo...@apache.org on 2017/05/30 17:31:18 UTC
[1/5] git commit: [flex-utilities] [refs/heads/develop] - npm-flexjs:
updated package.json with new version and new download URLs
Repository: flex-utilities
Updated Branches:
refs/heads/develop ee771e657 -> f5e77038a
npm-flexjs: updated package.json with new version and new download URLs
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/f5e77038
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/f5e77038
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/f5e77038
Branch: refs/heads/develop
Commit: f5e77038a93167d7ee2353bb4772ba6d96f15afc
Parents: ed9b3ac
Author: Josh Tynjala <jo...@apache.org>
Authored: Tue May 30 10:21:42 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Tue May 30 10:31:05 2017 -0700
----------------------------------------------------------------------
npm-flexjs/package.json | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f5e77038/npm-flexjs/package.json
----------------------------------------------------------------------
diff --git a/npm-flexjs/package.json b/npm-flexjs/package.json
index 8d9c684..7db462f 100644
--- a/npm-flexjs/package.json
+++ b/npm-flexjs/package.json
@@ -1,6 +1,11 @@
{
"name": "flexjs",
- "version": "0.7.1",
+ "version": "0.8.0",
+ "config": {
+ "nightly": false,
+ "flexjs_nightly_url": "http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/lastSuccessfulBuild/artifact/out/apache-flex-flexjs-0.8.0-bin.zip",
+ "falcon_nightly_url": "http://apacheflexbuild.cloudapp.net:8080/job/flex-falcon/lastSuccessfulBuild/artifact/out/apache-flex-falconjx-0.8.0-bin.zip"
+ },
"description": "Apache FlexJS",
"keywords": [
"flex",
@@ -38,16 +43,16 @@
"externc": "./js/bin/externcnpm"
},
"org_apache_flex": {
- "flexjs_path_binary": "flex/flexjs/0.7.0/binaries/",
- "flexjs_file_name": "apache-flex-flexjs-0.7.0-bin.zip",
- "falcon_path_binary": "flex/falcon/0.7.0/binaries/",
- "falcon_file_name": "apache-flex-falconjx-0.7.0-bin.zip",
- "flash_player_global_url": "http://download.macromedia.com/get/flashplayer/updaters/21/",
- "flash_player_global_file_name": "playerglobal21_0.swc",
- "adobe_air_url": "http://airdownload.adobe.com/air/win/download/21.0/",
+ "flexjs_path_binary": "flex/flexjs/0.8.0/binaries/",
+ "flexjs_file_name": "apache-flex-flexjs-0.8.0-bin.zip",
+ "falcon_path_binary": "flex/falcon/0.8.0/binaries/",
+ "falcon_file_name": "apache-flex-falconjx-0.8.0-bin.zip",
+ "flash_player_global_url": "http://download.macromedia.com/get/flashplayer/updaters/25/",
+ "flash_player_global_file_name": "playerglobal25_0.swc",
+ "adobe_air_url": "http://airdownload.adobe.com/air/win/download/25.0/",
"adobe_air_file_name": "AdobeAIRSDK.zip",
- "player_version": "21.0",
- "swf_version": "32",
+ "player_version": "25.0",
+ "swf_version": "36",
"swf_object_url": "http://github.com/swfobject/swfobject/archive/",
"swf_object_file_name": "2.2.zip",
"flatui_url": "https://github.com/designmodo/Flat-UI/archive/",
[3/5] git commit: [flex-utilities] [refs/heads/develop] - npm-flexjs:
updated formatting in readme and fixed some typos
Posted by jo...@apache.org.
npm-flexjs: updated formatting in readme and fixed some typos
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/511bdcb1
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/511bdcb1
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/511bdcb1
Branch: refs/heads/develop
Commit: 511bdcb1fe6313a68d89cfc8112d6b2da6145fdc
Parents: ee771e6
Author: Josh Tynjala <jo...@apache.org>
Authored: Tue May 30 08:34:49 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Tue May 30 10:31:05 2017 -0700
----------------------------------------------------------------------
npm-flexjs/README.md | 102 +++++++++++++++++++++++++++-------------------
1 file changed, 59 insertions(+), 43 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/511bdcb1/npm-flexjs/README.md
----------------------------------------------------------------------
diff --git a/npm-flexjs/README.md b/npm-flexjs/README.md
index a0ed2da..d094e72 100644
--- a/npm-flexjs/README.md
+++ b/npm-flexjs/README.md
@@ -1,68 +1,84 @@
Apache FlexJS
=============
- Apache FlexJS is a next-generation Flex SDK that has the goal of allowing
- applications developed in MXML and ActionScript to not only run in the
- Flash/AIR runtimes, but also to run natively in the browser without Flash,
- on mobile devices as a PhoneGap/Cordova application, and in embedded JS
- environments such as Chromium Embedded Framework. FlexJS has the potential
- to allow your MXML and ActionScript code to run in even more places than
- Flash currently does.
+Apache FlexJS is a next-generation Flex SDK that has the goal of allowing
+applications developed in MXML and ActionScript to not only run in the
+Flash/AIR runtimes, but also to run natively in the browser without Flash,
+on mobile devices as a PhoneGap/Cordova application, and in embedded JS
+environments such as Chromium Embedded Framework. FlexJS has the potential
+to allow your MXML and ActionScript code to run in even more places than
+Flash currently does.
- For detailed information about Apache Flex please visit the
- [FlexJS Wiki](https://s.apache.org/flexjs)
+For detailed information about Apache Flex please visit the
+[FlexJS Wiki](https://s.apache.org/flexjs)
- For detailed information about Apache Flex please visit the
- [Apache Flex Website] (http://flex.apache.org/)
+For detailed information about Apache Flex please visit the
+[Apache Flex Website](http://flex.apache.org/)
Installation
==================================
- Install the Apache FlexJS NPM Module globally
+Install the Apache FlexJS NPM Module globally
npm install flexjs -g
- (There are a couple of prompts you need to answer before installation starts)
+
+(There are a couple of prompts you need to answer before installation starts)
Usage
==================================
- After global installation, the following compiler tools will be available for you
- to use: mxmlc, asjsc and asjscompc
-
- Usage:
+After global installation, the following compiler tools will be available for you
+to use: `mxmlc`, `compc`, `asjsc`, `asjscompc`, `asnodec`, and `externc`.
+
+Usage:
+
mxmlc <path to main .mxml file>
asjsc <path to main .as file>
- asjscompc <path to main .as file>
-
+
Examples
==================================
- There are several examples that ship with the FlexJS npm module. They are located in:
- Windows: C:\Users\<username>\AppData\Roaming\npm\node_modules\flexjs\examples\
- Mac: /usr/local/lib/node_modules/flexjs/examples/
-
- You can compile them with FlexJS like this:
-
- MXMLC (Targets apps built for the FlexJS SDK, which creats a swf file as well as
- HTML5/JavaScript output)
-
- Windows: mxmlc C:\Users\<username>\AppData\Roaming\npm\node_modules\flexjs\examples\flexjs\ChartExample\src\ChartExample.mxml
- Mac: mxmlc /usr/local/lib/node_modules/flexjs/examples/flexjs/ChartExample/src/ChartExample.mxml
-
- ASJSC (Write ActionScript3 targeting HTML5/SVG DOM without requiring JavaScript):
-
- Windows: asjsc C:\Users\<username>\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src\USStatesMap.as
- Mac: asjsc /usr/local/lib/node_modules/flexjs/examples/native/USStatesMap/src/USStatesMap.as
-
- You may need to copy the examples to a writeable folder because the compilation
- will generate an output folder in the example folders.
+There are several examples that ship with the FlexJS npm module. They are located in:
+Windows:
+
+ C:\Users\<username>\AppData\Roaming\npm\node_modules\flexjs\examples\
+
+Mac:
+
+ /usr/local/lib/node_modules/flexjs/examples/
+
+You can compile them with FlexJS like this:
+
+MXMLC (Targets apps built for the FlexJS SDK, which creates a SWF file as well as
+HTML5/JavaScript output)
+
+Windows:
+
+ mxmlc C:\Users\<username>\AppData\Roaming\npm\node_modules\flexjs\examples\flexjs\ChartExample\src\ChartExample.mxml
+
+Mac:
+
+ mxmlc /usr/local/lib/node_modules/flexjs/examples/flexjs/ChartExample/src/ChartExample.mxml
+
+ASJSC (Write ActionScript3 targeting HTML5/SVG DOM without requiring JavaScript):
+
+Windows:
+
+ asjsc C:\Users\<username>\AppData\Roaming\npm\node_modules\flexjs\examples\native\USStatesMap\src\USStatesMap.as
+
+Mac:
+
+ asjsc /usr/local/lib/node_modules/flexjs/examples/native/USStatesMap/src/USStatesMap.as
+
+You may need to copy the examples to a writeable folder because the compilation
+will generate an output folder in the example folders.
Note
=================================
- Note: Apache Flex™, Flex, FlexJS and Apache™ are trademarks of The Apache Software Foundation.
- The Apache Flex SDK product page is located here: http://flex.apache.org
+Note: Apache Flex™, Flex, FlexJS and Apache™ are trademarks of The Apache Software Foundation.
+The Apache Flex SDK product page is located here: http://flex.apache.org
- Adobe Flash, Adobe AIR, and Adobe PhoneGap are either registered trademarks or trademarks
- of Adobe Systems Incorporated in the United States and/or other countries and are used by
- permission from Adobe.
\ No newline at end of file
+Adobe Flash, Adobe AIR, and Adobe PhoneGap are either registered trademarks or trademarks
+of Adobe Systems Incorporated in the United States and/or other countries and are used by
+permission from Adobe.
\ No newline at end of file
[4/5] git commit: [flex-utilities] [refs/heads/develop] - npm-flexjs:
added missing new line in Adobe AIR install prompt
Posted by jo...@apache.org.
npm-flexjs: added missing new line in Adobe AIR install prompt
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/ed9b3ac4
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/ed9b3ac4
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/ed9b3ac4
Branch: refs/heads/develop
Commit: ed9b3ac4a8a0e8187e9b36148459972b289b2185
Parents: 92b9d4c
Author: Josh Tynjala <jo...@apache.org>
Authored: Tue May 30 10:21:08 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Tue May 30 10:31:05 2017 -0700
----------------------------------------------------------------------
npm-flexjs/dependencies/AdobeAIR.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ed9b3ac4/npm-flexjs/dependencies/AdobeAIR.js
----------------------------------------------------------------------
diff --git a/npm-flexjs/dependencies/AdobeAIR.js b/npm-flexjs/dependencies/AdobeAIR.js
index f2388e2..648adeb 100644
--- a/npm-flexjs/dependencies/AdobeAIR.js
+++ b/npm-flexjs/dependencies/AdobeAIR.js
@@ -39,7 +39,7 @@ The Adobe AIR SDK is subject to and governed by the\n\
Adobe AIR SDK License Agreement specified here:\n\
http://www.adobe.com/products/air/sdk-eula.html.\n\
This license is not compatible with the Apache v2 license.\n\
-Do you want to download and install the Adobe AIR SDK?\
+Do you want to download and install the Adobe AIR SDK?\n\
This is a required component (y/n)";
function promptForAdobeAIR()
[5/5] git commit: [flex-utilities] [refs/heads/develop] - npm-flexjs:
added configuration keys to allow nightly builds to be installed with npm
Posted by jo...@apache.org.
npm-flexjs: added configuration keys to allow nightly builds to be installed with npm
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/233d8e9d
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/233d8e9d
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/233d8e9d
Branch: refs/heads/develop
Commit: 233d8e9d5d0a9f945fda31849690821e7d7f703b
Parents: 511bdcb
Author: Josh Tynjala <jo...@apache.org>
Authored: Tue May 30 10:19:17 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Tue May 30 10:31:05 2017 -0700
----------------------------------------------------------------------
npm-flexjs/dependencies/ApacheFalcon.js | 35 +++++++++++++++++++--------
npm-flexjs/dependencies/ApacheFlexJS.js | 36 ++++++++++++++++++++--------
2 files changed, 51 insertions(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/233d8e9d/npm-flexjs/dependencies/ApacheFalcon.js
----------------------------------------------------------------------
diff --git a/npm-flexjs/dependencies/ApacheFalcon.js b/npm-flexjs/dependencies/ApacheFalcon.js
index c336416..64dd583 100644
--- a/npm-flexjs/dependencies/ApacheFalcon.js
+++ b/npm-flexjs/dependencies/ApacheFalcon.js
@@ -425,14 +425,29 @@ ApacheFalcon.falconInstallComplete = function()
ApacheFalcon.install = function()
{
- request(constants.APACHE_MIRROR_RESOLVER_URL + pathToFalconBinary + fileNameFalconBinary + '?' + constants.REQUEST_JSON_PARAM, ApacheFalcon.handleFalconMirrorsResponse);
- console.log('Downloading Apache Flex Falcon Compiler');
- /*request
- .get("http://apacheflexbuild.cloudapp.net:8080/job/flex-falcon/lastSuccessfulBuild/artifact/out/apache-flex-falconjx-0.7.0-bin.zip")
- .pipe(fs.createWriteStream(constants.DOWNLOADS_FOLDER + fileNameFalconBinary)
- .on('finish', function(){
- console.log('Apache Flex Falcon Compiler download complete');
- ApacheFalcon.extract();
- })
- );*/
+ var isNightly = process.env.npm_package_config_nightly === "true";
+ if(isNightly)
+ {
+ var downloadURL = process.env.npm_package_config_falcon_nightly_url;
+ }
+ else
+ {
+ downloadURL = constants.APACHE_MIRROR_RESOLVER_URL + pathToFalconBinary + fileNameFalconBinary + '?' + constants.REQUEST_JSON_PARAM;
+ }
+ console.log('Downloading Apache Flex "Falcon" Compiler from ' + downloadURL);
+ if(isNightly)
+ {
+ request
+ .get(downloadURL)
+ .pipe(fs.createWriteStream(constants.DOWNLOADS_FOLDER + fileNameFalconBinary)
+ .on('finish', function(){
+ console.log('Apache Flex Falcon Compiler download complete');
+ ApacheFalcon.extract();
+ })
+ );
+ }
+ else
+ {
+ request(downloadURL, ApacheFalcon.handleFalconMirrorsResponse);
+ }
};
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/233d8e9d/npm-flexjs/dependencies/ApacheFlexJS.js
----------------------------------------------------------------------
diff --git a/npm-flexjs/dependencies/ApacheFlexJS.js b/npm-flexjs/dependencies/ApacheFlexJS.js
index 2dc3c43..688fc4e 100644
--- a/npm-flexjs/dependencies/ApacheFlexJS.js
+++ b/npm-flexjs/dependencies/ApacheFlexJS.js
@@ -64,14 +64,30 @@ ApacheFlexJS.extract = function()
ApacheFlexJS.install = function()
{
- request(constants.APACHE_MIRROR_RESOLVER_URL + pathToFlexJSBinary + fileNameFlexJSBinary + '?' + constants.REQUEST_JSON_PARAM, ApacheFlexJS.handleFlexJSMirrorsResponse);
- console.log('Downloading Apache FlexJS');
- /*request
- .get("http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/lastSuccessfulBuild/artifact/out/apache-flex-flexjs-0.7.0-bin.zip")
- .pipe(fs.createWriteStream(constants.DOWNLOADS_FOLDER + fileNameFlexJSBinary)
- .on('close', function(){
- console.log('Apache FlexJS download complete');
- ApacheFlexJS.extract();
- })
- );*/
+ //uncomment to test a nightly build
+ var isNightly = process.env.npm_package_config_nightly === "true";
+ if(isNightly)
+ {
+ var downloadURL = process.env.npm_package_config_flexjs_nightly_url;
+ }
+ else
+ {
+ downloadURL = constants.APACHE_MIRROR_RESOLVER_URL + pathToFlexJSBinary + fileNameFlexJSBinary + '?' + constants.REQUEST_JSON_PARAM;
+ }
+ console.log('Downloading Apache FlexJS from ' + downloadURL);
+ if(isNightly)
+ {
+ request
+ .get(downloadURL)
+ .pipe(fs.createWriteStream(constants.DOWNLOADS_FOLDER + fileNameFlexJSBinary)
+ .on('close', function(){
+ console.log('Apache FlexJS download complete');
+ ApacheFlexJS.extract();
+ })
+ );
+ }
+ else
+ {
+ request(downloadURL, ApacheFlexJS.handleFlexJSMirrorsResponse);
+ }
};
\ No newline at end of file
[2/5] git commit: [flex-utilities] [refs/heads/develop] - npm-flexjs:
to help with debugging, URLs of dependencies are included in console output
Posted by jo...@apache.org.
npm-flexjs: to help with debugging, URLs of dependencies are included in console output
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/92b9d4c0
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/92b9d4c0
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/92b9d4c0
Branch: refs/heads/develop
Commit: 92b9d4c0aee3a4034aa8704f10428975a5faf18c
Parents: 233d8e9
Author: Josh Tynjala <jo...@apache.org>
Authored: Tue May 30 10:20:34 2017 -0700
Committer: Josh Tynjala <jo...@apache.org>
Committed: Tue May 30 10:31:05 2017 -0700
----------------------------------------------------------------------
npm-flexjs/dependencies/AdobeAIR.js | 5 +++--
npm-flexjs/dependencies/FlashPlayerGlobal.js | 2 +-
npm-flexjs/dependencies/FlatUI.js | 5 +++--
npm-flexjs/dependencies/SWFObject.js | 5 +++--
4 files changed, 10 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/92b9d4c0/npm-flexjs/dependencies/AdobeAIR.js
----------------------------------------------------------------------
diff --git a/npm-flexjs/dependencies/AdobeAIR.js b/npm-flexjs/dependencies/AdobeAIR.js
index d9afb92..f2388e2 100644
--- a/npm-flexjs/dependencies/AdobeAIR.js
+++ b/npm-flexjs/dependencies/AdobeAIR.js
@@ -70,9 +70,10 @@ function promptForAdobeAIR()
function downloadAdobeAIR()
{
- console.log('Downloading Adobe AIR from ' + AdobeAIRURL + fileNameAdobeAIR);
+ var downloadURL = AdobeAIRURL + fileNameAdobeAIR;
+ console.log('Downloading Adobe AIR from ' + downloadURL);
request
- .get(AdobeAIRURL + fileNameAdobeAIR)
+ .get(downloadURL)
.pipe(fs.createWriteStream(constants.DOWNLOADS_FOLDER + fileNameAdobeAIR)
.on('close', function(){
console.log('Adobe AIR download complete');
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/92b9d4c0/npm-flexjs/dependencies/FlashPlayerGlobal.js
----------------------------------------------------------------------
diff --git a/npm-flexjs/dependencies/FlashPlayerGlobal.js b/npm-flexjs/dependencies/FlashPlayerGlobal.js
index a8197bc..899292f 100644
--- a/npm-flexjs/dependencies/FlashPlayerGlobal.js
+++ b/npm-flexjs/dependencies/FlashPlayerGlobal.js
@@ -75,7 +75,7 @@ FlashPlayerGlobal.promptForFlashPlayerGlobal = function()
FlashPlayerGlobal.downloadFlashPlayerGlobal = function()
{
- console.log('Downloading Adobe FlashPlayerGlobal.swc ');
+ console.log('Downloading playerglobal.swc from ' + flashPlayerGlobalURL + fileNameFlashPlayerGlobal);
var downloadDetails = {
url:flashPlayerGlobalURL,
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/92b9d4c0/npm-flexjs/dependencies/FlatUI.js
----------------------------------------------------------------------
diff --git a/npm-flexjs/dependencies/FlatUI.js b/npm-flexjs/dependencies/FlatUI.js
index 983d96a..8861c2b 100644
--- a/npm-flexjs/dependencies/FlatUI.js
+++ b/npm-flexjs/dependencies/FlatUI.js
@@ -71,9 +71,10 @@ FlatUI.prompt = function()
FlatUI.downloadFlatUI = function()
{
- console.log('Downloading FlatUI');
+ var downloadURL = flatUIURL + fileNameFlatUI;
+ console.log('Downloading FlatUI from ' + downloadURL);
request
- .get(flatUIURL + fileNameFlatUI)
+ .get(downloadURL)
.pipe(fs.createWriteStream(constants.DOWNLOADS_FOLDER + fileNameFlatUI)
.on('finish', function(){
console.log('FlatUI download complete');
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/92b9d4c0/npm-flexjs/dependencies/SWFObject.js
----------------------------------------------------------------------
diff --git a/npm-flexjs/dependencies/SWFObject.js b/npm-flexjs/dependencies/SWFObject.js
index 7392d9c..a2a0db8 100644
--- a/npm-flexjs/dependencies/SWFObject.js
+++ b/npm-flexjs/dependencies/SWFObject.js
@@ -35,9 +35,10 @@ var fileNameSwfObject = pjson.org_apache_flex.swf_object_file_name;
SWFObject.downloadSwfObject = function()
{
- console.log('Downloading SWFObject');
+ var downloadURL = swfObjectURL + fileNameSwfObject;
+ console.log('Downloading SWFObject from ' + downloadURL);
request
- .get(swfObjectURL + fileNameSwfObject)
+ .get(downloadURL)
.pipe(fs.createWriteStream(constants.DOWNLOADS_FOLDER + fileNameSwfObject)
.on('finish', function(){
console.log('SWFObject download complete');