Front-end dependency management
We should find a way to deal with front-end dependencies. Currently, they are copy-pasted and there is no way to see available updates (other than manually going to where it is hosted and checking the latest available version).
I see three possible solutions:
- Use a JS-specific dependency manager: npm/yarn. The easiest and most suited solution but it means a new dependency (and not a lightweight one).
- Rely on Git submodules and a custom script which can fetch the tags list and checkout to the specified one. It could be a
./manage.pycommand and be configured in
- It's possible to import a Git repo as a pip requirement. It feels like a hack though.
I would lean towards the second solution to avoid incorporating Node+npm into our stack just for a few JS libs. The JS environment moves quickly, Node and npm often get updated. At the same time, npm is made for this and deals with version requirements really well.