Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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