Skip to content
Javascript refactoring with Clojurescript
JavaScript Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc
libs
out
src-cljs/jsrefact
src/jsrefact/clj
test-cljs/jsrefact
test/jsrefact
.gitignore
README.md
index.html
jsrefact.html
project.clj
testing.html

README.md

jsrefact (WIP)

A Clojure library designed to perform Javascript refactoring with Clojurescript & core.logic

Requirements

Latest version of Leiningen installed.

Usage

Run deps to get all the dependencies.

$ lein deps

Build the Clojurescript source once:

$ lein cljsbuild once

Or set it to autobuild:

$ lein cljsbuild auto

Once it is build or set to autobuild start the browser connected repl:

$ lein trampoline cljsbuild repl-listen

When this repl is started it will still hang because it still needs to be connected to the browser. Therefore goto : localhost:9000 in your browser.

When the repl is active you can test it by following command. A JavaScript alert should popup in the browser.

(js/alert "hello world")

Once the repl works, you can load the jsrefact namespace and start using it.

(ns jsrefact.core)

License

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.