File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
src/main/clojure/dev/clojurephant/tooling Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ dependencies {
42
42
devImplementation(" ring:ring-jetty-adapter:1.9.5" )
43
43
compileOnly(" org.eclipse.jetty.websocket:websocket-server:9.4.7.v20180619" )
44
44
devImplementation(" org.eclipse.jetty.websocket:websocket-server:9.4.7.v20180619" )
45
+
46
+ compileOnly(" com.bhauman:figwheel-main:0.2.18" )
47
+ devImplementation(" com.bhauman:figwheel-main:0.2.18" )
45
48
}
46
49
47
50
tasks.withType<Test >() {
Original file line number Diff line number Diff line change
1
+ (ns dev.clojurephant.tooling.figwheel-main
2
+ (:require [dev.clojurephant.tooling.api :as api]
3
+ [dev.clojurephant.tooling.cljs :as cljs]
4
+ [figwheel.main.api :as fig]))
5
+
6
+ (defn build-map [id]
7
+ {:id (name id)
8
+ :options (api/cljs-build-opts id)
9
+ :config {}})
10
+
11
+ (defn cljs-repl [id]
12
+ (fig/cljs-repl (name id)))
13
+
14
+ (defn start
15
+ ([] (start :dev ))
16
+ ([id]
17
+ (api/connect! " ." )
18
+ (api/reload-model! )
19
+ (fig/start (build-map id))))
You can’t perform that action at this time.
0 commit comments