-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.clj
26 lines (26 loc) · 1.92 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
(defproject org.harto/huon "1.0.0-SNAPSHOT"
:description "ClojureScript wrapper around console logger"
:url "https://github.com/harto/huon"
:license {:name "MIT"
:url "https://github.com/harto/huon/blob/master/LICENSE"}
:dependencies [[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.10.339"]]
:profiles {:dev {:plugins [[lein-cljsbuild "1.1.7"
:exclusions [[org.clojure/clojure]]]]
:cljsbuild {:builds ~(into {}
(for [target [:browser :nodejs]
optimizations [:none
:whitespace
:simple
:advanced]
;; whitespace optimizations not supported for nodejs
:when (not (and (= target :nodejs)
(= optimizations :whitespace)))
:let [id (format "test-%s-%s" (name target) (name optimizations))]]
[id {:source-paths ["src" "test"]
:compiler {:main "huon.tests"
:target (when-not (= target :browser) target)
:optimizations optimizations
:output-to (format "target/%s.js" id)
:output-dir (format "target/%s" id)
:asset-path id}}]))}}})