-
-
Notifications
You must be signed in to change notification settings - Fork 66
/
project.clj
139 lines (139 loc) · 6.21 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
(defproject sablono "0.9.0-SNAPSHOT"
:description "Lisp style templating for Facebook's React."
:url "http://github.com/r0man/sablono"
:author "r0man"
:min-lein-version "2.0.0"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.10.1"]]
:profiles {:dev {:dependencies [[criterium "0.4.5"]
[codox-theme-rdash "0.1.2"]
[devcards "0.2.6" :exclusions [sablono]]
[doo "0.1.11"]
[figwheel-sidecar "0.5.19"]
[funcool/tubax "0.2.0"]
[org.clojure/core.rrb-vector "0.1.1"]
[org.clojure/test.check "1.0.0"]
[perforate-x "0.1.0"]
[reagent "0.10.0"]
[rum "0.11.4" :exclusions [sablono]]
[uix/core "0.0.1-alpha"]]
:plugins [[lein-cljsbuild "1.1.8"]
[lein-codox "0.10.7"]
[lein-doo "0.1.11"]
[lein-figwheel "0.5.19"]
[perforate "0.3.4"]]
:resource-paths ["test-resources" "target"]}
:provided {:dependencies [[cljsjs/create-react-class "15.6.3-1"]
[cljsjs/react "16.13.1-0"]
[cljsjs/react-dom "16.13.1-0"]
[cljsjs/react-dom-server "16.13.1-0"]
[org.clojure/clojurescript "1.10.439"]]}
:repl {:dependencies [[cider/piggieback "0.4.2"]]
:repl-options {:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}}}
:aliases {"benchmark" ["doo" "node" "benchmark" "once"]
"ci" ["do" ["clean"] ["test"] ["test.nashorn"] ["test.node"] ["test.phantom"] ["benchmark"]]
"deploy" ["do" "clean," "deploy" "clojars"]
"test.nashorn" ["doo" "nashorn" "advanced" "once"]
"test.node" ["doo" "node" "nodejs" "once"]
"test.phantom" ["doo" "phantom" "advanced" "once"]}
:clean-targets ^{:protect false} [:target-path]
:cljsbuild {:builds
[{:id "devcards"
:compiler
{:asset-path "devcards"
:aot-cache true
:main sablono.test.runner
:output-to "target/public/sablono.js"
:output-dir "target/public/devcards"
:optimizations :none
:pretty-print true
:source-map true
:verbose false}
:figwheel {:devcards true}
:source-paths ["src" "test"]}
{:id "benchmark"
:compiler
{:asset-path "target/benchmark/out"
:aot-cache true
:main sablono.benchmark
:npm-deps
{:benchmark "1.0.0"
:create-react-class "15.6.3"
:react "16.13.1"
:react-dom "16.13.1"}
:install-deps true
:output-dir "target/benchmark/out"
:output-to "target/benchmark/sablono.js"
:optimizations :none
:target :nodejs
:pretty-print true
:verbose false}
:source-paths ["src" "benchmark"]}
{:id "nodejs"
:compiler
{:asset-path "target/nodejs/out"
:aot-cache true
:main sablono.test.runner
:npm-deps
{:benchmark "1.0.0"
:create-react-class "15.6.3"
:react "16.13.1"
:react-dom "16.13.1"}
:install-deps true
:optimizations :none
:output-dir "target/nodejs/out"
:output-to "target/nodejs/sablono.js"
:pretty-print true
:source-map true
:target :nodejs
:verbose false}
:source-paths ["src" "test"]}
{:id "none"
:compiler
{:asset-path "target/none/out"
:aot-cache true
:main sablono.test.runner
:output-to "target/none/sablono.js"
:output-dir "target/none/out"
:optimizations :none
:pretty-print true
:source-map true
:verbose false}
:source-paths ["src" "test"]}
{:id "advanced"
:compiler
{:asset-path "target/advanced/out"
:aot-cache true
:main sablono.test.runner
:output-dir "target/advanced/out"
:optimizations :advanced
:output-to "target/advanced/sablono.js"
;; Polyfills needed for PhantomJS and Nashorn
:preamble ["polyfills/symbol.js"
"polyfills/symbol.iterator.js"
"polyfills/map.js"
"polyfills/set.js"
"polyfills/number.isnan.js"]
:pretty-print true
:verbose false}
:source-paths ["src" "test"]}
{:id "sample"
:compiler
{:asset-path "target/sample/out"
:aot-cache true
:main example.core
:output-dir "target/sample/out"
:output-to "target/sample/sablono.js"
:optimizations :advanced
:pseudo-names true
:pretty-print true
:verbose false}
:source-paths ["src" "sample"]}]}
:codox {:metadata {:doc/format :markdown}
:themes [:rdash]
:output-path "codox"}
:deploy-repositories [["releases" :clojars]]
:perforate {:environments [{:namespaces [sablono.benchmark]}]}
:test-selectors {:benchmark :benchmark
:default (complement :benchmark)})