Skip to content

Instantly share code, notes, and snippets.

@darioghilardi
Last active February 23, 2016 13:55
Show Gist options
  • Save darioghilardi/2e3416cb31e716a36e88 to your computer and use it in GitHub Desktop.
Save darioghilardi/2e3416cb31e716a36e88 to your computer and use it in GitHub Desktop.
clojure_001: Leiningen project map
(defproject project-name "0.1.0-SNAPSHOT"
:dependencies [...]
:min-lein-version "2.5.3"
:source-paths ["src/clj" "script"]
:plugins [[lein-cljsbuild "1.1.1"]
[lein-doo "0.1.6"]]
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"
"test/js"]
:cljsbuild {:builds [{:id "dev"
:source-paths ["src/cljs"]
:compiler {:main project-name.core
:output-to "resources/public/js/compiled/app.js"
:output-dir "resources/public/js/compiled/out"
:asset-path "js/compiled/out"
:source-map-timestamp true}
:source-map true}
{:id "test"
:source-paths ["src/cljs" "test/cljs"]
:compiler {:output-to "resources/public/js/compiled/test.js"
:main project-name.runner
:optimizations :none}}
{:id "min"
:source-paths ["src/cljs"]
:compiler {:main project-name.core
:output-to "resources/public/js/compiled/app.js"
:optimizations :advanced
:closure-defines {goog.DEBUG false}
:pretty-print false}}]}
:profiles {:dev {:dependencies [[com.cemerick/piggieback "0.2.1"]
[figwheel-sidecar "0.5.0-6"]
[reloaded.repl "0.2.1"]]
:surce-paths ["dev" "cljs_src"]}}
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment