Add support for creating .gitignore from template
jihchi opened this issue · comments
It seems like currently create-snowpack-app won't pick up .gitignore
from template?
Am I misunderstanding here? it would be nice if we can derive .gitignore
from template if there is one.
I've ran into issues with this in the past on generators, I can take a look here soon
Thanks @stramel ! Hopefully it's just that we're overwriting it naively. If a template provides their own, we should honor that
@FredKSchott .gitignore
has always been problematic in template generators. npm/npm#1862
The workaround that I have seen is for the template to have a gitignore
or something like similar that we can handle as a special case and rename it. However, if a template doesn't do this, the file still becomes .npmignore
.
I'm looking for direction on this.
Just FYI. create-react-app
takes gitignore
and rename it to .gitignore
. (code reference)
@jihchi yep, I remember participating in the issue that discussed the solution. Couldn't remember what it was though.