A thin Clojurescript wrapping of Blockly, a library for building Scratch-like interfaces in the browser.
The combination of Blockly and Clojure allows for the easy creation of powerful combinatorial user interfaces and visual languages. See this presentation for a real-world example of use.
This branch is an attempt to move away from cljsjs pacakge managment to shadow-cljs. Not yet working!
This version is designed to be used with shadow-cljs and installed via npm.
See the example for details.
In your code, add the require
:
(ns ...
(:require ["blockoid" :as b]))
Usage details are in (a separate document)[doc/blockoid.md].
Relased under MIT license. See the LICENSE file for details.
brew install npm
npm install -g shadow-cljs
npm install
shadow-cljs compile lib
This writes results in target/blockoid.js and target/blockoid
npm link
See here for other techniques: https://medium.com/@debshish.pal/publish-a-npm-package-locally-for-testing-9a00015eb9fd
I think npm pack might be worth trying
cd example
npm link blockoid
shadow-cljs compile app
TODO can't get a compile to work