Two+ things I do every time I set up a new node project
1. Early first commit Committing regularly is a very good habit. And there is one point in time where
1. Early first commit
Committing regularly is a very good habit. And there is one point in time where it is especially helpful, right after you created a new project and BEFORE you type the first character in your project.
git add –all
git commit -m “blank vite react/typescript project”
This way you can easily spot what you have done and what has been created by create vite@latest for example.
2. Create a .nvmrc file
git add .nvmrc
git commit -m “created .nvmrc file”
This will create a file named .nvmrc with this content:
(3. Install node's types)
If working with TypeScript I also install the types package for node. Sooner or later you will need this.