Guest User

Untitled

a guest
Oct 27th, 2013
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defproject modern-cljs "0.1.0-SNAPSHOT"
  2.   :description "FIXME: write description"
  3.   :url "http://example.com/FIXME"
  4.   :license {:name "Eclipse Public License"
  5.             :url "http://www.eclipse.org/legal/epl-v10.html"}
  6.  
  7.   :dependencies [[org.clojure/clojure "1.5.1"]
  8.                  [compojure "1.1.5"]
  9.                  [domina "1.0.2-SNAPSHOT"]
  10.                  [hiccups "0.2.0"]
  11.                  [org.clojure/core.async "0.1.242.0-44b1e3-alpha"]]
  12.  
  13.   :source-paths ["src/clj"]
  14.   :plugins [[lein-cljsbuild "0.3.2"]
  15.             ;; ring plugin
  16.             [lein-ring "0.8.5"]]
  17.  
  18.   ;; ring tasks configuration
  19.   :ring {:handler modern-cljs.core/handler}
  20.  
  21.   ;; cljsbuild options configuration
  22.   :cljsbuild {:builds
  23.                {:dev
  24.                {;; clojurescript source code path
  25.                 :source-paths ["src/brepl" "src/cljs"] ;;; added "src/brepl"
  26.  
  27.                 ;; Google Closure Compiler options
  28.                 :compiler {;; the name of emitted JS script file
  29.                            :output-to "resources/public/js/modern.js"
  30.  
  31.                            ;; minimum optimization
  32.                            :optimizations :whitespace
  33.                            ;; prettyfying emitted JS
  34.                            :pretty-print true}}
  35.                :pre-prod
  36.                {;; same path as above
  37.                 :source-paths ["src/brepl" "src/cljs"] ;;; added "src/brepl"
  38.  
  39.                 :compiler {;; different JS output name
  40.                            :output-to "resources/public/js/modern.js"
  41.  
  42.                            ;; simple optimization
  43.                            :optimizations :simple
  44.  
  45.                            ;; no need prettyfication
  46.                            :pretty-print false}}
  47.                :prod
  48.                {;; same path as above
  49.                 :source-paths ["src/cljs"]
  50.  
  51.                 :compiler {;; different JS output name
  52.                            :output-to "resources/public/js/modern.js"
  53.  
  54.                            ;; advanced optimization
  55.                            :optimizations :advanced
  56.  
  57.                            ;; no need prettyfication
  58.                            :pretty-print false}}}})
Advertisement
Add Comment
Please, Sign In to add comment