-
Notifications
You must be signed in to change notification settings - Fork 9
/
project.clj
40 lines (32 loc) · 1.51 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
(defproject nano-id "1.1.0"
:description "A tiny, secure, URL-friendly unique string ID generator"
:url "https://github.com/zelark/nano-id"
:license { :name "The MIT License"
:url "https://opensource.org/licenses/MIT" }
:dependencies [[org.clojure/clojure "1.11.1" :scope "provided"]
[org.clojure/clojurescript "1.11.132" :scope "provided"]]
:plugins [[lein-doo "0.1.10"]
[lein-cljsbuild "1.1.7" :exclusions [[org.clojure/clojure]]]]
:javac-options ["-Xlint:unchecked" "-target" "11" "-source" "11"]
:java-source-paths ["src"]
:profiles {:dev {:dependencies [[criterium "0.4.5"]
[com.aventrix.jnanoid/jnanoid "2.0.0"]]}
:perf {:jvm-opts ^:replace ["-server"
"-Xms4096m"
"-Xmx4096m"
"-Dclojure.compiler.direct-linking=true"]}}
:doo { :alias { :browsers [:chrome #_:firefox] }}
:aliases { "deploy" ["do" "clean," "deploy" "clojars"]
"test" ["do" ["clean"] ["test"]]
"cljs-test" ["do" ["doo" "browsers" "test" "once"]]
"bench" ["with-profile" "default,dev,perf" "run" "-m" "nano-id.benchmark"]}
:cljsbuild {
:builds [
{ :id "test"
:source-paths ["src" "test"]
:compiler { :main nano-id.runner
:output-to "target/unit-test.js"
:optimizations :advanced }}
]
}
)