Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't upload node_modules #3

Open
arushsharma24 opened this issue Oct 29, 2022 · 0 comments
Open

Don't upload node_modules #3

arushsharma24 opened this issue Oct 29, 2022 · 0 comments

Comments

@arushsharma24
Copy link

The node_modules folder usually turns out to be quite a large folder, since it contains all the modules, but it also doesn't really serve any functionality on github since the installed packages are only needed when the code is to be deployed and run, which does not happen on github.
The package.json file is usually enough for this, and is the only info that we need, so that we can clone the repo and npm i to replicate things.

This reduces the size of the repo, and if you make any changes to the dependencies, then it also reduces the size of each push. Overall good practice, unless in some cases when you are deploying from github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant