Last active
November 13, 2021 23:41
-
-
Save Marcus10110/940f282847d02f6a3fcc4cbc3f9e24c0 to your computer and use it in GitHub Desktop.
Quick setup for a Nodejs TS project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm init -y | |
yarn add --dev typescript ts-node nodemon @types/node | |
npx tsc --init --outDir Dist | |
touch index.ts | |
npx npm-add-script -k dev -v "nodemon index.ts" | |
npx npm-add-script -k start -v "ts-node index.ts" | |
mkdir .vscode | |
echo '{ "editor.formatOnSave": true }' > .vscode\settings.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment