Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Taste trigers complete site regeneration for excluded items #264

Closed
kodfodrasz opened this issue Aug 18, 2015 · 6 comments
Closed

Taste trigers complete site regeneration for excluded items #264

kodfodrasz opened this issue Aug 18, 2015 · 6 comments

Comments

@kodfodrasz
Copy link
Contributor

While using VisualStudio Code to write posts and layouts in a git version controlled site source I have noticed that while tasting the site was continously being regenerated for changes in the .git folder.
I have added the folder and git items to the config as follows:

exclude:
  - .gitignore
  - .git
  - taste.bat
  - Pretzel.exe

Now the excluded items did not get copied, but were still triggering the regeneration.

@laedit
Copy link
Member

laedit commented Aug 18, 2015

I'm good with the issue, since Jekyll seems to do the same.
Just for my sake, I haven't got the time to test it, normally all hidden folder are excluded by default, it isn't the case?
And I'm wondering if all git/pretzel files (.git, .gitignore, .gitattributes, pretzel.exe, etc...) should be excluded by default.
What do you think?

@kodfodrasz
Copy link
Contributor Author

I'm also not sure if those should be excluded. Actually the .entries are not "hidden" on windows.

On the other hand if Jekyll automatically skips them then it would be reasonable to stay compatible with Jekyll, but I don't know Jekyll's behavior. I'll test it sometime this week and update the issue, and the PR accordingly.

@laedit
Copy link
Member

laedit commented Aug 18, 2015

Thanks, you are awesome! 😃

@markvantilburg
Copy link
Contributor

For the wiki page, how should this be added?

https://github.com/Code52/pretzel/wiki/Configuration

Exclude items from being included when (re)generating the site (bake and taste command)

exclude:
  - .gitignore
  - .git
  - taste.bat
  - Pretzel.exe

Where the excluded file is part of the path of a file. So - example would not include any file that contains example in the file or folder name.

@laedit
Copy link
Member

laedit commented Aug 18, 2015

Not exactly, at first the exclude configuration is used to exclude files / folders from the generating process. The exclusion of the taste is just a "side effect".

@markvantilburg
Copy link
Contributor

Ok updated the description and added it to the configuration wiki.

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

No branches or pull requests

3 participants