-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
94 lines (73 loc) · 3.63 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
91
92
93
94
(defproject clojexcms "0.1.0-SNAPSHOT"
:description "Clojure(Script) Example CMS"
:url "https://github.com/improper/clojexcms"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:source-paths ["src/clj" "src/sql"]
:test-paths ["spec/clj"]
:clean-targets ^{:protect false} [:target-path
"resources/public/js/backend/app.js"
"resources/public/js/backend/out"]
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2665" :scope "provided"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[bootstrap-cljs "0.0.3" :exclusions [org.clojure/clojure]]
[com.taoensso/sente "1.3.0-RC2"]
[compojure "1.3.1"]
[crypto-password "0.1.3"]
[enlive "1.1.5"]
[environ "1.0.0"]
[http-kit "2.1.19"]
[markdown-clj "0.9.61" :exclusions [org.clojure/clojure]]
[om "0.8.0-rc1"]
[postgresql "9.3-1102.jdbc41"]
[prismatic/om-tools "0.3.10" :exclusions [potemkin]]
[ring "1.3.2"]
[ring/ring-defaults "0.1.2"]
[yesql "0.4.0"]]
:plugins [[lein-cljsbuild "1.0.4"]
[lein-environ "1.0.0"]
[com.github.metaphor/lein-flyway "1.0"]
[lein-less "1.7.2"]]
:min-lein-version "2.5.0"
:uberjar-name "clojexcms.jar"
:cljsbuild {:builds {:app {:source-paths ["src/cljs"]
:compiler {:output-to "resources/public/js/backend/app.js"
:output-dir "resources/public/js/backend/out"
:source-map "resources/public/js/backend/out.js.map"
:preamble ["react/react.min.js"]
:optimizations :none
:pretty-print true}}}}
:less {:source-paths ["src/less"]
:target-path "resources/public/css"}
:profiles {:dev {:source-paths ["env/dev/clj"]
:dependencies [[figwheel "0.1.7-SNAPSHOT"]
[leiningen "2.5.0"]]
:repl-options {:init-ns clojexcms.server}
:plugins [[lein-figwheel "0.1.7-SNAPSHOT"]]
:figwheel {:http-server-root "public"
:server-port 3449
:css-dirs ["resources/public/css"]}
:env {:is-dev true}
:cljsbuild {:builds
{:app
{:source-paths ["env/dev/cljs"]}}}}
:uberjar {:source-paths ["env/prod/clj"]
:hooks [leiningen.cljsbuild leiningen.less]
:env {:production true}
:omit-source true
:aot :all
:cljsbuild {:builds {:app
{:source-paths ["env/prod/cljs"]
:compiler
{:optimizations :advanced
:pretty-print false}}}}}}
;; Flyway Database Migration configuration
:flyway {
;; Database connection
:driver "org.postgresql.Driver"
:url "jdbc:postgresql://localhost/clojexcms"
:user "dev"
:password "dev"
;; Migration locations
:locations ["migrations"]})