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

Create new Clojure project.

parents
### https://raw.github.com/github/gitignore/master/Clojure.gitignore
pom.xml
pom.xml.asc
*jar
/lib/
/classes/
/target/
/checkouts/
.lein-deps-sum
.lein-repl-history
.lein-plugins/
.lein-failures
# 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:
export LEIN_FAST_TRAMPOLINE=y
alias cljsbuild="lein trampoline cljsbuild $@"
To avoid compiling ClojureScript for each build, AOT Clojurescript locally in your project with the following:
./scripts/compile_cljsc
Subsequent dev builds can use:
lein cljsbuild auto dev
To start a Node REPL (requires rlwrap):
./scripts/repl
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'](http://swannodette.github.io/2014/12/22/waitin/).
## License
Copyright © 2014 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
<html>
<body>
<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>
</body>
</html>
(defproject wwdc-parties "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
: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}}]})
#!/bin/sh
rlwrap lein trampoline run -m clojure.main scripts/brepl.clj
(require
'[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})
#!/bin/sh
lein trampoline run -m clojure.main -e "(compile 'cljs.repl.node) (compile 'cljs.repl.browser) (compile 'cljs.core)"
#!/bin/sh
rlwrap lein trampoline run -m clojure.main scripts/repl.clj
(require
'[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")
(enable-console-print!)
(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