This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.clj
87 lines (73 loc) · 3.02 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
(defproject cljsnode "0.1.1-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.48"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[reagent "0.5.1"]
[kioo "0.4.1"]]
:npm {:dependencies [[express "4.13.3"]
[xmlhttprequest "*"]
[xmldom "0.1.19"]
[source-map-support "*"]
[react "0.13.3"]]
:root :root}
:plugins [[lein-cljsbuild "1.1.0"]
[lein-npm "0.6.1"]]
:min-lein-version "2.1.2"
:hooks [leiningen.cljsbuild]
:aliases {"start" ["npm" "start"]}
:main "main.js"
:source-paths ["src/cljs"]
:clean-targets ^{:protect false} [[:cljsbuild :builds :server :compiler :output-to]
[:cljsbuild :builds :app :compiler :output-dir]
"node_modules"
:target-path :compile-path]
:figwheel {:http-server-root "public"
:css-dirs ["resources/public/css"]
:server-logfile "logs/figwheel.log"}
:cljsbuild {:builds
{:app
{:source-paths ["src/browser" "src/cljs"]
:compiler {:output-to "resources/public/js/out/app.js"
:output-dir "resources/public/js/out"
:asset-path "js/out"
:main app.start
:optimizations :none}}
:server
{:source-paths ["src/node" "src/cljs"]
:compiler {:target :nodejs
:output-to "main.js"
:output-dir "target"
:main server.core
:optimizations :none}
}}}
:profiles {:dev
{:plugins
[[lein-figwheel "0.3.9"]]
:cljsbuild
{:builds
{:app
{:compiler {:pretty-print true}
:source-map true
:figwheel true}
:server
{:compiler {:pretty-print true}
:source-map true
:figwheel {:heads-up-display false}}}}
:npm {:dependencies [[ws "*"]]}}
:prod
{:env {:production true}
:cljsbuild
{:builds
{:server
{:compiler {:optimizations :simple
:foreign-libs [{:file "src/node/polyfill/simple.js"
:provides ["polyfill.simple"]}]
:pretty-print false}}
:app
{:compiler {:output-dir "target/app/out"
:optimizations :advanced
:pretty-print false}}}}}})