Skip to content

Instantly share code, notes, and snippets.

@Marcus10110
Last active November 13, 2021 23:41
Show Gist options
  • Save Marcus10110/940f282847d02f6a3fcc4cbc3f9e24c0 to your computer and use it in GitHub Desktop.
Save Marcus10110/940f282847d02f6a3fcc4cbc3f9e24c0 to your computer and use it in GitHub Desktop.
Quick setup for a Nodejs TS project
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