This is a minimum template you can use as the basis for quil projects.
git clone https://github.com/Saikyun/shadow-cljs-quil-starter.git quickstart
cd quickstart
npm install
npx shadow-cljs server
This runs the shadow-cljs
server process which all following commands will talk to. Just leave it running and open a new terminal to continue.
The first startup takes a bit of time since it has to download all the dependencies and do some prep work. Once this is running we can get started.
npx shadow-cljs watch app
This will begin the compilation of the configured :app
build and re-compile whenever you change a file.
When you see a "Build completed." message your build is ready to be used.
[:app] Build completed. (23 files, 4 compiled, 0 warnings, 7.41s)
You can now then open http://localhost:8020.
You should see a spiral, rendered using quil. If you modify src/starter/quil.cljs
your changes should be reflected in the browser.