CodeMirror Packages: A Deep Dive Into The CodeMirror V6 Architecture
CodeMirror uses individual repositories for each package, unlike monorepo projects. Packages are listed in bin/packages.js and loaded via loadPackages function.
In the OSS community, it is quite common to come across monorepo projects where the workspaces and packages are all in a single repository. CodeMirror has a different style to the way packages are managed, each package that is used is a repository on its own. In this article, we analyse what these packages are that CodeMirror uses and how they are installed when you want to setup CodeMirror v6 locally to contribute. bin/packages.js Before we analyse the install function, let’s first understand the variours packages that make up the CodeMirror. You will find these packages listed in b...