forked from reagent-project/reagent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
67 lines (56 loc) · 2.92 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
(defproject reagent "0.5.0-SNAPSHOT"
:url "http://github.com/reagent-project/reagent"
:license {:name "MIT"}
:description "A simple ClojureScript interface to React"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2816"]
[cljsjs/react "0.12.2-5"]]
:plugins [[lein-cljsbuild "1.0.4"]]
:source-paths ["src"]
:profiles {:test {:cljsbuild
{:builds {:client {:source-paths ["test"]}}}}
:dev-base {:dependencies [[figwheel "0.2.3-SNAPSHOT"]]
:plugins [[lein-figwheel "0.2.3-SNAPSHOT"]]
:source-paths ["demo"] ;; for lighttable
:resource-paths ["site" "outsite"]
:figwheel {:css-dirs ["site/public/css"]}
:cljsbuild
{:builds
{:client
{:source-paths ["env/dev"]
:compiler {:main "reagentdemo.dev"
:source-map true
:source-map-timestamp true
:optimizations :none
:output-dir "outsite/public/js/out"
:asset-path "js/out"}}}}}
:site {:resource-paths ^:replace ["outsite"]
:figwheel {:css-dirs ^:replace ["outsite/public/css"]}
:cljsbuild
{:builds {:client
{:notify-command ["node" "bin/gen-site.js"]}}}}
:prod [:site
{:cljsbuild
{:builds {:client
{:compiler {:optimizations :advanced
:elide-asserts true
:pretty-print false
:output-dir "target/client"}}}}}]
:dev [:test :dev-base]
:prod-test [:test :prod]}
:clean-targets ^{:protect false} [:target-path :compile-path
"outsite/public/js"
"outsite/public/site"
"outsite/public/news"
"outsite/public/css"
"outsite/public/index.html"
"out"]
:cljsbuild {:builds {:client
{:source-paths ["src"
"demo"
"examples/todomvc/src"
"examples/simple/src"
"examples/geometry/src"]
:compiler {:output-to "outsite/public/js/main.js"}}}}
:figwheel {:http-server-root "public" ;; assumes "resources"
:repl false})