Skip to content

Instantly share code, notes, and snippets.

@yogthos
Created June 12, 2016 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogthos/3d011bc04c7ddeb8a13e34271f3d6881 to your computer and use it in GitHub Desktop.
Save yogthos/3d011bc04c7ddeb8a13e34271f3d6881 to your computer and use it in GitHub Desktop.
(defproject test-app "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.8.0"]
[ring-server "0.4.0"]
[reagent "0.6.0-rc"]
[reagent-forms "0.5.24"]
[reagent-utils "0.1.8"]
[ring "1.5.0"]
[ring/ring-defaults "0.2.1"]
[compojure "1.5.0"]
[hiccup "1.0.5"]
[yogthos/config "0.8"]
[org.clojure/clojurescript "1.9.36"
:scope "provided"]
[secretary "1.2.3"]
[venantius/accountant "0.1.7"
:exclusions [org.clojure/tools.reader]]]
:plugins [[lein-environ "1.0.2"]
[lein-cljsbuild "1.1.1"]
[lein-asset-minifier "0.2.7"
:exclusions [org.clojure/clojure]]]
:ring {:handler test-app.handler/app
:uberwar-name "test-app.war"}
:min-lein-version "2.5.0"
:uberjar-name "test-app.jar"
:main test-app.server
:clean-targets ^{:protect false}
[:target-path
[:cljsbuild :builds :app :compiler :output-dir]
[:cljsbuild :builds :app :compiler :output-to]]
:source-paths ["src/clj" "src/cljc"]
:resource-paths ["resources" "target/cljsbuild"]
:minify-assets
{:assets
{"resources/public/css/site.min.css" "resources/public/css/site.css"}}
:cljsbuild
{:builds {:min
{:source-paths ["src/cljs" "src/cljc" "env/prod/cljs"]
:compiler
{:output-to "target/cljsbuild/public/js/app.js"
:output-dir "target/uberjar"
:optimizations :advanced
:pretty-print false}}
:app
{:source-paths ["src/cljs" "src/cljc" "env/dev/cljs"]
:compiler
{:main "test-app.dev"
:asset-path "/js/out"
:output-to "target/cljsbuild/public/js/app.js"
:output-dir "target/cljsbuild/public/js/out"
:source-map true
:optimizations :none
:pretty-print true}}
:devcards
{:source-paths ["src/cljs" "src/cljc" "env/dev/cljs"]
:figwheel {:devcards true}
:compiler {:main "test-app.cards"
:asset-path "js/devcards_out"
:output-to "target/cljsbuild/public/js/app_devcards.js"
:output-dir "target/cljsbuild/public/js/devcards_out"
:source-map-timestamp true
:optimizations :none
:pretty-print true}}}}
:figwheel
{:http-server-root "public"
:server-port 3449
:nrepl-port 7002
:nrepl-middleware ["cemerick.piggieback/wrap-cljs-repl"]
:css-dirs ["resources/public/css"]
:ring-handler test-app.handler/app}
:profiles {:dev {:repl-options {:init-ns test-app.repl}
:dependencies [[ring/ring-mock "0.3.0"]
[ring/ring-devel "1.5.0"]
[prone "1.1.1"]
[lein-figwheel "0.5.4"
: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]]
[org.clojure/tools.nrepl "0.2.12"]
[com.cemerick/piggieback "0.2.2-SNAPSHOT"]
[devcards "0.2.1-7"
:exclusions [org.clojure/tools.reader]]
[pjstadig/humane-test-output "0.8.0"]
]
:source-paths ["env/dev/clj"]
:plugins [[lein-figwheel "0.5.4"
: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]]
]
:injections [(require 'pjstadig.humane-test-output)
(pjstadig.humane-test-output/activate!)]
:env {:dev true}}
:uberjar {:hooks [minify-assets.plugin/hooks]
:source-paths ["env/prod/clj"]
:prep-tasks ["compile" ["cljsbuild" "once" "min"]]
:env {:production true}
:aot :all
:omit-source true}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment