Created
December 1, 2015 04:00
-
-
Save franksn/7bd25bb7b75018d83f6b to your computer and use it in GitHub Desktop.
project.clj for figwheel 0.5.0-2 and cider
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 omtut "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.7.0"] | |
[org.clojure/clojurescript "1.7.170"] | |
[org.clojure/core.async "0.2.374"] | |
[org.omcljs/om "1.0.0-alpha24"] | |
[com.cemerick/piggieback "0.2.1"] | |
] | |
:plugins [[lein-cljsbuild "1.1.1"] | |
] | |
:source-paths ["src"] | |
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"] | |
:cljsbuild {:builds | |
[{:id "dev" | |
:source-paths ["src"] | |
:figwheel {:on-jsload "omtut.core/on-js-reload"} | |
:compiler {:main omtut.core | |
:asset-path "js/compiled/out" | |
:output-to "resources/public/js/compiled/main.js" | |
:output-dir "resources/public/js/compiled/out" | |
:source-map-timestamp true}} | |
;; This next build is an compressed minified build for | |
;; production. You can build this with: | |
;; lein cljsbuild once min | |
{:id "min" | |
:source-paths ["src"] | |
:compiler {:output-to "resources/public/js/compiled/main.js" | |
:main omtut.core | |
:optimizations :advanced | |
:pretty-print false}}]} | |
:profiles {:dev {:dependencies [[org.clojure/tools.nrepl "0.2.12"] | |
[figwheel-sidecar "0.5.0-2"] | |
[com.cemerick/piggieback "0.2.1"]] | |
:plugins [[lein-cljsbuild "1.1.1"]] | |
:repl {:plugins [[cider/cider-nrepl "0.10.0-SNAPSHOT"] | |
[refactor-nrepl "2.0.0-SNAPSHOT"]]} | |
:repl-options {:init-ns omtut.core | |
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]} | |
:figwheel {:http-server-root "public" ;; default and assumes "resources" | |
:server-port 3449 ;; default | |
:server-ip "127.0.0.1" | |
:css-dirs ["resources/public/css"] ;; watch and update CSS | |
;; Start an nREPL server into the running figwheel process | |
:nrepl-port 7888 | |
} | |
} | |
} | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment