add cljfmt to project;

add pre-push hook;
add cljfmt to Jenkinsfile;
This commit is contained in:
Roman Volosovskyi 2018-05-08 14:21:20 +03:00
parent 3af05bcb6c
commit 8f1c9521ba
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 10 additions and 1 deletions

4
Jenkinsfile vendored
View File

@ -40,6 +40,10 @@ node ('macos1') {
sh 'cd ios && pod install && cd ..' sh 'cd ios && pod install && cd ..'
} }
stage('Code style checks') {
sh 'lein cljfmt check'
}
stage('Tests') { stage('Tests') {
sh 'lein test-cljs' sh 'lein test-cljs'
} }

View File

@ -13,7 +13,12 @@
[com.cognitect/transit-cljs "0.8.248"] [com.cognitect/transit-cljs "0.8.248"]
[day8.re-frame/async-flow-fx "0.0.10"]] [day8.re-frame/async-flow-fx "0.0.10"]]
:plugins [[lein-cljsbuild "1.1.7"] :plugins [[lein-cljsbuild "1.1.7"]
[lein-re-frisk "0.5.8"]] [lein-re-frisk "0.5.8"]
[lein-cljfmt "0.5.7"]
[lein-githooks "0.1.0"]]
:githooks {:auto-install true
:pre-commit ["lein cljfmt check"]}
:cljfmt {:indents {letsubs [[:inner 0]]}}
:clean-targets ["target/" "index.ios.js" "index.android.js"] :clean-targets ["target/" "index.ios.js" "index.android.js"]
:aliases {"prod-build" ^{:doc "Recompile code with prod profile."} :aliases {"prod-build" ^{:doc "Recompile code with prod profile."}
["do" "clean" ["do" "clean"