Skip to content
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

set ignored files in eleventyConfig #1405

Closed
binyamin opened this issue Sep 8, 2020 · 4 comments
Closed

set ignored files in eleventyConfig #1405

binyamin opened this issue Sep 8, 2020 · 4 comments
Assignees

Comments

@binyamin
Copy link
Member

binyamin commented Sep 8, 2020

Is your feature request related to a problem? Please describe.

  • Users are unable to ignore files based on the current environment. (CC @scottishstoater)
  • I'd rather not have a dedicated file for ignoring a single file

Describe the solution you'd like
EleventyConfig return object should accept an array of file globs to ignore.

// Example - .eleventy.js
module.exports = function (eleventyConfig) {
    return {
        dir: {
            input: "src"
        },
        ignoredFiles: [
            "readme.md",
            "_drafts/"
        ]
    }
}

Describe alternatives you've considered
#1403 solves the first problem.

@binyamin
Copy link
Member Author

binyamin commented Sep 8, 2020

This repository uses lodash style issue management for enhancements. This means enhancement issues will be closed instead of leaving them open.

View the enhancement backlog here. Don’t forget to upvote the top comment with 👍!

@binyamin binyamin closed this as completed Sep 8, 2020
@binyamin
Copy link
Member Author

see #894

@zachleat zachleat self-assigned this Jun 14, 2021
@zachleat zachleat added this to the Eleventy 1.0.0 milestone Jun 14, 2021
zachleat added a commit that referenced this issue Jun 14, 2021
… node_modules by default if you did not have a .gitignore or your .gitignore was empty. Opt-out using `eleventyConfig.ignores.delete("node_modules/**");`

Also adds a configuration option to allow modification of ignores: `eleventyConfig.ignores.add("my_ignore_file.md");`

Fixes #383
Fixes #1405
Fixes #894
@zachleat
Copy link
Member

Shipping with 1.0. Docs will show up at https://www.11ty.dev/docs/ignores/ in a bit

zachleat added a commit to 11ty/11ty-website that referenced this issue Jun 14, 2021
@chrissy-dev
Copy link

Cheers @zachleat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants