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

Cleanup for --formats, templateFormats config, and setTemplateFormats addTemplateFormats configuration API methods #3255

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

zachleat
Copy link
Member

@zachleat zachleat commented Apr 16, 2024

Similar to #3244.

Order of precedence:

  • --formats overrides all—ignores all other methods.
    • Breaking change: In 3.x --formats="" or --formats= means no formats—in 2.x these values aliased to "*"
  • eleventyConfig.setTemplateFormats() (supplemented by eleventyConfig.addTemplateFormats())
  • templateFormats in return object or in config named export (supplemented by eleventyConfig.addTemplateFormats())

@zachleat zachleat added this to the Eleventy 3.0.0 milestone Apr 16, 2024
@zachleat zachleat added the breaking-change This will have to be included with a major version as it breaks backwards compatibility. label Apr 16, 2024
@zachleat zachleat merged commit 278db9b into main Apr 16, 2024
6 checks passed
@zachleat zachleat deleted the normalize-templateformats branch April 16, 2024 19:21
zachleat added a commit to 11ty/eleventy-upgrade-help that referenced this pull request Jul 23, 2024
@zachleat zachleat mentioned this pull request Jul 23, 2024
@zachleat zachleat added the needs-documentation Documentation for this issue/feature is pending! label Sep 20, 2024
zachleat added a commit to 11ty/11ty-website that referenced this pull request Sep 27, 2024
@zachleat zachleat removed the needs-documentation Documentation for this issue/feature is pending! label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This will have to be included with a major version as it breaks backwards compatibility.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant