-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.clj
55 lines (53 loc) · 1.67 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
(defproject dataquery "0.1.0"
:description "An implementation of the datalog query language with user-provided indexes."
:license {:name "Eclipse"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:url "https://github.com/dahjelle/dataquery"
:dependencies [
[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-2341"]
]
:cljsbuild {
:builds [
{ :id "release"
:source-paths ["src"]
:assert false
:compiler {
:output-to "index.js"
:optimizations :advanced
:pretty-print false
:preamble ["datascript/preamble.js"]
:elide-asserts true
}}
]}
:profiles {
:dev {
:plugins [
[lein-cljsbuild "1.0.3"]
[com.cemerick/clojurescript.test "0.3.1"]
]
:cljsbuild {
:builds [
{ :id "dev"
:source-paths ["src" "test"]
:compiler {
:output-to "web/datascript.js"
:output-dir "web/out"
:optimizations :none
:source-map true
}}
{ :id "testable"
:source-paths ["src" "test"]
:compiler {
:output-to "web/datascript.testable.js"
:optimizations :simple ; needs to be :simple or :advanced for Node tests
}}
]
:test-commands {
;"test.datascript" [ "phantomjs" :runner "web/datascript.testable.js" ]
"test.datascript" [ "node" :node-runner "web/datascript.testable.js" ]
;"test.datascript.js" [ "node" "test/js/index.js" ] ; requires a specific CouchDB database to pass
}
}
}
})