This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathproject.clj
128 lines (118 loc) · 8.03 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
(defproject binaryage/chromex-sample "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.10.1"]
[org.clojure/clojurescript "1.10.520"]
[org.clojure/core.async "0.4.500"]
[binaryage/chromex "0.8.1"]
[binaryage/devtools "0.9.10"]
[figwheel "0.5.19"]
[environ "1.1.0"]]
:plugins [[lein-cljsbuild "1.1.7"]
[lein-figwheel "0.5.19"]
[lein-shell "0.5.0"]
[lein-environ "1.1.0"]
[lein-cooper "1.2.2"]]
:source-paths ["src/background"
"src/popup"
"src/content_script"]
:clean-targets ^{:protect false} ["target"
"resources/unpacked/compiled"
"resources/release/compiled"]
:cljsbuild {:builds {}} ; prevent https://github.com/emezeske/lein-cljsbuild/issues/413
:profiles {:unpacked
{:cljsbuild {:builds
{:background
{:source-paths ["src/background"]
:figwheel true
:compiler {:output-to "resources/unpacked/compiled/background/main.js"
:output-dir "resources/unpacked/compiled/background"
:asset-path "compiled/background"
:preloads [devtools.preload figwheel.preload]
:main chromex-sample.background
:optimizations :none
:source-map true}}
:popup
{:source-paths ["src/popup"]
:figwheel true
:compiler {:output-to "resources/unpacked/compiled/popup/main.js"
:output-dir "resources/unpacked/compiled/popup"
:asset-path "compiled/popup"
:preloads [devtools.preload figwheel.preload]
:main chromex-sample.popup
:optimizations :none
:source-map true}}}}}
:unpacked-content-script
{:cljsbuild {:builds
{:content-script
{:source-paths ["src/content_script"]
:compiler {:output-to "resources/unpacked/compiled/content-script/main.js"
:output-dir "resources/unpacked/compiled/content-script"
:asset-path "compiled/content-script"
:main chromex-sample.content-script
;:optimizations :whitespace ; content scripts cannot do eval / load script dynamically
:optimizations :advanced ; let's use advanced build with pseudo-names for now, there seems to be a bug in deps ordering under :whitespace mode
:pseudo-names true
:pretty-print true}}}}}
:checkouts
; DON'T FORGET TO UPDATE scripts/ensure-checkouts.sh
{:cljsbuild {:builds
{:background {:source-paths ["checkouts/cljs-devtools/src/lib"
"checkouts/chromex/src/lib"
"checkouts/chromex/src/exts"]}
:popup {:source-paths ["checkouts/cljs-devtools/src/lib"
"checkouts/chromex/src/lib"
"checkouts/chromex/src/exts"]}}}}
:checkouts-content-script
; DON'T FORGET TO UPDATE scripts/ensure-checkouts.sh
{:cljsbuild {:builds
{:content-script {:source-paths ["checkouts/cljs-devtools/src/lib"
"checkouts/chromex/src/lib"
"checkouts/chromex/src/exts"]}}}}
:figwheel
{:figwheel {:server-port 6888
:server-logfile ".figwheel.log"
:repl true}}
:disable-figwheel-repl
{:figwheel {:repl false}}
:cooper
{:cooper {"content-dev" ["lein" "content-dev"]
"fig-dev-no-repl" ["lein" "fig-dev-no-repl"]
"browser" ["scripts/launch-test-browser.sh"]}}
:release
{:env {:chromex-elide-verbose-logging "true"}
:cljsbuild {:builds
{:background
{:source-paths ["src/background"]
:compiler {:output-to "resources/release/compiled/background.js"
:output-dir "resources/release/compiled/background"
:asset-path "compiled/background"
:main chromex-sample.background
:optimizations :advanced
:elide-asserts true}}
:popup
{:source-paths ["src/popup"]
:compiler {:output-to "resources/release/compiled/popup.js"
:output-dir "resources/release/compiled/popup"
:asset-path "compiled/popup"
:main chromex-sample.popup
:optimizations :advanced
:elide-asserts true}}
:content-script
{:source-paths ["src/content_script"]
:compiler {:output-to "resources/release/compiled/content-script.js"
:output-dir "resources/release/compiled/content-script"
:asset-path "compiled/content-script"
:main chromex-sample.content-script
:optimizations :advanced
:elide-asserts true}}}}}}
:aliases {"dev-build" ["with-profile" "+unpacked,+unpacked-content-script,+checkouts,+checkouts-content-script" "cljsbuild" "once"]
"fig" ["with-profile" "+unpacked,+figwheel" "figwheel" "background" "popup"]
"content" ["with-profile" "+unpacked-content-script" "cljsbuild" "auto" "content-script"]
"fig-dev-no-repl" ["with-profile" "+unpacked,+figwheel,+disable-figwheel-repl,+checkouts" "figwheel" "background" "popup"]
"content-dev" ["with-profile" "+unpacked-content-script,+checkouts-content-script" "cljsbuild" "auto"]
"devel" ["with-profile" "+cooper" "do" ; for mac only
["shell" "scripts/ensure-checkouts.sh"]
["cooper"]]
"release" ["with-profile" "+release" "do"
["clean"]
["cljsbuild" "once" "background" "popup" "content-script"]]
"package" ["shell" "scripts/package.sh"]})