1
1
.PHONY : repl prepare clean outdated coverage
2
2
.PHONY : test test-clj test-cljs
3
3
4
- VERSION := 1.10.1
5
- POM_FILE =pom.xml
4
+ CP = $( shell clojure -A:dev -Spath)
5
+ ARTIFACT =target/merr.jar
6
6
7
- $( POM_FILE ) :
7
+ pom.xml :
8
8
clj -Spom
9
9
10
10
repl :
11
- iced repl --with-kaocha
11
+ iced repl -A:dev --with-kaocha --force-clojure-cli
12
+ repl-cljs :
13
+ iced repl --force-shadow-cljs app
14
+
15
+ inspect :
16
+ node --inspect target/js/compiled/index.js
12
17
13
18
node_modules/ws :
14
19
npm install
@@ -17,21 +22,37 @@ prepare: node_modules/ws
17
22
test : test-clj test-cljs
18
23
19
24
test-clj :
20
- lein test-clj
25
+ clojure -M:dev:1.9:test --focus :unit-clj
26
+ clojure -M:dev:test --focus :unit-clj
21
27
22
28
test-cljs : prepare
23
- lein test-cljs
29
+ clojure -M:dev: test --focus :unit -cljs
24
30
25
31
clean :
26
- lein clean
27
- rm -rf node_modules
32
+ rm -rf node_modules target .cpcache .clj-kondo/.cache
28
33
29
34
lint :
35
+ @clj-kondo --no-warnings --lint " $( CP) "
30
36
clj-kondo --lint src:test
31
37
cljstyle check
32
38
33
39
outdated :
34
- lein with-profile +antq run -m antq.core
40
+ clojure -M:outdated --upgrade
41
+
42
+ pom :
43
+ clojure -Spom
44
+
45
+ $(ARTIFACT ) : pom
46
+ clojure -X:depstar jar :jar $@
47
+ jar : clean $(ARTIFACT )
48
+
49
+ install : clean $(ARTIFACT )
50
+ clojure -X:deploy :installer :local :artifact $(ARTIFACT )
51
+
52
+ deploy : clean $(ARTIFACT )
53
+ echo " Testing if CLOJARS_USERNAME environmental variable exists."
54
+ test $(CLOJARS_USERNAME )
55
+ clojure -X:deploy :installer :remote :sign-releases? true :artifact $(ARTIFACT )
35
56
36
57
coverage :
37
- lein cloverage --codecov
58
+ clojure -M:coverage:dev --src-ns-path=src --test-ns-path=test --codecov
0 commit comments