forked from tonsky/datascript
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproject.clj
87 lines (76 loc) · 4.17 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
(def version "1.7.3")
(defproject datascript (str version (System/getenv "DATASCRIPT_CLASSIFIER"))
:description "An implementation of Datomic in-memory database and Datalog query engine in ClojureScript"
:license {:name "Eclipse"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:url "https://github.com/tonsky/datascript"
:dependencies [[org.clojure/clojure "1.10.2" :scope "provided"]
[org.clojure/clojurescript "1.10.844" :scope "provided"]
[org.clojars.tiensonqin/persistent-sorted-set "0.0.6"]
[io.github.tonsky/extend-clj "0.1.0"]]
:plugins [[lein-cljsbuild "1.1.7"]]
:global-vars {*warn-on-reflection* true
*print-namespace-maps* false
;; *unchecked-math* :warn-on-boxed
}
:jvm-opts ["-Xmx2g" "-server" "-Dclojure.main.report=stderr"]
:cljsbuild {:builds [{:id "release"
:source-paths ["src"]
:assert false
:compiler {:output-to "release-js/datascript.bare.js"
:optimizations :advanced
:pretty-print false
:elide-asserts true
:output-wrapper false
:parallel-build true
:checked-arrays :warn}
:notify-command ["release-js/wrap_bare.sh"]}
{:id "advanced"
:source-paths ["src" "test"]
:compiler {:output-to "target/datascript.js"
:optimizations :advanced
:source-map "target/datascript.js.map"
:pretty-print true
:recompile-dependents false
:parallel-build true
:checked-arrays :warn}}
{:id "bench"
:source-paths ["src" "bench"]
:compiler {:main datascript.bench.datascript
:output-to "target/datascript.js"
:optimizations :advanced
; :source-map "target/datascript.js.map"
; :pretty-print true
:recompile-dependents false
:parallel-build true
:checked-arrays :warn
; :pseudo-names true
:fn-invoke-direct true
:elide-asserts true}}
{:id "none"
:source-paths ["src" "test"]
:compiler {:main datascript.test
:output-to "target/datascript.js"
:output-dir "target/none"
:optimizations :none
:source-map true
:recompile-dependents false
:parallel-build true
:checked-arrays :warn}}]}
:profiles {:test {:dependencies [[metosin/jsonista "0.3.3"]
[cheshire "5.10.0"]
[com.cognitect/transit-clj "1.0.324"]
[com.cognitect/transit-cljs "0.8.269"]]}
:bench {:dependencies [[criterium "0.4.6"]
[metosin/jsonista "0.3.3"]
[com.clojure-goes-fast/clj-async-profiler "0.5.1"]]}
:datomic {:dependencies [[com.datomic/datomic-pro "1.0.6344"]]}}
:clean-targets ^{:protect false} ["target"
"release-js/datascript.bare.js"
"release-js/datascript.js"]
:deploy-repositories
{"clojars"
{:url "https://clojars.org/repo"
:username "tonsky"
:password :env/clojars_token_datascript
:sign-releases false}})