Skip to content

Automatically regenerate modified assets when building  #446

@oscarlevin

Description

@oscarlevin

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:

  1. 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?
  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions