aboutsummaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authorGabriel Giovanini <gabrielg.desouza@gmail.com>2019-06-22 15:40:06 +0200
committerGabriel Giovanini <gabrielg.desouza@gmail.com>2019-06-22 15:40:06 +0200
commitddce2bd3c66a62cb96b2b7ef0602c00c586c429b (patch)
treeb5cd3261c2a65fbd131d78b2ecce2f9100a21104 /env
downloadgenpass-ddce2bd3c66a62cb96b2b7ef0602c00c586c429b.tar.gz
genpass-ddce2bd3c66a62cb96b2b7ef0602c00c586c429b.tar.bz2
genpass-ddce2bd3c66a62cb96b2b7ef0602c00c586c429b.zip
Bootstrap web site
Diffstat (limited to 'env')
-rw-r--r--env/dev/clj/user.clj11
-rw-r--r--env/dev/cljs/genpass/dev.cljs15
-rw-r--r--env/prod/cljs/genpass/prod.cljs8
3 files changed, 34 insertions, 0 deletions
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!)
diff --git a/env/prod/cljs/genpass/prod.cljs b/env/prod/cljs/genpass/prod.cljs
new file mode 100644
index 0000000..51be83a
--- /dev/null
+++ b/env/prod/cljs/genpass/prod.cljs
@@ -0,0 +1,8 @@
+(ns genpass.prod
+ (:require
+ [genpass.core :as core]))
+
+;;ignore println statements in prod
+(set! *print-fn* (fn [& _]))
+
+(core/init!)