Each time pretext build is run, we will create a hash of each type of component for which the user might want to generate assets. Then these are each compared to the hash saved from the last build. If any are different, we regenerate that sort of asset. (This was suggested by @bnmnetp; please correct me if I'm missing something.)
A couple questions for @StevenClontz and other interested parties:
- Where should the list of hashes be stored in the project? It could go in generated assets in a hidden folder or file, but it really doesn't need to be copied over for other projects. I guess, neither does the webwork-representations.xml though. Or maybe a build-support folder, that also contains build logs? Other ideas?
- What should the default behavior be when building? A warning? Actually building the updated assets? We can have a flag that builds without regenerating, but note this is a fairly drastic change in behavior for a minor release. Or we make the
-g flag only generate what is needed?
Each time
pretext buildis run, we will create a hash of each type of component for which the user might want to generate assets. Then these are each compared to the hash saved from the last build. If any are different, we regenerate that sort of asset. (This was suggested by @bnmnetp; please correct me if I'm missing something.)A couple questions for @StevenClontz and other interested parties:
-gflag only generate what is needed?