Created
December 18, 2012 08:13
-
-
Save yayitswei/4326069 to your computer and use it in GitHub Desktop.
cljsbuild compile options getting long. 3 compile targets, 2 environments for each. to run the compile: "lein cljsbuild once prod prod-edit prod-new" is there a more DRY way to do it?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject advent "0.1.0-SNAPSHOT" | |
:plugins [[lein-cljsbuild "0.2.9"] | |
[yayitswei/lein-deploy-app "0.1.0-SNAPSHOT"]] | |
:description "advent calendar for dawn" | |
:dependencies [[org.clojure/clojure "1.4.0"] | |
[jayq "0.2.3"] | |
[cc.qbits/fetch "0.1.0-alpha2"] | |
[com.cemerick/friend "0.1.2"] | |
[crate "0.2.1"] | |
[clj-time "0.4.4"] | |
[com.novemberain/monger "1.3.4"] | |
[noir "1.3.0-beta10"]] | |
:min-lein-version "2.0.0" | |
:cljsbuild {:builds | |
{:dev | |
{:source-path "src/cljs" | |
:compiler | |
{:output-to "resources/public/js/bin-debug/main.js" | |
:output-dir "resources/public/js/bin-debug" | |
:optimizations :whitespace | |
:pretty-print true}} | |
:prod | |
{:source-path "src/cljs" | |
:compiler | |
{:output-to "resources/public/js/bin/main.js" | |
:output-dir "resources/public/js/bin" | |
:optimizations :simple}} | |
:dev-edit | |
{:source-path "src/cljs-edit" | |
:compiler | |
{:output-to "resources/public/js/bin-debug/main-edit.js" | |
:output-dir "resources/public/js/bin-debug-edit" | |
:optimizations :whitespace | |
:pretty-print true}} | |
:prod-edit | |
{:source-path "src/cljs-edit" | |
:compiler | |
{:output-to "resources/public/js/bin/main-edit.js" | |
:output-dir "resources/public/js/bin-edit" | |
:optimizations :simple}} | |
:dev-new | |
{:source-path "src/cljs-new" | |
:compiler | |
{:output-to "resources/public/js/bin-debug/main-new.js" | |
:output-dir "resources/public/js/bin-debug-new" | |
:optimizations :whitespace | |
:pretty-print true}} | |
:prod-new | |
{:source-path "src/cljs-new" | |
:compiler | |
{:output-to "resources/public/js/bin/main-new.js" | |
:output-dir "resources/public/js/bin-new" | |
:optimizations :simple}} | |
} | |
} | |
:s3 {:bucket "dawnsadventcalendar" | |
:root "resources/public/" | |
:files ["js/bin/main.js" | |
"js/bin/main-edit.js" | |
"js/bin/main-new.js" | |
"js/bootstrap-modalmanager.js" | |
"js/bootstrap-modal.js"]} | |
:main advent.server) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment