foundryvtt-cli
foundryvtt-cli copied to clipboard
Default folder structure should be compatible with .gitignore
Problem
I'm using this CLI to put my compendiums under version control. Currently, this module packs and unpacks compendiums to /packs/compendium/_source
. Afaik, it's not possible to create a .gitignore file that includes only the nested _source
subdirectories and excludes the rest of the files.
Suggested Solution
The DND5e system solves this problem by using a different folder structure: /packs/_source/compendium
. This allows them to easily version control the desired files by adding the following lines to .gitignore:
packs/*
!packs/_source/