Andy and I have pushed some changed into hg for the next build which performs JavaScript compilation as a plugin step to the normal compile pipeline.
This results in a drastic speedup from previously where we actually launched a separate compiler process which had to re-run the whole compiler pipeline and then re-zip the pod file with the JavaScript code (with failures if the file was locked). Now it all just happens during the normal compile target for a build assuming the pod is marked with the @js facet.
If you want to compile JavaScript yourself by hand, then use the new CompilerOutputMode.js mode which generates a JavaScript string, but skips backend pod generation. See "examples\js\demo.fan" for some sample code.
brian Wed 27 Jan 2010
Andy and I have pushed some changed into hg for the next build which performs JavaScript compilation as a plugin step to the normal compile pipeline.
This results in a drastic speedup from previously where we actually launched a separate compiler process which had to re-run the whole compiler pipeline and then re-zip the pod file with the JavaScript code (with failures if the file was locked). Now it all just happens during the normal
compile
target for a build assuming the pod is marked with the@js
facet.If you want to compile JavaScript yourself by hand, then use the new
CompilerOutputMode.js
mode which generates a JavaScript string, but skips backend pod generation. See "examples\js\demo.fan" for some sample code.