Clean up project.clj
* remove unneeded dependencies * simplify structure * remove sassc related things * add config less compiler * add devcards config
This commit is contained in:
parent
4d0077d17f
commit
5fb66d551e
54
project.clj
54
project.clj
|
@ -16,15 +16,10 @@
|
||||||
[ring-middleware-format "0.7.2"]
|
[ring-middleware-format "0.7.2"]
|
||||||
[metosin/ring-http-response "0.8.1"]
|
[metosin/ring-http-response "0.8.1"]
|
||||||
[bouncer "1.0.0"]
|
[bouncer "1.0.0"]
|
||||||
[org.webjars/bootstrap "4.0.0-alpha.6"]
|
|
||||||
[org.webjars/font-awesome "4.7.0"]
|
|
||||||
[org.webjars/bootstrap-social "5.0.0"]
|
|
||||||
[org.webjars.bower/tether "1.4.0"]
|
|
||||||
[org.clojure/tools.logging "0.3.1"]
|
[org.clojure/tools.logging "0.3.1"]
|
||||||
[compojure "1.5.2"]
|
[compojure "1.5.2"]
|
||||||
[http-kit "2.2.0"]
|
[http-kit "2.2.0"]
|
||||||
[ring/ring-json "0.4.0"]
|
[ring/ring-json "0.4.0"]
|
||||||
[ring-webjars "0.1.1"]
|
|
||||||
[ring/ring-defaults "0.2.2"]
|
[ring/ring-defaults "0.2.2"]
|
||||||
[ring/ring-codec "1.0.1"]
|
[ring/ring-codec "1.0.1"]
|
||||||
[mount "0.1.11"]
|
[mount "0.1.11"]
|
||||||
|
@ -36,13 +31,14 @@
|
||||||
[luminus-migrations "0.2.9"]
|
[luminus-migrations "0.2.9"]
|
||||||
[conman "0.6.3"]
|
[conman "0.6.3"]
|
||||||
[org.postgresql/postgresql "9.4.1212"]
|
[org.postgresql/postgresql "9.4.1212"]
|
||||||
[org.webjars/webjars-locator-jboss-vfs "0.1.0"]
|
|
||||||
[luminus-immutant "0.2.3"]
|
[luminus-immutant "0.2.3"]
|
||||||
[clj.qrgen "0.4.0"]
|
[clj.qrgen "0.4.0"]
|
||||||
[digest "1.4.5"]
|
[digest "1.4.5"]
|
||||||
[tentacles "0.5.1"]
|
[tentacles "0.5.1"]
|
||||||
[re-frisk "0.3.2"]
|
[re-frisk "0.3.2"]
|
||||||
[bk/ring-gzip "0.2.1"]]
|
[bk/ring-gzip "0.2.1"]
|
||||||
|
;;
|
||||||
|
]
|
||||||
|
|
||||||
:min-lein-version "2.0.0"
|
:min-lein-version "2.0.0"
|
||||||
:source-paths ["src/clj" "src/cljc"]
|
:source-paths ["src/clj" "src/cljc"]
|
||||||
|
@ -56,22 +52,16 @@
|
||||||
:plugins [[lein-cprop "1.0.1"]
|
:plugins [[lein-cprop "1.0.1"]
|
||||||
[migratus-lein "0.4.1"]
|
[migratus-lein "0.4.1"]
|
||||||
[lein-cljsbuild "1.1.3"]
|
[lein-cljsbuild "1.1.3"]
|
||||||
[lein-sassc "0.10.4"]
|
[lein-auto "0.1.2"]
|
||||||
[lein-npm "0.6.2"]
|
[lein-less "1.7.5"]]
|
||||||
[lein-auto "0.1.2"]]
|
|
||||||
|
|
||||||
:user {:plugins [[cider/cider-nrepl "0.15.0-SNAPSHOT"]]}
|
:user {:plugins [[cider/cider-nrepl "0.15.0-SNAPSHOT"]]}
|
||||||
|
|
||||||
|
:less {:source-paths ["src/less"]
|
||||||
|
:target-path "resources/public/css"}
|
||||||
|
|
||||||
:ring {:destroy commiteth.scheduler/stop-scheduler}
|
:ring {:destroy commiteth.scheduler/stop-scheduler}
|
||||||
|
|
||||||
:sassc
|
|
||||||
[{:src "resources/scss/main.scss"
|
|
||||||
:output-to "resources/public/css/main.css"
|
|
||||||
:style "nested"
|
|
||||||
:import-path "resources/scss"}]
|
|
||||||
|
|
||||||
:auto
|
|
||||||
{"sassc" {:file-pattern #"\.(scss|sass)$" :paths ["resources/scss"]}}
|
|
||||||
|
|
||||||
:clean-targets ^{:protect false}
|
:clean-targets ^{:protect false}
|
||||||
[:target-path [:cljsbuild :builds :app :compiler :output-dir] [:cljsbuild :builds :app :compiler :output-to]]
|
[:target-path [:cljsbuild :builds :app :compiler :output-dir] [:cljsbuild :builds :app :compiler :output-to]]
|
||||||
|
@ -103,10 +93,8 @@
|
||||||
:source-paths ["env/prod/clj"]
|
:source-paths ["env/prod/clj"]
|
||||||
:resource-paths ["env/prod/resources"]}
|
:resource-paths ["env/prod/resources"]}
|
||||||
|
|
||||||
:dev [:project/dev :profiles/dev]
|
|
||||||
:test [:project/test :profiles/test]
|
|
||||||
|
|
||||||
:project/dev {:dependencies [[prone "1.1.4"]
|
:dev {:dependencies [[prone "1.1.4"]
|
||||||
[ring/ring-mock "0.3.0"]
|
[ring/ring-mock "0.3.0"]
|
||||||
[ring/ring-devel "1.5.1"]
|
[ring/ring-devel "1.5.1"]
|
||||||
[pjstadig/humane-test-output "0.8.1"]
|
[pjstadig/humane-test-output "0.8.1"]
|
||||||
|
@ -120,8 +108,8 @@
|
||||||
[lein-figwheel "0.5.9"]]
|
[lein-figwheel "0.5.9"]]
|
||||||
:cljsbuild
|
:cljsbuild
|
||||||
{:builds
|
{:builds
|
||||||
{:app
|
[{:id "app"
|
||||||
{:source-paths ["src/cljs" "src/cljc" "env/dev/cljs"]
|
:source-paths ["src/cljs" "src/cljc" "env/dev/cljs"]
|
||||||
:compiler
|
:compiler
|
||||||
{:main "commiteth.app"
|
{:main "commiteth.app"
|
||||||
:asset-path "/js/out"
|
:asset-path "/js/out"
|
||||||
|
@ -129,9 +117,7 @@
|
||||||
:output-dir "target/cljsbuild/public/js/out"
|
:output-dir "target/cljsbuild/public/js/out"
|
||||||
:source-map true
|
:source-map true
|
||||||
:optimizations :none
|
:optimizations :none
|
||||||
:pretty-print true}}}}
|
:pretty-print true}}]}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
:doo {:build "test"}
|
:doo {:build "test"}
|
||||||
:source-paths ["env/dev/clj" "test/clj"]
|
:source-paths ["env/dev/clj" "test/clj"]
|
||||||
|
@ -139,7 +125,8 @@
|
||||||
:repl-options {:init-ns user}
|
:repl-options {:init-ns user}
|
||||||
:injections [(require 'pjstadig.humane-test-output)
|
:injections [(require 'pjstadig.humane-test-output)
|
||||||
(pjstadig.humane-test-output/activate!)]}
|
(pjstadig.humane-test-output/activate!)]}
|
||||||
:project/test {:resource-paths ["env/dev/resources" "env/test/resources"]
|
:test {:resource-paths ["env/dev/resources" "env/test/resources"]
|
||||||
|
:dependencies [[devcards "0.2.2"]]
|
||||||
:cljsbuild
|
:cljsbuild
|
||||||
{:builds
|
{:builds
|
||||||
{:test
|
{:test
|
||||||
|
@ -148,8 +135,11 @@
|
||||||
{:output-to "target/test.js"
|
{:output-to "target/test.js"
|
||||||
:main "commiteth.doo-runner"
|
:main "commiteth.doo-runner"
|
||||||
:optimizations :whitespace
|
:optimizations :whitespace
|
||||||
:pretty-print true}}}}
|
:pretty-print true}}
|
||||||
|
:devcards {:source-paths ["src/cljs" "src/cljc"]
|
||||||
}
|
:figwheel {:devcards true}
|
||||||
:profiles/dev {}
|
:compiler {:main commiteth.cards
|
||||||
:profiles/test {}})
|
:asset-path "js/compiled/out"
|
||||||
|
:output-to "resources/public/js/compiled/devcards.js"
|
||||||
|
:output-dir "resources/public/js/compiled/out"
|
||||||
|
:source-map-timestamp true}}}}}})
|
||||||
|
|
Loading…
Reference in New Issue