TypeScript Quickstart
Brief overview on how to setup a TypeScript project. This doesn't go through TypeScript itself.
Basic Structure
Folder structure
|- dist # output of the file - configurable in tsconfig
|- src # where all the code sits - configurable in tsconfig
| |- index.ts
| |- __tests__
| |- index.test.ts
|- node_modules # this where the dependency are pulled into, you don't need to commit this.
|- tsconfig.json # typescript compiler config
|- package.json # scripts and dependencies are listed here
|- yarn.lock
|- .nvmrc # version of node
|- .npmrc # ???
|- .eslintrc.js
|- .prettierrc
|- jest.config.js
Table of content
Learning Resources
TypeScript
- Free - https://www.typescriptlang.org/docs/handbook/intro.html
- Free - https://basarat.gitbook.io/typescript/
- Free - https://github.com/typescript-exercises/typescript-exercises
- $ - https://www.oreilly.com/library/view/programming-typescript/9781492037644/
- $ - https://effectivetypescript.com/