Some of the functionality of the [Calva] family of Visual Studio Code extensions is provided by this library. It is built as an npm module, @cospaia/calva-lib, but not meant for public consumption.
- Clone your fork
- Most often you'll be branching off of
master
(the main branch). npm install
(This will install, amongst other things,shadow-cljs
)- Open the project root directory in VS Code. (You are using VS Code and Calva, right?)
The dev process is like so:
- In VS Code: Run Build Task…. This will run
shadow-cljs
and make it watch:test
and:calva-lib
. - Check the task Output pane and notice that tests are run.
- Connect Calva and choose the
node-repl
for your CLJS repl (it won't work with any of the build repls, unfortunately). - Hack away. Every time you save, the tests are run.
- Add/remove/modify any relevant test.
- Test the changes in the actual extension (see below about that setup).
- Assuming it is setup this means switching to the Calva window and restart the extension host process (then switch to the extension host window and do your manual testing).
For testing the changes to the actual extensions, see the relevant How to Contribute page:
- Calva
- Calva Formatter
- (Soon also Calva Paredit)
Please feel invited to join the #calva-dev
channel channel on the Clojurians Slack.