Created
November 9, 2023 11:43
-
-
Save vicnaum/46bae58adb119d0f6570d785940fa266 to your computer and use it in GitHub Desktop.
Quickly initialize an empty node typescript project with prettier and yarn
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
set -e | |
yarn init -yarn | |
yarn add typescript -D | |
yarn tsc --init | |
yarn add ts-node -D | |
yarn add prettier -D | |
yarn add @types/node | |
# Init .prettierrc | |
echo "{ | |
\"tabWidth\": 2, | |
\"printWidth\": 120, | |
}" > .prettierrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment