Replies: 2 comments 3 replies
-
The default gitignore file that github generates has node_modules in it already (assuming you tell it "node" when you create a new repo). It seems strange for |
Beta Was this translation helpful? Give feedback.
-
I am pretty sure the roadmap here is to move project initialization beyond the most bare bones At one point there was a pretty general agreement that someone other than the npm cli team should own the setup and let the npm team focus on more important aspects of what npm does. I believe that goal is still well shared with the npm team (I just don't want to directly speak for them). As part of that work I created this which might suite your needs a bit. In the long run our goal is for you to be able to run So all this is to say, I don't think npm adding this to the base |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Add an npm init option to generate a .gitignore file containing
node_modules
.Either via a CLI option or an npm config flag.
Something along the lines of
npm init --generate-gitignore
The generated (or updated) .gitignore file would have an entry:
This could even be the default going forward.
Beta Was this translation helpful? Give feedback.
All reactions