There is no more webapp/app/static/vendors. Rather there's a webapp/app/static/node_modules, which is a symlink to webapp/node_modules. To install all frontend packages needed, you need to npm install, the dependencies are in webapp/package.json. npm install is now done in webapp/run.sh.
No page uses a CDN anymore, those have all been moved to be locally under NPM as well.
I first did the above two steps while maintaining exact version parity with the old vendors stuff, but the last commit relaxes the versions a bit, e.g. 2.6.3 becomes ^2.6.3. Nothing seemed to break, but wouldn't hurt if others check too.
I removed a few dependencies which we didn't seem to be using. There's still a couple I'm unsure if we use (plugins of datatables.net).
There are some other, unrelated clean-up items that I did on the way.
I expected many of the packages we use to be very far behind their latest development, but it's actually not that bad. We use jquery 2 and bootstrap 3, which have been superseded by jquery 3 and bootstrap 4 and 5. At least with bootstrap 5 it's a whole new world and we shouldn't upgrade. Didn't look into jquery 3 and bootstrap 4 in detail, but bootstrap 3 is still getting security support, so could stick with that. jQuery 2 has been unsupported for 5+ years, not sure how serious that is. All other packages we seem to be at the latest major version number.
webapp/app/static/vendors
. Rather there's awebapp/app/static/node_modules
, which is a symlink towebapp/node_modules
. To install all frontend packages needed, you need tonpm install
, the dependencies are inwebapp/package.json
.npm install
is now done inwebapp/run.sh
.vendors
stuff, but the last commit relaxes the versions a bit, e.g.2.6.3
becomes^2.6.3
. Nothing seemed to break, but wouldn't hurt if others check too.datatables.net
).I expected many of the packages we use to be very far behind their latest development, but it's actually not that bad. We use jquery 2 and bootstrap 3, which have been superseded by jquery 3 and bootstrap 4 and 5. At least with bootstrap 5 it's a whole new world and we shouldn't upgrade. Didn't look into jquery 3 and bootstrap 4 in detail, but bootstrap 3 is still getting security support, so could stick with that. jQuery 2 has been unsupported for 5+ years, not sure how serious that is. All other packages we seem to be at the latest major version number.