A minimal ClojureScript Node.js template
Clojure Shell
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/leiningen/new
.gitignore
LICENSE
README.md
project.clj

README.md

mies-node-template

DEPRECATED. This template is no longer maintained.

A minimal ClojureScript Node.js template.

Usage

Run the following to create a project and start auto building.

lein new mies-node hello-world
cd hello-world
lein npm install
lein cljsbuild auto

Changes to your source files will trigger incremental compilation. To run your code use the provided loader file in the project directory:

node run.js

If you would like your program to run upon build completion you can change your build settings to look like the following:

{:id "hello-world"
 :source-paths ["src"]
 :notify-command ["node" "run.js"] ;; << ADD THIS
 :compiler {
   :output-to "out/hello_world.js"
   :output-dir "out"
   :target :nodejs
   :optimizations :none
   :source-map true}}

License

Copyright © 2014 David Nolen

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.