Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Last active March 8, 2017 20:47
Show Gist options
  • Save jdkealy/1eea2d3f04122435487844c4c68f7c58 to your computer and use it in GitHub Desktop.
Save jdkealy/1eea2d3f04122435487844c4c68f7c58 to your computer and use it in GitHub Desktop.
:cljsbuild {:builds {:app {:source-paths ["src/cljs" "src/cljc"]
:compiler {:output-to "target/cljsbuild/public/js/app.js"
:externs ["resources/public/js.js"
"resources/externs/pica.ext.js"
"resources/externs/moment.ext.js"
"resources/externs/jquery.ext.js"
"resources/externs/jquery-ui.ext.js"
"resources/externs/materialize.ext.js"
"resources/externs/mdl.ext.js"
"resources/externs/lodash.ext.js"
"resources/externs/jszip.ext.js"
"resources/externs/filesaver.ext.js"
"resources/externs/exif.ext.js"
"resources/externs/stripe.ext.js"]
:output-dir "target/cljsbuild/public/js/out"
:asset-path "/js/out"
:optimizations :none
:recompile-dependents false
:pretty-print true}}}}
and put it here too
:profiles {:dev {:repl-options {:init-ns im.repl
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
:dependencies [[ring/ring-mock "0.3.0"]
[ring/ring-devel "1.4.0"]
[prone "1.0.2"]
[lein-figwheel "0.5.9"
:exclusions [org.clojure/core.memoize
ring/ring-core
org.clojure/clojure
org.ow2.asm/asm-all
org.clojure/data.priority-map
org.clojure/tools.reader
org.clojure/clojurescript
org.clojure/core.async
org.clojure/tools.analyzer.jvm]]
[figwheel-sidecar "0.5.8"]
[org.clojure/tools.nrepl "0.2.12"]
[com.cemerick/piggieback "0.2.1"]
[pjstadig/humane-test-output "0.7.1"]]
:source-paths ["env/dev/clj" "src/cljs"]
:plugins [[com.jakemccrary/lein-test-refresh "0.15.0" :changes-only true]
[lein-garden "0.3.0"]
[lein-figwheel "0.5.8"
:exclusions [org.clojure/core.memoize
ring/ring-core
org.clojure/clojure
org.ow2.asm/asm-all
org.clojure/data.priority-map
org.clojure/tools.reader
org.clojure/clojurescript
org.clojure/core.async
org.clojure/tools.analyzer.jvm]]]
:test-selectors {:active :active
:debug :debug}
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]
:env {:dev true}
:cljsbuild {:builds {:app {:source-paths ["env/dev/cljs"]
:compiler {:main "im.dev"
:recompile-dependents false
:source-map true}}}}
:garden {:builds [{:source-paths ["src/styles"]
:stylesheet im.style/screen
:compiler {:output-to "resources/public/css/screen.css"
:pretty-print? false}}]}}
:uberjar {:hooks [minify-assets.plugin/hooks]
:source-paths ["env/prod/clj"]
:prep-tasks ["compile" ["garden" "once"] ["cljsbuild" "once"]]
:env {:production true}
:aot :all
:omit-source true
:cljsbuild {:jar true
:builds {:app
{:source-paths ["env/prod/cljs"]
:compiler
{:optimizations :advanced}}}}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment