tiagob / create-full-stack

Set up a TypeScript full stack with one command.
https://create-full-stack.com
MIT License
97 stars 9 forks source link

Macros in TS templates #55

Open tiagob opened 4 years ago

tiagob commented 4 years ago

A lot of duplicate code across templates. It would be ideal to simplify this with TS macros inside these templates. https://github.com/microsoft/TypeScript/issues/4892

I spoke with John Boggs. He's interested in this and is down to make his own project to tackle this use case

Becomes a bigger problem with additional templates like chat, maps, pictures which are just added in

tiagob commented 4 years ago

Could do something like

https://github.com/facebook/create-react-app/blob/3495286f8f3835d55cbdedbc881ae481eb0a3c65/packages/react-scripts/scripts/eject.js#L156-L164