forked from jiacai2050/gooreplacer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
91 lines (90 loc) · 5.96 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
(defproject gooreplacer "3.10.0"
:description "Modify, block URLs & Headers"
:url "https://github.com/jiacai2050/gooreplacer"
:license {:name "MIT"
:url "http://liujiacai.net/license/MIT.html?year=2015"}
:dependencies [[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.597"]
[figwheel-sidecar "0.5.14"]
[org.clojure/core.match "0.3.0-alpha5"]
[org.clojure/data.json "0.2.7"]
[alandipert/storage-atom "2.0.1"]]
:plugins [[lein-figwheel "0.5.14"]
[lein-cljsbuild "1.1.7"]
[lein-doo "0.1.8"]]
:profiles {
;; https://docs.cider.mx/cider/0.23/basics/clojurescript.html#_piggieback
;; cider will jack in piggieback automatically
;; :dev {:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}
:dev {:source-paths ["src/common"]}
:ui-deps {:dependencies [[antizer "0.3.0"]
[cljs-http "0.1.43"]
[org.clojure/core.async "0.3.443"]
[reagent "0.8.1"]]}
:bg-deps {:dependencies []}
:dev-option {:source-paths ["src/option"]
:clean-targets ^{:protect false} [:target-path "resources/dev/option/js"]
:cljsbuild {:builds [{:id "dev"
:figwheel true
:source-paths ["src/option" "src/common"]
:compiler {:output-to "resources/dev/option/js/main.js"
:source-map true
:asset-path "js"
:output-dir "resources/dev/option/js"
:optimizations :none
:main gooreplacer.core
:verbose true}}]}
:figwheel {:server-port 8080
:http-server-root "dev/option"
:css-dirs ["resources/dev/option/css"]
:server-logfile ".figwheel_option.log"
:repl true}}
:dev-bg {:source-paths ["src/background" "src/common"]
:clean-targets ^{:protect false} [:target-path "resources/dev/background/js"]
:figwheel {:server-port 8081
:http-server-root "dev/background"
:server-logfile ".figwheel_bg.log"
:repl true}
:cljsbuild {:builds [{:id "dev"
:figwheel true
:source-paths ["src/background" "src/common"]
:compiler {:output-to "resources/dev/background/js/main.js"
:source-map true
:output-dir "resources/dev/background/js"
:asset-path "js"
:main gooreplacer.core
:optimizations :none
:verbose true}}]}}
:release {:clean-targets ^{:protect false} [:target-path
"resources/release/option/js"
"resources/release/background/js"]
:cljsbuild {:builds [{:id "option"
:source-paths ["src/option" "src/common"]
:compiler {:output-to "resources/release/option/main.js"
:output-dir "resources/release/option/js"
:externs ["externs/chrome_extensions.js" "externs/chrome.js"]
:optimizations :advanced
:main gooreplacer.core}}
{:id "background"
:source-paths ["src/background" "src/common"]
:compiler {:output-to "resources/release/background/main.js"
:output-dir "resources/release/background/js"
:externs ["externs/chrome_extensions.js" "externs/chrome.js"]
:optimizations :advanced
:main gooreplacer.core}}]}}
:test {:cljsbuild {:builds [{:id "test"
:source-paths ["test" "src/common"]
:compiler {:output-to "out/main.js"
:main gooreplacer.runner
:optimizations :none}}]}
:doo {:build "test"}}}
:aliases {"option" ["with-profile" "dev-option,ui-deps" "do"
["clean"]
["figwheel" "dev"]]
"bg" ["with-profile" "dev-bg,bg-deps" "do"
["clean"]
["figwheel" "dev"]]
"test-and-watch" ["with-profile" "test" "do"
["clean"]
;; First install phantom
["doo" "phantom"]]})