-
Notifications
You must be signed in to change notification settings - Fork 15
/
project.clj
53 lines (53 loc) · 2.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
; For an annotated example of all the options that may be set in a
; project.clj file see
; https://github.com/technomancy/leiningen/blob/master/sample.project.clj
(defproject noir-auth-app "0.3.0-SNAPSHOT"
:description "A complete authentication web app based on Clojure/ClojureScript, Compojure, lib-noir, Enlive and MongoDB."
:dependencies [[org.clojure/clojure "1.4.0"]
[ring/ring-jetty-adapter "1.1.8"]
[compojure "1.1.5"]
[hiccup "1.0.2"]
[enlive/enlive "1.1.1"]
[lib-noir "0.4.8"]
[congomongo "0.4.0"]
[com.draines/postal "1.9.2"]
[clj-time "0.4.4"]
[jayq "2.3.0"]
[shoreleave/shoreleave-remote-ring "0.3.0"]
[shoreleave/shoreleave-remote "0.3.0"]]
:plugins [[lein-cljsbuild "0.3.0"]]
;; Load these namespaces from within Leiningen to pick up hooks from them.
;; See "Hooking Into Default Leiningen Tasks" in p. 83 of
;; Sierra & VanderHart's "ClojureScript: Up and Running"
;; https://github.com/emezeske/lein-cljsbuild#hooks
:hooks [leiningen.cljsbuild]
:cljsbuild {
:builds {
; :source-paths are the paths under which lein-cljsbuild will look
; for ClojureScript files to compile.
; More on :optimizations :whitespace and :externs in
; http://lukevanderhart.com/2011/09/30/using-javascript-and-clojurescript.html
; https://github.com/ibdknox/jayq#compiling
; Notice that the build configuration IDs (:dev, :prod), do not have
; to do with Leiningen profiles
; https://github.com/emezeske/lein-cljsbuild#multiple-build-configurations
; https://github.com/emezeske/lein-cljsbuild/blob/0.3.0/example-projects/advanced/project.clj
:dev
{:source-paths ["src"]
:compiler {
; The path to the JavaScript file that will be output.
; Defaults to "target/cljsbuild-main.js".
:output-to "resources/public/js/cljs-debug.js"
:optimizations :whitespace
:pretty-print true }}
:prod
{:source-paths ["src"]
:compiler {
:output-to "resources/public/js/cljs.js"
:optimizations :advanced
:pretty-print false
:externs ["externs/jquery.js"]}}}}
; besides warning users of earlier versions of Leiningen, this also forces Heroku to use 2.x
:min-lein-version "2.0.0"
:main noir-auth-app.server
:source-paths ["src"])