create-module icon indicating copy to clipboard operation
create-module copied to clipboard

Feature: A better .gitignore

Open jtemplet opened this issue 10 years ago • 4 comments

What do you think of instead of echo "node_modules", stream https://raw.githubusercontent.com/github/gitignore/master/Node.gitignore >> .gitignore?

jtemplet avatar Jun 16 '15 22:06 jtemplet

I don't really have an opinion on this one. There's a bunch of stuff in there I have never needed, but other people might find it useful. @finnp what do you think?

klaemo avatar Jun 17 '15 08:06 klaemo

When I created this module I thought about using it, but I decided not to for that reason. I feel like it's a bit confusing when a .gitignore includes things that are not even used on a project. However there should probably be an option to change the default .gitignore.

Could be solved by doing this: https://github.com/finnp/create-module/issues/7

finnp avatar Jun 17 '15 09:06 finnp

How about by default, it does what it's currently doing, if user supplies a --gitignore flag along with a subsequent argument (url to remote file or path to local file) and it would use that file as the gitignore file?

jtemplet avatar Jun 21 '15 02:06 jtemplet

Sounds good to me

klaemo avatar Jun 23 '15 15:06 klaemo