Exclude data from build/extract
Suggested in the discussion in #26, the ability to exclude certain data from build or extract.
We now have these variations in Gitify:
Gitify build/extract to build/extract everything
Gitify build/extract snippets to only build/extract snippets
Gitify build/extract snippets chunks templates ... to build/extract a selection of the data.
The proposal is to add an extra syntax to exclude certain data. This only really makes sense with the build/extract everything.
Something like Gitify build -snippets to build everything except snippets - although that syntax likely wont work because of what syntax is and isn't supported with Symfony2 Console http://symfony.com/doc/current/components/console/introduction.html#using-command-arguments
This syntax proposed by @Alroniks looks most promising:
gitify build --exclude snippets chunks template
gitify build --only snippets chunks
where the --only flag is the current behaviour (so a bit redundant), and --exclude would change the meaning of the data partitions passed as argument.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
It would be really useful to somehow have this as an option in the .gitify file. For example, we have sites that we would want to transfer everything live > dev, but exclude content & tv values dev > live. Being able to specify what to build as well as what to extract in .gitify would solve this.
My current workaround is to gitignore the _data folders we don't want to sync dev > live but to transfer them manually when doing a live > dev build.
I need this soooo much! :D For larger projects it absolutly makes sense to exclude the content sometimes, because it speeds up the deployment soooooo much if you have 300k resources.
:+1: