-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Default location of .gitignore
and .eleventyignore
files
#229
Comments
Let’s first clarify terminology. What is the command root and what is the input root? Assuming I cloned the repository for my site to Also, the concept of having a dedicated include directory turned out to have more downsides than benefits for me (e.g includes being input-directory-relative which they shouldn’t). This is why I have set the include directory to TL;DR: In my opinion, all configuration-type files that are global should reside in the project root directory, not in any subdirectory. |
I presume this is talking about I strongly agree with @kleinfreund. Project root matches the common use case of Possibly you could consider a |
.gitignore
check.gitignore
and .eleventyignore
files
I agree—the current behavior is wrong.
The good news is that it’d be somewhat cheap to look in multiple locations for these two files. |
In
Ignore entries found in these files will be normalized using the directory they reside in. For example,
…will normalize entries starting with |
@zachleat Maybe drop this backwards-compatibility feature in the next major version? |
.gitignore is assumed to live at the root of the input directory—maybe it shouldn’t? Might make sense to check to see if that lives in the command root instead (more likely to match the repo root)
Relevant docs: https://www.11ty.io/docs/ignores/
Surfaced in #228
The text was updated successfully, but these errors were encountered: