Rewriting Tic Tac Toe Ai from JavaScript to ClojureScript.
lein clean
lein figwheel dev
Figwheel will automatically push cljs changes to the browser.
Wait a bit, then browse to http://localhost:3449.
lein clean
lein doo phantom test once
The above command assumes that you have phantomjs installed. However, please note that doo can be configured to run cljs.test in many other JS environments (chrome, ie, safari, opera, slimer, node, rhino, or nashorn).
To enable:
- Open Chrome's DevTools,
Ctrl-Shift-i
- Open "Settings",
F1
- Check "Enable custom formatters" under the "Console" section
- close and re-open DevTools
Put this in your Emacs config file:
(setq cider-cljs-lein-repl "(do (use 'figwheel-sidecar.repl-api) (start-figwheel!) (cljs-repl))")
Navigate to a clojurescript file and start a figwheel REPL with cider-jack-in-clojurescript
or (C-c M-J
)
Compile css file once.
lein garden once
Automatically recompile css file on change.
lein garden auto
lein clean
lein cljsbuild once min
Link: reagent-figwheel
lein new reagent-figwheel tic-tac-toe-ai-clojure +garden +test +devtools +cider +keechma