How to install CodeMirror6?

I'm struggling to upgrade from CodeMirror 5.5 to CodeMirror 6.

Previous versions of CM have always been a drop-in Javascript library. Upload the JS files, upload the CSS file, include a <script> tag referencing the JS file, and then use the API to make a bunch of calls to incorporate it into your web app.

This latest version of CM is still an early prototype. I'm trying to follow the instructions in its Github repo but I'm thoroughly confused.

So far I was able to do npm run dev and I'm able to get a test page that works fine and all, but how do I translate that to incorporating it in my own web app?

AMP version of noindexed page

If a page is noindexed, but includes a meta reference to an AMP version, is this a mixed signal?

Is the AMP version checked to see if its noindexed as well? Are there situations where you would want to index the AMP version but not the desktop version? Is Google even willing to index an alternate version of a URL when the primary version is noindexed?