-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathproject.clj
90 lines (90 loc) · 3.43 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
(defproject bengine "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:dependencies [[bidi "2.1.1"]
[com.cemerick/piggieback "0.2.1"]
[com.taoensso/timbre "4.10.0"]
[hiccups "0.3.0"]
[macchiato/core "0.1.8"]
[macchiato/env "0.0.6"]
[mount "0.1.11"]
[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.542"]
[macchiato/fs "0.0.7"]
[org.clojure/tools.reader "0.10.0"]
[org.clojure/test.check "0.9.0"]]
:jvm-opts ^:replace ["-Xmx1g" "-server"]
:plugins [[lein-doo "0.1.7"]
[macchiato/lein-npm "0.6.3"]
[lein-figwheel "0.5.10"]
[lein-cljsbuild "1.1.5"]
[cider/cider-nrepl "0.15.0-SNAPSHOT"]
[refactor-nrepl "2.3.0-SNAPSHOT"]]
:npm {:dependencies [[source-map-support "0.4.6"]]
:write-package-json true}
:source-paths ["src" "target/classes"]
:clean-targets ["target"]
:target-path "target"
:profiles
{:dev
{:npm {:package {:main "target/out/bengine.js"
:scripts {:start "node target/out/bengine.js"}}}
:cljsbuild
{:builds {:dev
{:source-paths ["env/dev" "src"]
:figwheel true
:compiler {:main bengine.app
:output-to "target/out/bengine.js"
:output-dir "target/out"
:target :nodejs
:optimizations :none
:pretty-print true
:source-map true
:source-map-timestamp false}}}}
:figwheel
{:http-server-root "public"
:nrepl-port 7000
:reload-clj-files {:clj false :cljc true}
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl
refactor-nrepl.middleware/wrap-refactor
cider.nrepl/cider-middleware]}
:source-paths ["env/dev"]
:repl-options {:init-ns user}}
:test
{:cljsbuild
{:builds
{:test
{:source-paths ["env/test" "src" "test"]
:compiler {:main bengine.app
:output-to "target/test/bengine.js"
:target :nodejs
:optimizations :none
:pretty-print true
:source-map true}}}}
:doo {:build "test"}}
:release
{:npm {:package {:main "target/release/bengine.js"
:scripts {:start "node target/release/bengine.js"}}}
:cljsbuild
{:builds
{:release
{:source-paths ["env/prod" "src"]
:compiler {:main bengine.app
:output-to "target/release/bengine.js"
:language-in :ecmascript5
:target :nodejs
:optimizations :simple
:pretty-print false}}}}}}
:aliases
{"build" ["do"
["clean"]
["npm" "install"]
["figwheel" "dev"]]
"package" ["do"
["clean"]
["npm" "install"]
["with-profile" "release" "npm" "init" "-y"]
["with-profile" "release" "cljsbuild" "once"]]
"test" ["do"
["npm" "install"]
["with-profile" "test" "doo" "node"]]})