-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.clj
87 lines (76 loc) · 3.75 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 cljs-express-domina "0.1.0"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:clean-targets ["build" :target-path]
:dependencies [[org.clojure/clojure "1.11.1"]
[org.clojure/clojurescript "1.11.60"]
;; to use nodejs/require (remove if you don't need it)
[io.nervous/cljs-nodejs-externs "0.2.0"]
;; to parse cli options (remove if you don't need it)
[org.clojure/tools.cli "1.0.219"]
[domina "1.0.3"]]
:plugins [[lein-cljsbuild "1.1.8"]
[lein-npm "0.6.1"]
[lein-doo "0.1.11"]
[org.bodil/lein-noderepl "0.1.11"]
[lein-resource "17.06.1"]]
:profiles {:dev {:dependencies [[lein-doo "0.1.6"]]}}
:npm {:dependencies [[source-map-support "0.4.0"]
[express "4.18.2"]
[pug "3.0.2"]]
:package {;; To distribute a node binary, set :bin
; :bin {"cljs-express-domina" "bin/main.js"}
;; To distribute a node library, set :main
; :main "bin/main.js"
;; To push to a publicly available npm name set :private
; :private false
}}
:hooks [leiningen.resource]
:resource {
:resource-paths [ ["src/public"
{
:includes [#".*"] ;; list of regex
:excludes [#".*~"] ;; list of regex
:target-path "build/public" ;; directory to store files
}]
["src/views"
{
:includes [#".*"] ;; list of regex
:excludes [#".*~"] ;; list of regex
:target-path "build/views" ;; directory to store files
}]]
}
:aliases {"build" [["cljsbuild" "once" "server" "client"]]
"test" ["doo" "node" "test-node" "once"]
"test-auto" ["doo" "node" "test-node" "auto"]}
;; This release-task does lein npm publish in addition to lein deploy
:release-tasks [["vcs" "assert-committed"]
["clean"]
["build"]
["change" "version"
"leiningen.release/bump-version" "release"]
["vcs" "commit"]
["vcs" "tag"]
;; Uncomment the following line to distribute via npm
; ["npm" "publish"]
;; The following line deploys to a maven repo
["deploy"]
["change" "version"
"leiningen.release/bump-version"]
["vcs" "commit"]
["vcs" "push"]]
:cljsbuild {:builds [{:id "server"
:source-paths ["src/cljs_express_domina/server"]
:compiler {:output-to "build/server/main.js"
:output-dir "build/server/js"
:optimizations :simple
:target :nodejs
:pretty-print false
:source-map "build/server/main.js.map"}}
{:id "client"
:source-paths ["src/cljs_express_domina/client"]
:compiler {:output-to "build/public/js/main.js"
:output-dir "build/public/js/js"
:optimizations :advanced
:pretty-print false
:source-map "build/public/js/main.js.map"}}]})