Skip to content

Instantly share code, notes, and snippets.

@erikfig
Created May 13, 2025 15:35
Show Gist options
  • Save erikfig/b345696403009084c285320dc2ccce5c to your computer and use it in GitHub Desktop.
Save erikfig/b345696403009084c285320dc2ccce5c to your computer and use it in GitHub Desktop.
alias ts:start="yarn init -y && yarn add @types/node ts-node typescript && sed -i '/\"license\": \"MIT\"/a \ \"scripts\": {\n \"dev\": \"ts-node src/index.ts\"\n },' package.json && mkdir src && echo '{
\"compilerOptions\": {
\"target\": \"es6\",
\"module\": \"commonjs\",
\"strict\": true,
\"esModuleInterop\": true,
\"skipLibCheck\": true,
\"forceConsistentCasingInFileNames\": true
},
\"include\": [\"src\"]
}' > tsconfig.json && echo 'console.log(\"hello world\")' > src/index.ts && echo \"--------------\" && echo \"run yarn dev\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment