Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript scaffolder #6

Open
trevtrich opened this issue Sep 23, 2020 · 3 comments
Open

TypeScript scaffolder #6

trevtrich opened this issue Sep 23, 2020 · 3 comments

Comments

@trevtrich
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member

travi commented Sep 23, 2020

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:

  • to extract a bunch of the stuff into a dependency that can be called from both js and ts scaffolders
  • apply the high-level scaffolder concept at the language level so that the ts scaffolder orchestrates the js scaffolder

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
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants