mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 15:28:09 +00:00
- standardised test namespaces: renamed to use -test suffix and moved to eliminate redundant /test folder - added cljs-test based tests via browser/html. These mimic original karma tests. NOTE: previous lein aliases `once` and `auto` have been replaced by `test-once` , `test-auto` & `karma-once` - update karma.conf & circle.yml - updated CHANGES.md & CONTRIBUTING.md
56 lines
2.8 KiB
Clojure
56 lines
2.8 KiB
Clojure
(defproject re-frame "0.8.0-SNAPSHOT"
|
|
:description "A Clojurescript MVC-like Framework For Writing SPAs Using Reagent."
|
|
:url "https://github.com/Day8/re-frame.git"
|
|
:license {:name "MIT"}
|
|
:dependencies [[org.clojure/clojure "1.8.0"]
|
|
[org.clojure/clojurescript "1.9.89"]
|
|
[reagent "0.6.0-rc"]]
|
|
|
|
:profiles {:debug {:debug true}
|
|
:dev {:dependencies [[karma-reporter "0.3.0"]
|
|
[binaryage/devtools "0.7.2"]]
|
|
:plugins [[lein-cljsbuild "1.1.3"]
|
|
[lein-npm "0.6.2"]
|
|
[lein-figwheel "0.5.4-7"]
|
|
[lein-shell "0.5.0"]]}}
|
|
|
|
:clean-targets [:target-path "run/compiled"]
|
|
|
|
:resource-paths ["run/resources"]
|
|
:jvm-opts ["-Xmx1g" "-XX:+UseConcMarkSweepGC"]
|
|
:source-paths ["src"]
|
|
:test-paths ["test"]
|
|
|
|
:shell {:commands {"open" {:windows ["cmd" "/c" "start"]
|
|
:macosx "open"
|
|
:linux "xdg-open"}}}
|
|
|
|
:deploy-repositories [["releases" :clojars {:sign-releases false}]
|
|
["snapshots" :clojars {:sign-releases false}]]
|
|
|
|
:npm {:dependencies [[karma "1.0.0"]
|
|
[karma-cljs-test "0.1.0"]
|
|
[karma-chrome-launcher "0.2.0"]
|
|
[karma-junit-reporter "0.3.8"]]}
|
|
|
|
:cljsbuild {:builds [{:id "test"
|
|
:source-paths ["test" "src"]
|
|
:compiler {:output-to "run/compiled/browser/test.js"
|
|
:source-map true
|
|
:output-dir "run/compiled/browser/test"
|
|
:optimizations :none
|
|
:source-map-timestamp true
|
|
:pretty-print true}}
|
|
{:id "karma"
|
|
:source-paths ["test" "src"]
|
|
:compiler {:output-to "run/compiled/karma/test.js"
|
|
:source-map "run/compiled/karma/test.js.map"
|
|
:output-dir "run/compiled/karma/test"
|
|
:optimizations :whitespace
|
|
:main "re_frame.test_runner"
|
|
:pretty-print true}}]}
|
|
|
|
:aliases {"test-once" ["do" "clean," "cljsbuild" "once" "test," "shell" "open" "test/test.html"]
|
|
"test-auto" ["do" "clean," "cljsbuild" "auto" "test,"]
|
|
"karma-once" ["do" "clean," "cljsbuild" "once" "karma,"]})
|