Skip to content

Instantly share code, notes, and snippets.

@ashnur
Last active June 10, 2020 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashnur/ac3c1950c052f98136d5ea8f4f74f42a to your computer and use it in GitHub Desktop.
Save ashnur/ac3c1950c052f98136d5ea8f4f74f42a to your computer and use it in GitHub Desktop.
{:builds
{:anon-app {:asset-path "/static/js/dist"
:modules {:new-app {:init-fn anon-app.core/main}}
:output-dir "../dist"
:closure-defines {anon-app.core/BASEURL #shadow/env "/uk/api/"}
:target :browser
:devtools {:preloads [shadow.remote.runtime.cljs.browser]}
:release {:modules {:new-app {:init-fn anon-app.core/main}}
:compiler-options {:infer-externs :auto
:output-feature-set :es7
:output-dir "../dist"}}}
:cards {:asset-path "/js"
:modules {:main {:init-fn anon-app.cards/main}}
:compiler-options {:devcards true}
:output-dir "public/js"
:closure-defines {anon-app.core/BASEURL "http://localhost:8000/uk/api"}
:target :browser
:js-options {:resolve {"devcards-marked" {:target :npm :require "marked"}
"devcards-syntax-highlighter" {:target :npm :require "highlight.js"}}}
:devtools {:preloads [anon-app.spec]}
:build-options {:ns-aliases {devcards-marked cljsjs.marked}}}
; devcards-syntax-highlighter cljsjs.highlight}}
:test {:ns-regexp "app.cards"
:output-to "out/test.js"
:target :node-test}
:e2e {:ns-regexp "e2e.*"
:output-to "out/e2e.js"
:target :node-test}
:mock-host {:target :node-script
:main mock-host.core/main
:output-to "mock-host/server.js"
:devtools {:before-load-async mock-host.script/stop
:after-load mock-host.script/start}}}
:dependencies [[lilactown/helix "0.0.12"]
[devcards "0.2.6"]
[cljs-http "0.1.46"]
[sablono "0.8.6"]
[json-html "0.4.7"]
[cljs-bean "1.5.0"]
[cider/cider-nrepl "0.25.2"]]
:dev-http {3000 "public"}
:nrepl {:port 3333}
:source-paths ["src"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment