form8ion / rfcs

Repository for managing Requests For Comments (RFCs) for the form8ion wuite of tools
https://github.com/form8ion/rfcs#readme
MIT License
1 stars 0 forks source link

TypeScript scaffolder #6

Open trevtrich opened 4 years ago

trevtrich commented 4 years ago

I'd like to look into building a TypeScript scaffolder given the popularity and usefulness for certain types of projects. I'm not sure where it would best fit, though. Does it make sense as a language or is it a configuration for a JavaScript project? Found a nice article discussing some of the tradeoffs amongst the different options for TS transpiling. Things like TS compiled and fed into babel and recompiled to final code vs. using straight babel with TS support, etc.

trevtrich commented 4 years ago

I'm not sure we're ready to pull the trigger on this, but I could see it making sense to have all packages (as opposed to apps) leveraging TS at the boundary. Thought worth mentioning this as we chat about where it fits in regard to language, project type, etc.

travi commented 4 years ago

this has been on my mind for a while too. its an interesting fit.

i think it should absolutely be presented as a language choice in the prompting flow, as a peer to javascript. a lot of the implementation overlaps with js tho, so i'm not quite sure how that part plays out.

its a little hard since i'm far less familiar with ts, so i'm not confident about just how much overlap there truly is. the two ways i could see off the top of my head would be:

which way to go (and if there is a different option entirely) probably depends heavily on how much and what type of overlap truly exists. while i think there is a lot, i dont think i know enough at this point

trevtrich commented 4 years ago

Sounds good, I think language makes a lot of sense. I'll do some initial digging and come up with a poc-type project that we can poke holes in and see what I run into.