Last active
          February 6, 2021 12:41 
        
      - 
      
 - 
        
Save kohyama/6183122 to your computer and use it in GitHub Desktop.  
    A minimum setting to use browser REPL of ClojureScript
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <html> | |
| <head> | |
| </head> | |
| <body> | |
| <script type="text/javascript" src="/js/repl-test.js"></script> | |
| </body> | |
| </html> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (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}}]}) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (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
  
            
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