Investigate if / how we can integrate 3rd party JavaScript packages into the build process
For the web IDE project, we may want to use 3rd party frontend libraries such as Codemirror.
As a system-level component, we cannot expect to download this stuff at runtime - we may be running on a system with no network access, and package builds are often sandboxed to prevent unexpected network access as well.
We would need to bundle packages along with the rest of the source code, in a way that makes it easy to update to later versions.
To investigate:
-
Do we use a package manager tool for this (yarn / npm) ? Or embed the code directly (perhaps via git submodules)?
-
Would distributors have a problem with embedding JavaScript code in the source tree? Do they recommend a specific way to do it?
-
We need to generate a bundle file from the 3rd party packages, how can we do that during the Meson build process? Outcome should be one or more prototypes that shows how we could bundle codemirror and its dependencies as part of the project.