project.clj 3.38 KB
Newer Older
Ricardo J. Mendez's avatar
Ricardo J. Mendez committed
1
(defproject relevance-chrome "1.0.11-SNAPSHOT"
2 3
  :license {:name "MIT License"
            :url  "https://tldrlegal.com/license/mit-license"}
4
  :dependencies [[org.clojure/clojure "1.8.0"]
5 6
                 [org.clojure/clojurescript "1.9.671"]
                 [org.clojure/core.async "0.3.443"]
7
                 [com.cognitect/transit-cljs "0.8.239"]
8
                 [cljsjs/react-bootstrap "0.31.0-0"]
9
                 [khroma "0.3.0"]
10
                 [prismatic/dommy "1.1.0"]
11
                 [re-frame "0.9.4" :exclusions [cljsjs/react]]]
12

Ricardo J. Mendez's avatar
Ricardo J. Mendez committed
13
  :source-paths ["src/ui" "src/common" "src/background" "src/content"]
14
  :test-paths ["test"]
15

16
  :plugins [[lein-cljsbuild "1.1.6"]
17
            [org.clojars.ricardojmendez/lein-chromebuild "0.3.2"]
18
            [lein-doo "0.1.7"]]
19

20

21 22
  :doo {:build "test"
        :alias {:default [:phantom]}}
Ricardo J. Mendez's avatar
Ricardo J. Mendez committed
23 24 25 26 27 28

  :cljsbuild {:builds
              {:background
               {:source-paths ["src/background" "src/common"]
                :compiler     {:output-to     "target/unpacked/background.js"
                               :output-dir    "target/js/background"
29
                               :main          "relevance.background"
Ricardo J. Mendez's avatar
Ricardo J. Mendez committed
30 31 32 33 34 35
                               :optimizations :whitespace
                               :pretty-print  true}}
               :content
               {:source-paths ["src/content" "src/common"]
                :compiler     {:output-to     "target/unpacked/content.js"
                               :output-dir    "target/js/content"
36
                               :main          "relevance.startpage"
Ricardo J. Mendez's avatar
Ricardo J. Mendez committed
37 38 39 40 41 42
                               :optimizations :whitespace
                               :pretty-print  true}}
               :ui
               {:source-paths ["src/ui" "src/common"]
                :compiler     {:output-to     "target/unpacked/ui.js"
                               :output-dir    "target/js/ui"
43
                               :main          "relevance.display"
Ricardo J. Mendez's avatar
Ricardo J. Mendez committed
44
                               :optimizations :whitespace
45 46 47
                               :pretty-print  true}}}}


Ricardo J. Mendez's avatar
Ricardo J. Mendez committed
48 49 50 51 52 53
  :chromebuild {:resource-paths   ["resources/js"
                                   "resources/dashboard"
                                   "resources/images"
                                   "resources/css"]
                :preserve-folders true
                :target-path      "target/unpacked"}
Ricardo J. Mendez's avatar
Ricardo J. Mendez committed
54 55 56 57 58 59 60 61 62

  :profiles {:release
             {:cljsbuild
              {:builds
               {:background {:compiler {:optimizations :advanced
                                        :pretty-print  false}}
                :content    {:compiler {:optimizations :advanced
                                        :pretty-print  false}}
                :ui         {:compiler {:optimizations :advanced
63 64
                                        :pretty-print  false}}}}}
             :test
65
             {:dependencies [[lein-doo "0.1.7"]]
66
              :cljsbuild
Ricardo J. Mendez's avatar
Ricardo J. Mendez committed
67 68 69 70 71 72 73
                            {:builds
                             {:test
                              {:source-paths ["test" "src/common"]
                               :compiler     {:output-to     "target/js/test/relevance-tests.js"
                                              :output-dir    "target/js/test"
                                              :main          relevance.test.runner
                                              :optimizations :none
74
                                              :pretty-print  :true}}}}}})