Last active
August 29, 2015 14:17
-
-
Save hura/c08ae46f91d65f287fd8 to your computer and use it in GitHub Desktop.
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 todo "0.1.0-SNAPSHOT" | |
:description "My Todo MVC example" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:source-paths ["src/clj" "src/cljs"] | |
:dependencies [;; CORE | |
[org.clojure/clojure "1.6.0"] | |
[org.clojure/tools.nrepl "0.2.10"] | |
[org.clojure/core.async "0.1.346.0-17112a-alpha"] | |
[org.clojure/clojurescript "0.0-3153" :scope "provided"] | |
;; Clojure | |
[ring "1.3.2"] | |
[ring/ring-defaults "0.1.4"] | |
[prone "0.8.1"];;magnars/prone: Pretty ring exceptions | |
[compojure "1.3.2"] | |
[selmer "0.8.2"];;Django inspirect templates | |
[environ "1.0.0"];;Environment variables | |
;; CLJS | |
[secretary "1.2.2"];;Routing | |
[binaryage/devtools "0.1.1"];;Pretty print console | |
[cljsjs/react "0.13.1-0"] | |
[reagent "0.5.0"] | |
[com.andrewmcveigh/cljs-time "0.3.3"] ;; For Klang | |
[reagent-forms "0.4.6"] | |
[reagent-utils "0.1.4"];;cookies,crypt,validation,session | |
[cljsjs/highlight "8.4-0"] ;; for logging | |
];; forgive me | |
:plugins [[lein-cljsbuild "1.0.4"] | |
[lein-environ "1.0.0"] | |
[lein-ring "0.9.1"] | |
[lein-asset-minifier "0.2.2"]] | |
;; Global exclusions are applied across the board, as an alternative | |
;; to duplication for multiple dependencies with the same excluded libraries. | |
:exclusions [org.clojure/tools.nrepl] | |
:ring {:handler todo.handler/app | |
:uberwar-name "todo.war"} | |
:min-lein-version "2.5.0" | |
:uberjar-name "todo.jar" | |
:main todo.server | |
;; Some speedup | |
;; https://github.com/technomancy/leiningen/wiki/Faster | |
:jvm-opts ["-Xverify:none"] | |
:clean-targets ^{:protect false} ["resources/public/js"] | |
:minify-assets | |
{:assets | |
{"resources/public/css/site.min.css" | |
"resources/public/css/site.css"}} | |
:cljsbuild | |
{:builds | |
{:app {:source-paths ["src/cljs"] | |
:compiler {:output-to "resources/public/js/app.js" | |
:output-dir "resources/public/js/out" | |
:asset-path "js/out" | |
:optimizations :none | |
:pretty-print true}}}} | |
:profiles | |
{:dev | |
{:repl-options {:init-ns todo.dev | |
:nrepl-middleware | |
[ | |
cider.nrepl.middleware.apropos/wrap-apropos | |
cider.nrepl.middleware.classpath/wrap-classpath | |
;; Wrapcomplete will also start piggieback! | |
;; So we need to depend on it above but not include it | |
cider.nrepl.middleware.complete/wrap-complete | |
cider.nrepl.middleware.format/wrap-format | |
cider.nrepl.middleware.info/wrap-info | |
cider.nrepl.middleware.inspect/wrap-inspect | |
cider.nrepl.middleware.macroexpand/wrap-macroexpand | |
cider.nrepl.middleware.ns/wrap-ns | |
cider.nrepl.middleware.pprint/wrap-pprint | |
cider.nrepl.middleware.resource/wrap-resource | |
cider.nrepl.middleware.stacktrace/wrap-stacktrace | |
cider.nrepl.middleware.test/wrap-test | |
cider.nrepl.middleware.trace/wrap-trace | |
cider.nrepl.middleware.undef/wrap-undef | |
;;cemerick.piggieback/wrap-cljs-repl | |
]} | |
:dependencies [[ring-mock "0.1.5"] | |
[ring/ring-devel "1.3.2"] | |
[cider/cider-nrepl "0.9.0-SNAPSHOT"] | |
[leiningen "2.5.1"] | |
[figwheel "0.2.5"] | |
;;[figwheel-sidecar "0.2.5"] | |
;;[cljs-tooling "0.1.5-SNAPSHOT"] ;; Cljs autocomplete | |
[weasel "0.6.0"] | |
[com.cemerick/piggieback "0.1.6-SNAPSHOT"] | |
[pjstadig/humane-test-output "0.7.0"]] | |
;; All the clojure containing files. Note we also need to add cljs since it | |
;; contains some debugging macros for cljs (but CLJS has macros only through | |
;; clojure) | |
:source-paths ["env/dev/clj" "env/dev/cljs"] | |
:plugins [[lein-figwheel "0.2.5"]] | |
:injections [(require 'pjstadig.humane-test-output) | |
(pjstadig.humane-test-output/activate!)] | |
:figwheel {:http-server-root "public" | |
;;:nrepl-port 7888 ;; Not working | |
;;:repl false | |
:server-port 3449 | |
:css-dirs ["resources/public/css"] | |
:ring-handler todo.handler/app} | |
:env {:dev? true} | |
:cljsbuild | |
{:builds | |
{:app | |
{:source-paths ["env/dev/cljs"] | |
:compiler {:main "todo.dev" | |
:source-map true}}}}} | |
:uberjar | |
{:hooks [leiningen.cljsbuild minify-assets.plugin/hooks] | |
:env {:production true} | |
:aot :all | |
:omit-source true | |
:cljsbuild | |
{:jar true | |
:builds {:app | |
{:source-paths ["env/prod/cljs"] | |
:compiler | |
{:optimizations :advanced | |
:pretty-print false}}}}}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment