Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defproject modern-cljs "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.5.1"]
- [compojure "1.1.5"]
- [domina "1.0.2-SNAPSHOT"]
- [hiccups "0.2.0"]
- [org.clojure/core.async "0.1.242.0-44b1e3-alpha"]]
- :source-paths ["src/clj"]
- :plugins [[lein-cljsbuild "0.3.2"]
- ;; ring plugin
- [lein-ring "0.8.5"]]
- ;; ring tasks configuration
- :ring {:handler modern-cljs.core/handler}
- ;; cljsbuild options configuration
- :cljsbuild {:builds
- {:dev
- {;; clojurescript source code path
- :source-paths ["src/brepl" "src/cljs"] ;;; added "src/brepl"
- ;; Google Closure Compiler options
- :compiler {;; the name of emitted JS script file
- :output-to "resources/public/js/modern.js"
- ;; minimum optimization
- :optimizations :whitespace
- ;; prettyfying emitted JS
- :pretty-print true}}
- :pre-prod
- {;; same path as above
- :source-paths ["src/brepl" "src/cljs"] ;;; added "src/brepl"
- :compiler {;; different JS output name
- :output-to "resources/public/js/modern.js"
- ;; simple optimization
- :optimizations :simple
- ;; no need prettyfication
- :pretty-print false}}
- :prod
- {;; same path as above
- :source-paths ["src/cljs"]
- :compiler {;; different JS output name
- :output-to "resources/public/js/modern.js"
- ;; advanced optimization
- :optimizations :advanced
- ;; no need prettyfication
- :pretty-print false}}}})
Advertisement
Add Comment
Please, Sign In to add comment