From ddce2bd3c66a62cb96b2b7ef0602c00c586c429b Mon Sep 17 00:00:00 2001 From: Gabriel Giovanini Date: Sat, 22 Jun 2019 15:40:06 +0200 Subject: Bootstrap web site --- env/dev/clj/user.clj | 11 +++++++++++ env/dev/cljs/genpass/dev.cljs | 15 +++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 env/dev/clj/user.clj create mode 100644 env/dev/cljs/genpass/dev.cljs (limited to 'env/dev') diff --git a/env/dev/clj/user.clj b/env/dev/clj/user.clj new file mode 100644 index 0000000..4ba997c --- /dev/null +++ b/env/dev/clj/user.clj @@ -0,0 +1,11 @@ +(ns user + (:require [figwheel-sidecar.repl-api :as ra])) + +(defn start-fw [] + (ra/start-figwheel!)) + +(defn stop-fw [] + (ra/stop-figwheel!)) + +(defn cljs [] + (ra/cljs-repl)) diff --git a/env/dev/cljs/genpass/dev.cljs b/env/dev/cljs/genpass/dev.cljs new file mode 100644 index 0000000..e6120ba --- /dev/null +++ b/env/dev/cljs/genpass/dev.cljs @@ -0,0 +1,15 @@ +(ns ^:figwheel-no-load genpass.dev + (:require + [genpass.core :as core] + [devtools.core :as devtools])) + +(extend-protocol IPrintWithWriter + js/Symbol + (-pr-writer [sym writer _] + (-write writer (str "\"" (.toString sym) "\"")))) + +(enable-console-print!) + +(devtools/install!) + +(core/init!) -- cgit v1.2.3