-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadow-cljs.edn
52 lines (52 loc) · 2.02 KB
/
shadow-cljs.edn
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
{:source-paths ["src", "test"]
; :lein true
:dependencies [[instaparse "1.4.10"]
[nano-id "1.0.0"]
[hiccup-find "1.0.0"]
[org.clojure/tools.cli "1.0.194"]]
:dev-http {8080 "target/"}
:builds {:lib
{:target :node-library
:output-to "dist/bach.cjs.js"
:js-options {:entry-keys ["main" "browser"]}
:exports {:compose bach.compose/compose,
:elementize bach.compose/elementize}}
; :exports-fn bach.exports/generate}
; TODO: Update package.json:main, package.json:module
; :esm
; {:target :esm
; :output-dir "dist"
; :output-to "dist/bach.esm.js"
; :modules {:lib
; {:exports {:compose bach.compose/compose
; :elementize bach.compose/elementize}}}}
:umd
{:target :browser
:output-dir "dist"
; :output-to "dist/bach.umd.js"
; :js-options {:entry-keys ["module" "browser" "main"]
; :js-provider :shadow}
:js-options {:entry-keys ["module" "browser" "main"]}
; :release {:compiler-options {:optimizations :simple}}
; LAST
; :modules {:main {:entries [bach.compose]}}}
:modules {:bach.umd {:entries [bach.compose]}}}
:npm
{:target :npm-module
:output-dir "dist"
:entries [bach.compose]}
:test
{:target :node-test
:output-to "target/js/node-tests.js"
:ns-regexp "-test$"
:autorun true
; :main bach.test/-main
; :js-options
; {
; ; :resolve {"crypto" {:target :file
; ; :file "test/bach/runtime.js"}}}
; ; :resolve {"crypto" {:target :node
; ; :require "crypto"}}}
; :resolve {"crypto" {:target :global
; :require "crypto"}}}
}}}