Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

trick eleventy into watching generated files #3749

Merged
merged 3 commits into from Aug 24, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .eleventy.js
Expand Up @@ -269,6 +269,7 @@ module.exports = function (config) {
// ----------------------------------------------------------------------------
// https://www.11ty.io/docs/config/#data-deep-merge
config.setDataDeepMerge(true);
config.setUseGitIgnore(false);

// https://www.11ty.io/docs/config/#configuration-options
const targetLang = process.env.ELEVENTY_LANG || '';
Expand Down
4 changes: 3 additions & 1 deletion .eleventyignore
@@ -1 +1,3 @@
_drafts
_drafts
node_modules
.DS_Store
3 changes: 0 additions & 3 deletions .gitignore
@@ -1,6 +1,3 @@
# Temporary files generated by builds
src/site/_data/resource*.json

# Logs
logs
*.log
Expand Down
2 changes: 2 additions & 0 deletions src/site/_data/.gitignore
@@ -0,0 +1,2 @@
# Temporary files generated by builds that point to our CSS/JS entrypoints.
resource*.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering if this could be moved back to the .gitignore at the root of the project? Are you trying to hide it from git or eleventy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved it back.

The thought was it provides more context being adjacent to the file, irrespective of Eleventy's odd behavior (since we solve that with its own ignore file now). But I honestly don't have a strong opinion.

We also only have one .gitignore file now.

2 changes: 0 additions & 2 deletions src/styles/.gitignore

This file was deleted.