On 10/21/15, 10:16 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote:
>The cross-compiler that generates ActionScript from TypeScript >definitions? >Yeah, I could probably do that. Generating both ActionScript and externs >files adds some complexity that I'd prefer to hide from ActionScript >developers, though. Ideally, most developers wouldn't need to know about >the externs files. Actually, I was thinking that you could take the generated .as files and run them through FalconJX and package the JS as externs files. Today, any of the FlexJS SWCs like Core.swc have a build script that runs a couple of passes to cross-compile the AS to JS, then a final pass that compiles the AS into a SWC and packages the generated JS. It looks from the code, that if you put the JS in an externs folder inside the SWC and folks reference these SWCs on the external-library-path, that the right thing should happen. > >I guess I could redesign dts2as to look for FlexJS and ask it to >automatically build the final SWC file with both the generated >ActionScript >and the generated externs files. That would simplify my tutorials either >way, since developers won't need to run compc manually. > >What's the usual environment variable a developer might add for FlexJS? Is >it FLEXJS_HOME? FlexJS tries to look just like a regular Flex SDK, so folks should be able to use FLEX_HOME. -Alex