binyamin / eleventy-garden

:seedling: A starter site for building a mind garden with eleventy
https://eleventy-garden.netlify.app
MIT License
450 stars 48 forks source link

GitIgnore filters eleventy output #61

Closed asbjornb closed 2 years ago

asbjornb commented 2 years ago

Describe the bug Currently everything in .gitignore is ignored when serving the site with npm start.

To Reproduce

  1. Clone the template
  2. Add notes/ to .gitignore
  3. run npm install from terminal
  4. run npm start from terminal

Expected behavior I can't say for sure if .gitignore is meant to be respected by 11 in this project, but I think not due to the useGitIgnore: false. If so though - I expect it to still serve the files in .gitignore as long as they are not in .eleventyignore

Environment (please complete the following information):

Additional info Current implementation is not using the eleventyConfig.setUseGitIgnore(false); specification in the official docs at https://www.11ty.dev/docs/ignores/