Make calva-lib able to use Token Cursor things
#479 opened on Nov 21, 2019
Description
Today the TypeScript code uses the calva-lib JavaScript library built by shadow-cljs. But we need to be able to use parts of the TS code as well.
The main use case right now is to be able to use our own Paredit module from calva-lib. Which is currently not possible.
PR #475 is trying to help us get rid of using paredit.js in exchange for our own, maintained, and much more complete implementation.
The reason we can't use our Token Cursor and Paredit in calva-lib is that it creates circular referencing the TS needs calva-lib.js to compile, and thus calva-lib can't depend on the TS code. The solution seems to be to be able to first compile a library of TS code that is not dependent on calva-lib.js, that can then be used from calva-lib.
I suspect there might be other issues needed to be solved here. Mainly to figure out how such a library should be built in a way that will:
- be consumable by shadow-cljs
- let us keep the ability to use the debugger on the library code