ckirkendall/enfocus — pull request #82 by magomimmo (2013-11-19 08:16:35+00:00)
Title: Austin

Hi Creighton,
I updated the project by substituting the piggieback instrumentation with austin instrumentation which is much more comfortable.

To test it:

```bash
lein do clean, cljx once, compile
Deleting files generated by lein-cljsbuild.
Rewriting test/cljx to target/test/clj (clj) with features #{clj} and 0 transformations.
Rewriting test/cljx to target/test/cljs (cljs) with features #{cljs} and 1 transformations.
Compiling ClojureScript.
Compiling "dev-resources/public/js/advanced.js" from ["test/tools" "src/cljs" "test/cljs" "target/test/cljs"]...
Successfully compiled "dev-resources/public/js/advanced.js" in 24.857037 seconds.
Compiling "dev-resources/public/js/simple.js" from ["test/tools" "src/cljs" "test/cljs" "target/test/cljs" "src/brepl"]...
Successfully compiled "dev-resources/public/js/simple.js" in 13.640739 seconds.
Compiling "dev-resources/public/js/whitespace.js" from ["test/tools" "src/cljs" "test/cljs" "target/test/cljs" "src/brepl"]...
Successfully compiled "dev-resources/public/js/whitespace.js" in 8.330771 seconds.
Compiling "dev-resources/public/js/deploy.js" from ["src/cljs"]...
Successfully compiled "dev-resources/public/js/deploy.js" in 7.782873 seconds.
```

Then you can run the unit test as usual

```bash
lein test
````

Finally to connect with the brepl do as follows:

```clj
lein repl
Compiling ClojureScript.
nREPL server started on port 58053 on host 127.0.0.1
REPL-y 0.2.1
Clojure 1.5.1
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e

user=> (require '[server :as http])
nil
user=> (http/run)
2013-11-19 09:11:59.008:INFO:oejs.Server:jetty-7.6.8.v20121106
2013-11-19 09:11:59.043:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:3000
#
user=> (def repl-env (reset! cemerick.austin.repls/browser-repl-env
(cemerick.austin/repl-env)))
Browser-REPL ready @ http://localhost:58097/9989/repl/start
#'user/repl-env
user=> (cemerick.austin.repls/cljs-repl repl-env)
Type `:cljs/quit` to stop the ClojureScript REPL
nil
cljs.user=>
```

Finally to activate the brepl, just visit the localhost:3000 page. Wait for connection to be established and have fun by interacting with the brepl and your project.

HIH