shadow-cljs hot code swapping for Node.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/server upgrade shadow-cljs Jun 29, 2017
.gitattributes minimal example Jun 2, 2017
.gitignore upgrade deps Apr 20, 2018
README.md ignore yarn.lock; update README Feb 20, 2018
package.json upgrade deps Sep 14, 2018
shadow-cljs.edn upgrade shadow-cljs Jun 29, 2017

README.md

Node.js example for shadow-cljs

Develop

Watch compile with with hot reloading:

yarn
yarn shadow-cljs watch app

Start program:

node target/main.js

REPL

Start a REPL connected to current running program, app for the :build-id:

yarn shadow-cljs cljs-repl app

Build

shadow-cljs release app

Compiles to target/main.js.

You may find more configurations on http://doc.shadow-cljs.org/ .

Steps

  • add shadow-cljs.edn to config compilation
  • compile ClojureScript
  • run node target/main.js to start app and connect reload server

License

MIT