This is an automated email from the ASF dual-hosted git repository. yishayw pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 3ff41748270cf2bc398ededefd94ff218a79263c Author: Yishay Weiss <[email protected]> AuthorDate: Thu Apr 16 16:12:02 2026 +0300 Allow debug only example building in tour de style for faster test cycles --- examples/royale/TourDeStyle/README.md | 14 ++++++++++++++ examples/royale/TourDeStyle/build.xml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/examples/royale/TourDeStyle/README.md b/examples/royale/TourDeStyle/README.md index c3361a1e48..5e7f7f6b71 100644 --- a/examples/royale/TourDeStyle/README.md +++ b/examples/royale/TourDeStyle/README.md @@ -55,6 +55,19 @@ individually: ant -Dexample=TabsPlayGround ant -Dexample=TogglePlayGround ant -Dexample=DropdownPlayGround + ant -Dexample=NavbarPlayGround + +### Debug-Only Build (faster) + +To skip the JS release/Closure Compiler step and build only the debug output, +use the `debug` target with any example: + + ant debug -Dexample=NavbarPlayGround + ant debug -Dexample=CardPlayGround + ant debug # builds TourDeStyle + +This is significantly faster during development and produces +`bin/js-debug/index.html` ready for browser testing. ### Viewing @@ -70,3 +83,4 @@ After building, open `bin/js-debug/index.html` in a browser. | TabsPlayGround | TabBar with content switching, disabled tabs | | TogglePlayGround | Toggle switches, checked and disabled states | | DropdownPlayGround | Dropdowns with programmatic and disabled states | +| NavbarPlayGround | Navbar with start/center/end slot layout | diff --git a/examples/royale/TourDeStyle/build.xml b/examples/royale/TourDeStyle/build.xml index 4edd682c7d..c68b50d8ff 100644 --- a/examples/royale/TourDeStyle/build.xml +++ b/examples/royale/TourDeStyle/build.xml @@ -32,6 +32,37 @@ <target name="main" depends="clean,build_example.compile" description="Clean build of ${example}"> </target> + <target name="debug" depends="clean,compile-debug-only" description="Debug-only build of ${example} (skips JS release)"> + </target> + + <target name="compile-debug-only"> + <available file="${basedir}/src/main/config/compile-app-config.xml" + type="file" + property="optional_arg" value="-load-config+="${basedir}/src/main/config/compile-app-config.xml"" /> + + <taskdef resource="flexTasks.tasks" classpathref="lib.path"/> + <property name="config_arg" value="royale" /> + <property name="file_suffix" value="mxml" /> + <property name="optional_arg" value="-define+=CONFIG::dummy,true" /> + + <echo message="Compiling ${example} (debug only)"/> + <mxmlc fork="true" + debug="true" + configname="${config_arg}" + swf-version="${swf.version}" + closure-lib="${GOOG_HOME}" + file="${basedir}/src/main/royale/${example}.${file_suffix}" + output="${basedir}/bin-debug/${example}.swf"> + <jvmarg line="${mxmlc.jvm.args}"/> + <arg line="${optional_arg}" /> + <arg value="+playerglobal.version=${playerglobal.version}" /> + <arg value="${playerglobal_arg}" /> + </mxmlc> + + <antcall target="build_example.wrapper" /> + <antcall target="build_example.copy-resources" /> + </target> + <target name="clean"> <delete dir="${basedir}/bin" failonerror="false" /> <delete dir="${basedir}/bin-debug" failonerror="false" />
