joyride

pez 2025-06-11T17:39:29.353279Z

Thinking out loud. I lack some way to use Clojure dependencies with Joyride. I started to think that if we add .joyride/node_modules to the class path, than people could package Clojure dependencies in npm modules and we could rely on npm for downloading. Is that a really bad idea, or just slightly bad?

borkdude 2025-06-11T17:54:25.985899Z

it's not unreasonable I think. I've done a similar thing for squint

pez 2025-06-11T18:30:53.995429Z

Can you describe what you did for squint?

borkdude 2025-06-12T07:21:48.314489Z

you add this project to npm and then in squint.edn you add :paths ["node_modules/..."]

borkdude 2025-06-12T07:21:50.608649Z

kind of a hack

pez 2025-06-12T07:44:31.616689Z

I kinda like it.

borkdude 2025-06-12T07:45:43.707739Z

This project uses it: https://github.com/nextjournal/clojure-mode It compiles both with CLJS and squint

borkdude 2025-06-12T07:45:59.208169Z

squint compilation is used to distribute the project on npm for JS users