Skip to content

clojurescript rhino and browser repl for leiningen

License

Notifications You must be signed in to change notification settings

itegebo/lein-repljs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lein ReplJs

Run a clojurescript repl with rhino or in a browser.

lein trampoline repljs                 => rhino repl
lein trampoline repljs browser [port]  => browser repl

The browser repl creates repljs.html in the project directory, and client.js and repljs.js in the directory named by the :cljs {:output-dir ...} property (it defaults to public). If the browser command is phantom or phantomjs an additional file repljs-phantom.js is created in the same directory.

Use (load-namespace example.namespace) instead of require, which will not work. Alternatively, use a ns declaration to load namespaces:

(ns temp.ns
  (:require [example.namespace :as ex]))

Due to Leiningen 1.x limitations the repljs plugin must be run via trampoline.

About

clojurescript rhino and browser repl for leiningen

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 100.0%