You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2019/07/25 19:36:53 UTC
[royale-asjs] branch develop updated: B013: try to make some
asconfig.json for app and module,
probably will need some way to call both from one other asconfic?
This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 6efb031 B013: try to make some asconfig.json for app and module, probably will need some way to call both from one other asconfic?
6efb031 is described below
commit 6efb031be3b3684cda25953392471d7f2ef60b7a
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Thu Jul 25 21:36:46 2019 +0200
B013: try to make some asconfig.json for app and module, probably will need some way to call both from one other asconfic?
---
.../{ => JewelModule}/asconfig.json | 6 ++----
.../JewelModule/src/main/royale/JewelModule.mxml | 12 +++++++++++-
.../{ => MainJewelApp}/asconfig.json | 5 ++---
3 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/asconfig.json b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/asconfig.json
similarity index 85%
copy from examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/asconfig.json
copy to examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/asconfig.json
index 77ac05c..1a35632 100644
--- a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/asconfig.json
+++ b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/asconfig.json
@@ -22,14 +22,12 @@
"debug": false,
"targets": ["JSRoyale"],
"source-map": true,
- "html-template": "MainJewelApp/src/main/resources/jewel-example-index-template.html",
"theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
},
"copySourcePathAssets": true,
- "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
+ "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions ",
"files":
[
- "JewelModule/src/main/royale/JewelModule.mxml",
- "MainJewelApp/src/main/royale/MainJewelApp.mxml"
+ "src/main/royale/JewelModule.mxml"
]
}
diff --git a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/src/main/royale/JewelModule.mxml b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/src/main/royale/JewelModule.mxml
index c2b0c33..ad10453 100644
--- a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/src/main/royale/JewelModule.mxml
+++ b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/JewelModule/src/main/royale/JewelModule.mxml
@@ -19,7 +19,17 @@ limitations under the License.
-->
<j:Module xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:j="library://ns.apache.org/royale/jewel"
- xmlns:js="library://ns.apache.org/royale/basic">
+ xmlns:js="library://ns.apache.org/royale/basic"
+ initComplete="initModule()">
+
+ <fx:Script>
+ <![CDATA[
+ private function initModule():void
+ {
+ trace("Initialize the module!");
+ }
+ ]]>
+ </fx:Script>
<j:beads>
<js:ContainerDataBinding/>
diff --git a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/asconfig.json b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/asconfig.json
similarity index 86%
rename from examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/asconfig.json
rename to examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/asconfig.json
index 77ac05c..2efab75 100644
--- a/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/asconfig.json
+++ b/examples/blog/BE0013_Dividing_an_Apache_Royale_application_with_modules/MainJewelApp/asconfig.json
@@ -22,14 +22,13 @@
"debug": false,
"targets": ["JSRoyale"],
"source-map": true,
- "html-template": "MainJewelApp/src/main/resources/jewel-example-index-template.html",
+ "html-template": "src/main/resources/jewel-example-index-template.html",
"theme": "${royalelib}/themes/JewelTheme/src/main/resources/defaults.css"
},
"copySourcePathAssets": true,
"additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
"files":
[
- "JewelModule/src/main/royale/JewelModule.mxml",
- "MainJewelApp/src/main/royale/MainJewelApp.mxml"
+ "src/main/royale/MainJewelApp.mxml"
]
}