Move JS compilation into Makefile
The JS compilation pipeline is too long #1270 (closed) It took me a few days to discover it. Hopefully, this MR will save these days for somebody else.
graph LR
bundle --> nanoc --> n[nanoc frontend] --> y[yarn bundle] --> p[package.json bundle] --> rollup
The MR changes the above pipeline to this.
graph LR
n[make compile] --> y[yarn compile:js] --> p[package.json compile:js] --> rollup
The final goal is to speed up JS compilation in subsequent MRs by swapping rollup
with esbuild
(or Vite, but I am not sure what is it). There is also scripts/minify-assets.sh
that is used by Docker, so the postprocessing should probably be moved there.
Fixes #1270 (closed)
Edited by Anatoli Babenia