Skip to content

Instantly share code, notes, and snippets.

@ds604
Forked from kohyama/README.md
Created January 20, 2018 01:36
Show Gist options
  • Save ds604/2bc6a244221bc9a2a9192f58d0c8c615 to your computer and use it in GitHub Desktop.
Save ds604/2bc6a244221bc9a2a9192f58d0c8c615 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")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment