-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
22 lines (22 loc) · 1.18 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
(defproject goog-define-bug "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.7.0"]
[org.clojure/clojurescript "1.7.122"]]
:source-paths ["src/cljs"]
:plugins [[lein-cljsbuild "1.0.6"]]
:hooks [leiningen.cljsbuild]
:min-lein-version "2.0.0"
:cljsbuild {:builds #=(eval (into []
(for [opt [:none :simple :whitespace :advanced]]
{:compiler
{:output-dir (str "resources/public/js/" (name opt))
:output-to (str "resources/public/js/" (name opt) ".js")
;; Withtout this line, :closure-defines don't work with :optimizations :none
:main 'goog-define-bug.core
:optimizations opt
:closure-defines {'goog-define-bug.core/opt-type (name opt)}}
:id (name opt)
:source-paths ["src"]})))})