After update and compile the framework with ANT, I add --watch (also tryied -watch) to additionalOptions of asconfig.json (I'm using VS Code) and I got: unknown configuration variable 'watch'.
Hugo Ferreira <hferreira...@gmail.com> escreveu no dia quinta, 31/03/2022 à(s) 22:54: > I'm just updated Royale and I'm now compiling with ANT. > I have a Mac Book with 4 years (so it's Intel) and it takes about 15 > minutes to compile Royale. > Then I will made a few tests and let you know. > > > Josh Tynjala <joshtynj...@bowlerhat.dev> escreveu no dia quinta, > 31/03/2022 à(s) 22:49: > >> It should be in 0.9.10-SNAPSHOT (or will be when the next Maven nightly >> build completes). To use this option with Maven, I assume that you can add >> --watch to the section of your pom.xml where you can specify additional >> compiler options. I'm not familiar enough with the Maven plugin to tell >> you >> exactly where that is. >> >> -- >> Josh Tynjala >> Bowler Hat LLC <https://bowlerhat.dev> >> >> >> On Thu, Mar 31, 2022 at 2:42 PM romanisi...@yahoo.com.INVALID >> <romanisi...@yahoo.com.invalid> wrote: >> >> > This is a nice feature. Is it part of the new 0.9.9 release ? Or Which >> > snapshot version ? >> > >> > Also just to clarify usage. I use maven so will the usage be as follows >> > mvn clean watch install ? >> > How can I use it in a royale maven project ? >> > >> > Sent from Yahoo Mail on Android >> > >> > On Thu, 31 Mar 2022 at 22:34, Josh Tynjala<joshtynj...@bowlerhat.dev> >> > wrote: Hi all, >> > >> > I just pushed a commit to royale-compiler that adds a new --watch >> compiler >> > option. What this new option does is keep the compiler running after >> it's >> > done, watching the source-path folders for any changes to .as and .mxml >> > files. When changes are detected, it will automatically re-compile your >> > project. Best of all, it's an incremental re-compile, so it will be >> > significantly faster. >> > >> > For projects targeting JS, all you need to do is refresh your browser >> after >> > the re-compile completes. You can even use a tool that does this >> > automatically, if you prefer. >> > >> > After a quick search on Google, I found the "reload" npm package, and I >> can >> > confirm that it can automatically reload a Royale app after >> recompilation. >> > Here is the command that I used in a terminal at the root of my project >> > folder: >> > >> > npx reload -d bin/js-debug -b >> > >> > This starts a local HTTP server in the directory bin/js-debug, and it >> > launches the app in a browser. >> > >> > >> > >> https://www.npmjs.com/package/reload#user-content-using-reload-as-a-command-line-application >> > >> > The new --watch compiler option works with SWF too. However, I'm not >> aware >> > of any automatic reloading tools for this, so you'll just need to close >> and >> > relaunch manually. >> > >> > Please give it a try, and let me know if you run into any issues. I'd >> like >> > to see how well it works with some bigger projects! >> > >> > -- >> > Josh Tynjala >> > Bowler Hat LLC <https://bowlerhat.dev> >> > >> > >> >