For a while now, I've wanted to build something similar to TypeScript's
playground. I just haven't found the time yet.

https://www.typescriptlang.org/play/

Basically, one file/class in and one file out. The idea would be to keep it
super basic. Simply let people see the JavaScript that gets produced from
ActionScript and MXML with FlexJS. Maybe provide a couple of sample MXML/AS
files alongside an option to write your own code from scratch.

This could be a good MVP because it is something people will find useful,
but it can also serve as a foundation for a more complex CodePen-like
experience with multiple files in a simple project.

- Josh

On Apr 26, 2017 2:10 AM, "OK" <p...@olafkrueger.net> wrote:

Hi guys,
I remember that there were some discussions that it would be nice to have
something like JSFiddle or CodePen for FlexJS.
I also remember that Alex introduced a POC for live editing a couple of
months ago.
Cause I've no idea if something like this could be achieved as-a-service and
I'm honestly not smart enough to improve this approach I wonder if it would
be an option to just make the compiler available as-a-service and build an
app around it that consumes this service.

Although this approach is far away from live editing and you have to wait
until the compiler is done I  think that FlexJS would benefit a lot from
something like this:

There would be no more entry barrier to get in touch with FlexJS: Just call
the (web) app, code and compile it with one click.
Folks could share useful FlexJS snippets and with the ability to store this
stuff it could automatically grow to an archive of code snippets.
It would be very ergonomic to compile the code with different FlexJS
versions or compiler options.
At least you would have one browser window that contains the code and the
result so I think this could be also a little helpful tool during regular
app development.

So I started a little POC regarding the service:
I've just installed nodejs express and make Josh's asconfigc available via
an http endpoint.
This is just a few lines of code and it works as expected [1][2].
In the real world, the service would expect some FlexJS code and response
with the compiled code or an URL where the code lives.
Next step would be to build a FlexJS app that implements a CodePen inspired
UI and consumes the service.

Before starting with this I'd like to ask if you think that this approach is
worth following it or if you expect too many issues (maybe also legal
issues) or if you think it's completely useless.

Of course, it's a long way to making it happen and a powerful backend is
needed and this is probably not for free. I'm not yet familiar enough with
the various cloud services out there but I could imagine that something like
'AWS lamda' would work. Maybe Apache Infra provide something like this?

Thanks,
Olaf

[1] https://snag.gy/Bb83sq.jpg
[2] https://snag.gy/crM43o.jpg



--
View this message in context: http://apache-flex-development
.2333347.n4.nabble.com/FlexJS-POC-JSFiddle-for-FlexJS-
Compile-as-a-service-tp61369.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to