No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A basic implementation of Minesweeper in ClojureScript

Starting Fighweel

Run Cider Jack-In Clojurescript "C-c M-J"

In the CLJS repl:

;; exit the cljs repl

;; start figwheel (defined in dev/user.clj) - starts both dev and devcards profiles

;; go back into the cljs repl (defined in dev/user.clj) (needed for Cider)

Alternatively we can customise the Clojurescript jack in command to start figwheel, e.g. .emacs.d config - custom cljs lein repl

(require 'cider)
(setq cider-cljs-lein-repl
      "(do (require 'figwheel-sidecar.repl-api)

Start Devcards

Devcards UI: http://localhost:3449/tests.html

;; quit the browser connected REPL

;; start the devcards build
(figwheel-sidecar.repl-api/switch-to-build "devcards-test")

;; or alternatively run both devcards and dev
(figwheel-sidecar.repl-api/switch-to-build "devcards-test" "dev")

;; back into the browser connected REPL
(figwheel-sidecar.repl-api/cljs-repl "dev")

Start Figwheel from REPL

This is not needed as we've customised the Cider command to start the browser connected REPL during clojurescript jack in.

(use 'figwheel-sidecar.repl-api)

Running from the command line

CLJS app and devcards (to see unit tests in browser)

lein figwheel devcards-test dev

Unit tests with phantomjs

Configured in project.clj [:cljsbuild :test-commands]

lein cljsbuild test

Build minified js

lein cljsbuild once min