ExtendScript / extendscriptr

An NPM command line tool to compile modern javascript (es5 & es6) into executable extendscript (es3)
Do What The F*ck You Want To Public License
153 stars 15 forks source link

The future #37

Closed GitBruno closed 5 years ago

GitBruno commented 6 years ago

Hey guys, I really like what you have done with extendscriptr and it is amazing it took me so long to find/use it.

I like the general setup but now we have typescript I personally would like to use that.

Not sure if that fits in this repo, as not all users might want to use typescript. Therefore it might be better to start a new sister project called typescriptr

Do you have any thoughts on this?

ff6347 commented 6 years ago

Well it could have a -t --typescript flag.

GitBruno commented 6 years ago

That is a great idea! Will look into that.

Also do you want to update the babel preset from "es2015" to "extendscript" (babel-preset-es2015 -> babel-preset-extendscript)?

GitBruno commented 6 years ago

seems to be taken by target engine -t, --target

What about:

.option('-ts, --typescript', 'typescript mode')
ff6347 commented 6 years ago

Fine with me. :-)

GitBruno commented 6 years ago

Cool, also -nf --nofills would be good as I like to roll my own sometimes.

Might be nice to require extendscript-bundlr here as well? -b --bundle

danielbayley commented 6 years ago

If extendscriptr could accept stdin, then any transpiler language could be used… not just Typescript (CoffeeScript for example)…

Something like: coffee --print *.coffee | extendscriptr --script - (or --stdin, or maybe just accept stdin if no --script is passed)?

ff6347 commented 6 years ago

@danielbayley great idea. Can you write something?

GitBruno commented 6 years ago

I created a branch called stdin-pipe for this, still needs testing :)

ff6347 commented 6 years ago

@GitBruno is this still a thing?

ff6347 commented 5 years ago

@GitBruno ping? Is this still a thing?

GitBruno commented 5 years ago

Maybe later :)