Permalink
Browse files

Update project.clj template

  • Loading branch information...
1 parent 4d8fadb commit aa6c2cc28553e635e68b3154ac101f8549d3cadd @ptaoussanis committed Jul 12, 2014
Showing with 37 additions and 23 deletions.
  1. +37 −23 project.clj
View
@@ -9,15 +9,20 @@
:min-lein-version "2.3.3"
:global-vars {*warn-on-reflection* true
*assert* true}
+
:dependencies
[[org.clojure/clojure "1.4.0"]
[com.taoensso/encore "1.5.0"]
[com.taoensso/timbre "3.1.6"]
[markdown-clj "0.9.43"]]
- :test-paths ["test" "src"]
+ :plugins
+ [[com.keminglabs/cljx "0.4.0"]
+ [lein-cljsbuild "1.0.3"]]
+
:profiles
{;; :default [:base :system :user :provided :dev]
+ :server-jvm {:jvm-opts ^:replace ["-server"]}
:1.5 {:dependencies [[org.clojure/clojure "1.5.1"]]}
:1.6 {:dependencies [[org.clojure/clojure "1.6.0"]]}
:test {:dependencies [[expectations "1.4.56"]
@@ -26,43 +31,52 @@
:exclusions [org.clojure/tools.reader]]]
:plugins [[lein-expectations "0.0.8"]
[lein-autoexpect "1.2.2"]]}
- :dev* [:dev {:jvm-opts ^:replace ["-server"]
- :hooks [cljx.hooks leiningen.cljsbuild]}]
:dev
[:1.6 :test
{:dependencies
[[org.clojure/clojurescript "0.0-2173"]]
+
:plugins
- [[lein-ancient "0.5.4"]
- [com.keminglabs/cljx "0.3.2"] ; Must precede Austin!
+ [[lein-pprint "1.1.1"]
+ [lein-ancient "0.5.5"]
[com.cemerick/austin "0.1.4"]
- [lein-cljsbuild "1.0.2"]
- [com.cemerick/clojurescript.test "0.2.2"]
- [codox "0.6.7"]]
+ [lein-expectations "0.0.8"]
+ [lein-autoexpect "1.2.2"]
+ [com.cemerick/clojurescript.test "0.3.1"]
+ [codox "0.8.10"]]}]}
+
+ :cljx
+ {:builds
+ [{:source-paths ["src" "test"] :rules :clj :output-path "target/classes"}
+ {:source-paths ["src" "test"] :rules :cljs :output-path "target/classes"}]}
- :cljx
- {:builds
- [{:source-paths ["src" "test"] :rules :clj :output-path "target/classes"}
- {:source-paths ["src" "test"] :rules :cljs :output-path "target/classes"}]}
+ :cljsbuild
+ {:test-commands {"node" ["node" :node-runner "target/main.js"]
+ "phantom" ["phantomjs" :runner "target/main.js"]}
+ :builds ; Compiled in parallel
+ [{:id :main
+ :source-paths ["src" "test" "target/classes"]
+ :compiler {:output-to "target/main.js"
+ :optimizations :advanced
+ :pretty-print false}}]}
- :cljsbuild
- {:test-commands {"node" ["node" :node-runner "target/main.js"]
- "phantom" ["phantomjs" :runner "target/main.js"]}
- :builds ; Compiled in parallel
- [{:id :main
- :source-paths ["src" "test" "target/classes"]
- :compiler {:output-to "target/main.js"
- :optimizations :advanced
- :pretty-print false}}]}}]}
+ :test-paths ["test" "src"]
+ ;;:hooks [cljx.hooks leiningen.cljsbuild]
+ :prep-tasks [["cljx" "once"] "javac" "compile"]
+ :codox {:language :clojure ; [:clojure :clojurescript] ; No support?
+ :sources ["target/classes"]
+ :src-linenum-anchor-prefix "L"
+ :src-dir-uri "http://github.com/ptaoussanis/encore/blob/master/src/"
+ :src-uri-mapping {#"target/classes"
+ #(.replaceFirst (str %) "(.cljs$|.clj$)" ".cljx")}}
- :codox {:sources ["target/classes"]} ; For use with cljx
:aliases
{"test-all" ["with-profile" "default:+1.5:+1.6" "expectations"]
;; "test-all" ["with-profile" "default:+1.6" "expectations"]
"test-auto" ["with-profile" "+test" "autoexpect"]
"build-once" ["do" "cljx" "once," "cljsbuild" "once"]
"deploy-lib" ["do" "build-once," "deploy" "clojars," "install"]
- "start-dev" ["with-profile" "+dev*" "repl" ":headless"]}
+ "start-dev" ["with-profile" "+server-jvm" "repl" ":headless"]}
:repositories
{"sonatype"

0 comments on commit aa6c2cc

Please sign in to comment.