Created
May 13, 2025 15:35
-
-
Save erikfig/b345696403009084c285320dc2ccce5c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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