acode / copenhagen

Free, lightweight and hackable open source code editor for the web
MIT License
497 stars 29 forks source link

Distribute as an npm package #9

Open miguelrk opened 3 years ago

miguelrk commented 3 years ago

Hey! First of all thanks for open-sourcing the Copenhagen editor, the web was in need of a lightweight alternative to Monaco and Copenhaguen just works great!

I believe that a much needed step in making this more accessible is to package the code as an npm package, so that it is easier to consume as a dependency. Publishing to npm will also automatically publish it to CDN serivces like skypack for importing with <script src="..."> directly. This would make the editor easier to get started with and I think would enhance the dev experience.

My use case is using it inside a Vue.js SPA. Is bundling as a npm package planned? Would there be interest in doing so? Thanks!