Skip to content

Instantly share code, notes, and snippets.

@kohyama
Last active February 6, 2021 12:41
Show Gist options
  • Save kohyama/6183122 to your computer and use it in GitHub Desktop.
Save kohyama/6183122 to your computer and use it in GitHub Desktop.
A minimum setting to use browser REPL of ClojureScript
<html>
<head>
</head>
<body>
<script type="text/javascript" src="/js/repl-test.js"></script>
</body>
</html>
(defproject repl-test "0.1.0-SNAPSHOT"
:plugins [[lein-cljsbuild "0.3.2"]]
:cljsbuild {
:builds [{
:source-paths ["src"]
:compiler {
:output-to "js/repl-test.js"
:optimizations :whitespace
:pretty-print true}}]})
(ns repl-test
(:require [clojure.browser.repl :as repl]))
(repl/connect "http://localhost:9000/repl")
@kohyama
Copy link
Author

kohyama commented Aug 8, 2013

Thanks to @swannodette, @ktsujister and @otabat_
https://twitter.com/kohyama/status/365409226425761792
now it runs.

Environment:
Mac OS X Snow Leopard
Leiningen 2.2.1-SNAPSHOT on Java 1.6.0_51 Java HotSpot(TM) 64-Bit Server VM
Google Chrome 28.0.1500.95

@kohyama
Copy link
Author

kohyama commented Aug 9, 2013

Far more example: Code, Screen cast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment