Skip to content

Instantly share code, notes, and snippets.

@mfikes
Created September 17, 2018 17:05
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 mfikes/fffbdb4aafe221b21cc0a9856923e7d9 to your computer and use it in GitHub Desktop.
Save mfikes/fffbdb4aafe221b21cc0a9856923e7d9 to your computer and use it in GitHub Desktop.
$ clj -Sdeps "{:deps {com.bhauman/figwheel-main {:mvn/version \"0.1.9\"}}}}"  -m figwheel.main
[Figwheel] Compiling build figwheel-default-repl-build to "/var/folders/gx/nymj3l7x4zq3gxb97v2zwzb40000gn/T/figwheel5214578742650559480repl/public/cljs-out/main.js"
[Figwheel] Successfully compiled build figwheel-default-repl-build to "/var/folders/gx/nymj3l7x4zq3gxb97v2zwzb40000gn/T/figwheel5214578742650559480repl/public/cljs-out/main.js" in 0.974 seconds.
[Figwheel] Starting Server at http://localhost:9500
[Figwheel] Starting REPL
Prompt will show when REPL connects to evaluation environment (i.e. a REPL hosting webpage)
Figwheel Main Controls:
          (figwheel.main/stop-builds id ...)  ;; stops Figwheel autobuilder for ids
          (figwheel.main/start-builds id ...) ;; starts autobuilder focused on ids
          (figwheel.main/reset)               ;; stops, cleans, reloads config, and starts autobuilder
          (figwheel.main/build-once id ...)   ;; builds source one time
          (figwheel.main/clean id ...)        ;; deletes compiled cljs target files
          (figwheel.main/status)              ;; displays current state of system
Figwheel REPL Controls:
          (figwheel.repl/conns)               ;; displays the current connections
          (figwheel.repl/focus session-name)  ;; choose which session name to focus on
In the cljs.user ns, controls can be called without ns ie. (conns) instead of (figwheel.repl/conns)
    Docs: (doc function-name-here)
    Exit: :cljs/quit
 Results: Stored in vars *1, *2, *3, *e holds last exception object
2018-09-17 13:05:16.690:INFO::main: Logging initialized @8450ms
Opening URL http://localhost:9500
ClojureScript 1.10.339
cljs.user=> (require-macros '[utils.core :refer [loaded-namespaces]])
nil
cljs.user=> (loaded-namespaces)
(cljs.core cljs.pprint cljs.repl cljs.spec.alpha cljs.spec.gen.alpha cljs.user clojure.string clojure.walk figwheel.main figwheel.repl utils.core)
cljs.user=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment