Commit f072881a authored by Geoff Pado's avatar Geoff Pado
Browse files

Create new Clojure project.

# wwdc-parties
FIXME: Write a one-line description of your library/project.
## Overview
FIXME: Write a paragraph about the library/project and highlight its goals.
## Setup
First-time Clojurescript developers, add the following to your bash .profile:
alias cljsbuild="lein trampoline cljsbuild $@"
To avoid compiling ClojureScript for each build, AOT Clojurescript locally in your project with the following:
Subsequent dev builds can use:
lein cljsbuild auto dev
To start a Node REPL (requires rlwrap):
To get source map support in the Node REPL:
lein npm install
Clean project specific out:
lein clean
Optimized builds:
lein cljsbuild once release
For more info on Cljs compilation, read [Waitin'](
## License
Copyright © 2014 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
<script src="out/goog/base.js" type="text/javascript"></script>
<script src="wwdc_parties.js" type="text/javascript"></script>
<script type="text/javascript">goog.require("wwdc_parties.core");</script>
(defproject wwdc-parties "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url ""
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2665"]]
:node-dependencies [[source-map-support "0.2.8"]]
:plugins [[lein-cljsbuild "1.0.4"]
[lein-npm "0.4.0"]]
:source-paths ["src" "target/classes"]
:clean-targets ["out/wwdc_parties" "wwdc_parties.js" "wwdc_parties.min.js"]
:cljsbuild {
:builds [{:id "dev"
:source-paths ["src"]
:compiler {
:output-to "wwdc_parties.js"
:output-dir "out"
:optimizations :none
:cache-analysis true
:source-map true}}
{:id "release"
:source-paths ["src"]
:compiler {
:output-to "wwdc_parties.min.js"
:pretty-print false
:optimizations :advanced}}]})
rlwrap lein trampoline run -m clojure.main scripts/brepl.clj
'[cljs.repl :as repl]
'[cljs.repl.browser :as browser])
(repl/repl* (browser/repl-env)
{:output-dir "out"
:optimizations :none
:cache-analysis true
:source-map true})
lein trampoline run -m clojure.main -e "(compile 'cljs.repl.node) (compile 'cljs.repl.browser) (compile 'cljs.core)"
rlwrap lein trampoline run -m clojure.main scripts/repl.clj
'[cljs.repl :as repl]
'[cljs.repl.node :as node])
(repl/repl* (node/repl-env)
{:output-dir "out"
:optimizations :none
:cache-analysis true
:source-map true})
(ns wwdc-parties.core
(:require [clojure.browser.repl :as repl]))
;; (repl/connect "http://localhost:9000/repl")
(println "Hello world!")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment