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.
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? - Josh On Wed, Oct 21, 2015 at 9:21 AM, Alex Harui <aha...@adobe.com> wrote: > > > On 10/21/15, 8:29 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote: > > >The problem with expecting externs files to be packaged into the SWC is > >that they might not exist. For instance, if I've converted a TypeScript > >definition to ActionScript, I won't have an externs file to add to the > >SWC. > > Hmm. Maybe the cross-compiler can generate the externs file? > > -Alex > >