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

add a gitignore file to prevent node modules from being committed #26

Closed

Conversation

ChristianMurphy
Copy link

No description provided.

@kemitchell
Copy link
Member

kemitchell commented Sep 27, 2018

Strongly recommend https://help.github.com/articles/ignoring-files/#create-a-global-gitignore!

git config --global core.excludesfile ~/.gitignore_global
grep --fixed-strings node_modules ~/.gitignore_global || echo node_modules >> ~/.gitignore_global

@kemitchell kemitchell closed this Sep 27, 2018
@ChristianMurphy ChristianMurphy deleted the add-gitingore branch September 27, 2018 04:41
lencioni added a commit to lencioni/licensee.js that referenced this pull request Oct 26, 2022
These files materialize after running `npm install`. Adding them to
`.gitignore` to reduce friction for developers and to help ensure that
they are not accidentally committed.

I found this discussion from a few years ago that seems relevant:

jslicense#58 (comment)

While I agree with the sentiment of something so universal being a
ignored by default globally, since it is not the default git behavior in
practice it makes it more difficult for people to contribute to this
repo. The cost of adding these lines to `.gitignore` is low, so this
seems like a reasonable change to make.

I was surprised that this was not already the case, and since this seems
to be a common issue in this repo, it seems that other developers are
also surprised by this.

- jslicense#23
- jslicense#26
lencioni added a commit to lencioni/licensee.js that referenced this pull request Oct 26, 2022
These files materialize after running `npm install` and `npm run test`.
Adding them to `.gitignore` to reduce friction for developers and to
help ensure that they are not accidentally committed.

I found this discussion from a few years ago that seems relevant:

jslicense#58 (comment)

While I agree with the sentiment of something so universal being a
ignored by default globally, since it is not the default git behavior in
practice it makes it more difficult for people to contribute to this
repo. The cost of adding these lines to `.gitignore` is low, so this
seems like a reasonable change to make.

I was surprised that this was not already the case, and since this seems
to be a common issue in this repo, it seems that other developers are
also surprised by this.

- jslicense#23
- jslicense#26
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

Successfully merging this pull request may close these issues.

2 participants