-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
73 lines (63 loc) · 4.3 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
(defproject watchlist "0.6.0"
:dependencies [[org.clojure/clojure "1.9.0-alpha15"]
[org.clojure/clojurescript "1.9.494"]
[org.clojure/core.async "0.3.465"]
[com.lucasbradstreet/instaparse-cljs "1.4.1.2"]
[hipo "0.5.2"]
[cljsjs/xregexp "3.1.1-0"]]
:plugins [[lein-cljsbuild "1.1.5"]
[lein-shell "0.4.2"]
[lein-chromebuild "0.3.0"]]
:source-paths ["src/watchlist" "src/extension" "src/options"]
:cljsbuild {:builds
{:dev {:source-paths ["src/common" "src/watchlist" "src/extension"]
:compiler {:output-to "target/unpacked/watchlist.js"
:output-dir "target/unpacked/watchlist"
:optimizations :whitespace
:main "extension.chrome"
;; Work around issue raised with CLJS compiler commit 404d6444cb641
;; More here: http://dev.clojure.org/jira/browse/CLJS-1547?focusedCommentId=42617
:closure-output-charset "US-ASCII"
:anon-fn-naming-policy :unmapped
:pretty-print true
:cache-analysis true
:source-map "target/unpacked/watchlist.js.map"
:source-map-timestamp true}}
:options {:source-paths ["src/common" "src/options"]
:compiler {:output-to "target/unpacked/options.js"
:output-dir "target/unpacked/options"
:optimizations :whitespace
;; Work around issue raised with CLJS compiler commit 404d6444cb641
;; More here: http://dev.clojure.org/jira/browse/CLJS-1547?focusedCommentId=42617
:closure-output-charset "US-ASCII"
:anon-fn-naming-policy :unmapped
:pretty-print true
:cache-analysis true
:source-map "target/unpacked/options.js.map"
:source-map-timestamp true}}
:options-prod {:source-paths ["src/common" "src/options"]
:compiler {:output-to "target/options-prod/options.js"
:output-dir "target/options-prod/options"
:optimizations :advanced
:externs ["resources/externs.js"]}}
:test {:source-paths ["src/common" "src/watchlist" "test"]
:compiler {:output-to "target/test/watchlist.js"
:output-dir "target/test/watchlist"
:optimizations :whitespace
:externs ["resources/externs.js"]}
:notify-command ["phantomjs" "phantom/runner.js" "resources/testing/index.html"]}
:prod {:source-paths ["src/common" "src/watchlist" "src/extension"]
:compiler {:output-to "target/prod/watchlist.js"
:output-dir "target/prod/watchlist"
:optimizations :advanced
:externs ["resources/externs.js"]}}}}
:chromebuild {:resource-paths ["resources/assets"]
:target-path "target/unpacked"}
:resource-paths ["resources"]
:aliases {"dev" ["do" "clean,"
"shell" "scripts/insert_assets.sh" "target/unpacked,"
"cljsbuild" "auto" "dev" "options"]
"prod" ["do" "clean,"
"cljsbuild" "once" "prod" "options-prod,"
"shell" "scripts/package.sh"]
"autotest" ["do" "clean," "cljsbuild" "auto" "test"]})