Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/typescript-cheatsheets/node
(seeking maintainers) Cheatsheets for experienced Node.js developers getting started with TypeScript
https://github.com/typescript-cheatsheets/node
Last synced: about 1 month ago
JSON representation
(seeking maintainers) Cheatsheets for experienced Node.js developers getting started with TypeScript
- Host: GitHub
- URL: https://github.com/typescript-cheatsheets/node
- Owner: typescript-cheatsheets
- License: mit
- Created: 2019-05-02T01:29:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T20:12:34.000Z (over 1 year ago)
- Last Synced: 2024-11-02T18:30:44.654Z (about 1 month ago)
- Homepage:
- Size: 11.7 KB
- Stars: 188
- Watchers: 9
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-typescript-cheatsheet
Cheatsheets for experienced Node.js developers getting started with TypeScript
## TS config
You can find more [recommended TS config here](https://github.com/tsconfig/bases).
## Helpful tools
- Gary Bernhardt on [End to End TypeScript](https://www.youtube.com/watch?v=GrnBXhsr0ng&feature=youtu.be): 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## Tip 1
`tsconfig.json`:
```json
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs"
}
}
```## Tip 2
shipping typescript sourcemaps from a node server: http://npm.im/source-map-support
## Tip 3
Instead of
```bash
nodemon --exec ts-node src/index.ts
```do:
```bash
tsc --watch
nodemon dist/src/index.js
```https://twitter.com/benawad/status/1211700652549779456