robotnev / AnimalBot

0 stars 0 forks source link

[Housekeeping] Don't commit node_modules #1

Open YuanchengWu opened 3 months ago

YuanchengWu commented 3 months ago

The node_modules folder should not be committed, since it isn't a part of your source code and can be extremely large in size. Don't worry, as long as package.json and package-lock.json are committed, anyone accessing your repo will still be able to create the node_modules folder via npm install.

To exclude node_modules:

  1. create a file in your project root directory named .gitignore
  2. open the file and add just add node_modules
  3. save the file
  4. git will now no longer track the folder and changes in the folder

This is standard practice for all NPM projects!

YuanchengWu commented 3 months ago

@robotnev bump!