On Fri, May 15, 2015 at 1:41 PM, Michael Schmalle <teotigraphix...@gmail.com
> wrote:

> On Fri, May 15, 2015 at 4:31 PM, Alex Harui <aha...@adobe.com> wrote:
>
> >
> >
> > On 5/15/15, 12:35 PM, "Michael Schmalle" <teotigraphix...@gmail.com>
> > wrote:
> >
> > >
> > >FlexJS does massive more since it does CSS, MXML States etc. But that
> > >compiler in the repo right now can do what you mentioned already.
> >
> > Josh’s idea is interesting.  In both Randori and FlexJS, the transpiler
> is
> > buried in the package.  I think Josh is saying to make it “the” package.
> > Nothing else in it except FalconJX.
> >
> >
> Alex, it is. What do you mean buried in packages? You can run the
> Randori.main() and pass it a flex-config.xml. I made compiler args for all
> the output locations etc.
>
> So, I be numb but a transpiler has to have a main method and a config, that
> is all the compiler is. The config says run FalconJX, I mean Randori main()
> just could run 3 different compilers on the same parse run reusing the data
> model.
>
>
>
> > Did Randori have a SWC of HTML DOM APIs?  In FlexJS, we are sort of
> hiding
> > the DOM.
>
>
>
> Yes see; https://github.com/RandoriAS/randori-libraries
>
>
>
> > I think to do what Josh is suggesting we’d need a SWC of HTML
> > DOM APIs and make sure FalconJX doesn’t really need
> > playerglobal/airglobal.  Having folks download from Adobe to make this
> > thing work would probably kill enthusiasm for it.
> >
>
> Alex, this goes back to our conversation earlier this week about
> playerglobal.swc. :) You said you had special sauce, I said I wasted weeks
> trying to fake a DOM only player global. :)
>
>
>
> >
> > I have concerns about the energy required to make a FalconJX-only package
> > successful.  How would we get people to try it?  How would we ever find
> > the resources to compete with TypeScript and its JS framework wrappers?
> >
>
>
> DOn't know. I know alot of these libraries scrap HTML docs and its all an
> automated process, Roland put a lot of time into his scrappers, check out
> how many libraries we had 2 years ago!
>

Writing a TypeScript wrapper for a JS framework or library is not a trivial
process.  It is quite involved, time consuming and most of the time,
hand-created.
Here is a guideline and and example:
http://www.typescriptlang.org/Handbook#writing-dts-files
Creating TS wrappers for popular libraries is a market in itself:
http://definitelytyped.org/

If there is a tool that does it (like the one Roland created), that would
be a big deal.

Thanks,
Om




>
>
>
> > The thing about FlexJS is that I feel like we can get former Flex
> > developers to try it and get things started that way, but without MXML,
> if
> > you are going to write a project purely in JS or AS or TS, why would you
> > pick AS with TS being so much more mature?
> >
> > Still, an interesting idea.
> >
> >
> Well, it's only a tool and I think Josh is saying having a vanilla
> transpiler from AS to JS shows how compartmentalized our projects are. Flex
> had a real bad reputation for hauling the kitchen sink wherever it went in
> the UI framework and it's tool chain.
>
> Mike
>
>
>
> > -Alex
> >
> >
>

Reply via email to