Cheatsheets for experienced Node.js developers getting started with TypeScript
You can find more recommended TS config here.
- Gary Bernhardt on End to End TypeScript: Database, Backend, API, and Frontend
- https://ts-engine.dev/
- https://github.com/gcanti/io-ts flowing runtime tests down and doing validation in runtime
- podcast discussion https://fullstackradio.com/episodes/144
- attaching properties on to
req
in Express https://twitter.com/mjackson/status/1294384799231012864?s=20 - https://github.com/goldbergyoni/nodebestpractices
tsconfig.json
:
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs"
}
}
shipping typescript sourcemaps from a node server: http://npm.im/source-map-support
Instead of
nodemon --exec ts-node src/index.ts
do:
tsc --watch
nodemon dist/src/index.js
https://twitter.com/benawad/status/1211700652549779456