-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Add Eleventy data directory as entry pattern #454
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @webpro on Vercel. @webpro first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, looks good so far but I do have a few comments.
Will |
Not automatically, we'll have to do that inside |
I actually think we don't want to that, since it might accidentally count some files as entry files when they really aren't. More "correct" versions of all of the |
What about the workspaces that don't have that |
Ah right, sorry. So maybe |
Exactly, in that case it should do something like it did without your PR :) |
Done. Anything else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great, almost there :)
Wow that |
Thanks @uncenter! By the way, I'm introducing Knip in the ESLint repo (eslint/eslint#18005) and they're using Eleventy for their docs (in the
Knip has function(s) to extract the My question is, do you think even trying this could be interesting for more Eleventy users? We don't need to solve it for a single case of course, but if there's more interest we might be able to give it a shot. But I guess that should not be part of this PR. This PR is ready, right? Happy to merge it :) |
Yep, good to merge! |
And yep, I've actually been working on that! That kind of pattern of passthrough copying files from node_modules is also in the 11ty-website repo. I'll have a go at it in another PR later today. |
Please don't feel pushed or anything, only if you like to :) |
Entry files are prefixed with |
Yes, exactly. When we know for sure in the plugin we're dealing with entry files we can mark them as such. When we don't do that, Knip might still figure it out, but that's more error-prone and slower. |
🚀 This pull request is included in v4.0.4. See Release 4.0.4 for release notes. |
Closes #453.