like inbuilt cljs #js literal, but recursive
just experimenting
depend on:
com.widdindustries/js-literal {:git/url "https://github.com/henryw374/js-literal.git"
:sha "abc"}
in my/source.cljs
(ns my.source)
(def my-literal #j/s [:a {:b [:c]}])
; compiles to => Array.of("a",Object.fromEntries(Array.of(Array.of("b",Array.of("c")))));
; under advanced compilation, compiles to ["a",Object.fromEntries([["b",["c"]]])]
Before compiling, require com.widdindustries.js
run (compile/build)
from the test dir
create a git tag.
make install VERSION=your-tag
(this installs in ~/.m2 - check that things look ok)
make deploy VERSION=your-tag
- you need to have set up clojars credentials as per https://github.com/applied-science/deps-library
git push origin new-tag-name
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close