Open jihchi opened 4 years ago
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. https://github.com/npm/npm/issues/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.
It seems like currently create-snowpack-app won't pick up
.gitignore
from template?https://github.com/pikapkg/create-snowpack-app/blob/a795622011744fe8aee8e712b67704bac30edad8/packages/create-snowpack-app/index.js#L93-L96
Am I misunderstanding here? it would be nice if we can derive
.gitignore
from template if there is one.