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

Investigate Babel for NodeJS #105

Closed tiagob closed 4 years ago

tiagob commented 4 years ago

Required for #104

Would enable use of jest across the project. Currently, ts-jest is used in Node but the versions differ because CRA is using an earlier version. Versions should be the same. Ideally same version of Jest. This requires Babel instead of TSC in Node.

Would also make build tools consistent across BE and FEs. Allows support for ESNext across earlier versions of Node too

tiagob commented 4 years ago

https://github.com/microsoft/TypeScript-Babel-Starter (best) https://github.com/babel/example-node-server

tiagob commented 4 years ago

https://blog.logrocket.com/choosing-between-babel-and-typescript-4ed1ad563e41/

tldr; not worth switching. ran into the decorator issues with TypeORM. Requires some custom workarounds