Skip to content

nilenso/clj-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-formatter

Formats the clojure code without any API calls. Everything is client side

Setup

Most of the following scripts require rlwrap (on OS X installable via brew).

Build your project once in dev mode with the following script and then open index.html in your browser.

./scripts/build

To auto build your project in dev mode:

./scripts/watch

To start an auto-building Node REPL:

./scripts/repl

To get source map support in the Node REPL:

lein npm install

To start a browser REPL:

  1. Uncomment the following lines in src/clj_formatter/core.cljs:
;; (defonce conn
;;   (repl/connect "http://localhost:9000/repl"))
  1. Run ./scripts/brepl
  2. Browse to http://localhost:9000 (you should see the application)
  3. (back to step 3) you should now see the REPL prompt: cljs.user=>
  4. You may now evaluate ClojureScript statements in the browser context.

For more info using the browser as a REPL environment, see this.

Clean project specific out:

lein clean

Build a single release artifact with the following script and then open index_release.html in your browser.

./scripts/release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published