The purpose of this repository is for me to start learning TypeScript and JavaScript.
| Tool | Description |
|---|---|
| NodeJS | Node & NPM Installation |
- Install TypeScript compiler within the project (repository directory)
npm install typescript --save-dev - Initialise compiler
npx tsc --init - Configure the
tsconfig.jsonfile. This will be generated by default via theinitcommand shown above. - Build i.e. convert to JavaScript
npx tsc - Run JavaScript code with
node build/{something}.js}
For more information on the tsconfig file, please see:
- TypeScript Docs - What is a tsconfig.json
- TypeScript Docs - TSConfig References
- GitHub - TSConfig Bases
- Mozilla - JavaScript Docs
TBC
- NodeJS is a server side runtime
- JavaScript is a scripting or programming language
- TypeScript is a superset of JavaScript