I'm in the process of adding some large-ish test data over multiple files to an AddOn that I would like to only include in alpha builds.
I'm currently just putting #@alpha@ tags into the toc file to prevent the files from being loaded, but I would like to exclude them fully just to keep the package a bit smaller.
Maybe it would be a good idea to have some replacements on the .pkgmeta file that gets applied prior to the .pkgmeta being evaluated?
For example:
ignore:
- Foo/Bar
#@alpha@
- Foo/Testdata/
#@end-alpha@
Which would comment it out in non-alpha builds. Could probably be the same code as toc replacements because both use # for comments.
I'm in the process of adding some large-ish test data over multiple files to an AddOn that I would like to only include in alpha builds.
I'm currently just putting
#@alpha@tags into the toc file to prevent the files from being loaded, but I would like to exclude them fully just to keep the package a bit smaller.Maybe it would be a good idea to have some replacements on the .pkgmeta file that gets applied prior to the .pkgmeta being evaluated?
For example:
Which would comment it out in non-alpha builds. Could probably be the same code as toc replacements because both use
#for comments.