-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update .gitignore #20
base: master
Are you sure you want to change the base?
Update .gitignore #20
Conversation
add all the entries to gitignore that are recommended for node projects entries added manually are at bottom https://github.com/github/gitignore/blob/master/Node.gitignore
I think it is mandatory to update, the node_modules in case of a GitHub action, I read this somewhere, can you please confirm it @KulkarniSuraj |
I have read that |
right now the git is tracking entire node modules and its subdirectories for a single commit |
Gitignore already had node_modules right? |
|
node_modules were still being tracked |
How was it being tracked? The .gitignore file had "node_modules" in it. So that means any changes to the node_modules folder was not being tracked by git. |
I had same doubt. but node_modules was present even before .gitignore |
please refer to this commit ede0d78 |
Ok @KulkarniSuraj, you mean actions can run using It would be great then, because it will reduce the size of the project considerably |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, i have some queries before I accept this PR
Do we need to put npm ci
script somewhere explicitly so that it runs fine in production?
@Pika1998 As you mentioned earlier node_modules might be required for javascript actions |
Ok as of now let's stick with the node_modules, I will try to do some research on the approach you are talking about and get back to you 😃 |
Yeah! sure we can work on this later |
I was also thinking of adding |
@KulkarniSuraj that's a nice idea, please make it as a separate PR |
Adds more entries to .gitignore
https://github.com/github/gitignore/blob/master/Node.gitignore
since node_modules was created before adding .gitignore it is still being tracked
so node modules was deleted and then added to .gitignore
bug fixes
Enhancements
you can delete node_modules manually from your master branch