-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.clj
64 lines (57 loc) · 3.49 KB
/
project.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
(defproject eq "0.2.3-SNAPSHOT"
:description "Like jq, for EDN"
:url "https://github.com/oscaro/eq"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.7.228"]
[org.clojure/core.async "0.2.374"]
[org.clojure/tools.nrepl "0.2.10"] ; non-teletype repl; needed for vim-fireplace
[io.nervous/cljs-nodejs-externs "0.2.0"]]
:profiles {:dev {:dependencies [[com.cemerick/piggieback "0.2.1"]
[org.clojure/tools.nrepl "0.2.10"]]
:plugins [[org.bodil/lein-noderepl "0.1.11"] ; required to launch the node repl
[lein-cljsbuild "1.1.2"] ; required to compile cljs to js
[lein-npm "0.6.1"] ; lein interface with npm (see below)
[lein-doo "0.1.6"]] ; the current "standard" testing framework
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}}
:cljsbuild {:builds {:main
{:source-paths ["src"]
:compiler {:optimizations :advanced
:target :nodejs
:output-dir "out-advanced"
:output-to "target/eq.js"
:externs ["externs.js"]
:verbose true
:pretty-print true}}
:none
{:source-paths ["src"]
:compiler {:optimizations :none
:target :nodejs
:output-dir "out-none"
:output-to "target/eq-none.js"
:externs ["externs.js"]
:verbose true
:pretty-print true}}
;; lein doo uses this profile
:test-none
{:source-paths ["src" "test"] ; note the added "test" directory
:compiler {:optimizations :none
:target :nodejs
:output-dir "out-test-none"
:output-to "target/eq-test-none.js"
:externs ["externs.js"]
:verbose true
:main eq.runner
:pretty-print true}}
;; lein doo uses this profile
:test-advanced
{:source-paths ["src" "test"] ; note the added "test" directory
:compiler {:optimizations :advanced
:target :nodejs
:output-dir "out-test-advanced"
:output-to "target/eq-test-advanced.js"
:externs ["externs.js"]
:verbose true
:main eq.runner
:pretty-print true}}}})