WIP: version control dependencies
Addresses #92. How it works:
- All dependencies are in
core/static/dep/and configured in the settings by
SITH_FRONT_DEP_VERSIONSis mapping every dependency to its version number.
SITH_FRONT_DEP_FILESis mapping every dependency to the list of files we need from this dependency.
./manage.py download_frontdownloads every required file for every dependency (and puts them in
core/static/dep/). By default it also creates a duplicate
.gzwhich will allow us to enable static GZIP compression rather than dynamic, see this. For the moment it's a
--disable-gzipflag but it could be a
--gzipflag as it's only useful on prod (we would need to update the prod deployment script and gitignore
./manage.py check_frontchecks that we use the latest version for every dependency.
core/static/dep is tracked by Git to avoid having to
./manage.py download_front every time we do a clean install or a
git pull. It will create a bit of noise in the git diffs but it shouldn't happen too often. Or should we
Do you think
check_front should be made parallel? It could be done easily, I preferred staying simple for the first version.
WIP because I need feedback and the doc should be updated (I'll do this once feedback is given).