File tree 1 file changed +20
-4
lines changed
1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
## Development
15
15
16
+ Before starting development, install dependencies with:
17
+
18
+ ``` shell
19
+ make deps
20
+ ```
21
+
22
+ This will install both the Clojure and the NPM dependencies required.
23
+
16
24
### Run Clojure REPL
17
25
18
26
``` shell
@@ -24,9 +32,17 @@ This will start a Clojure REPL that includes shadow-cljs (which we use to build
24
32
From that namespace:
25
33
26
34
- The app server can be (re)started with ` (go) ` . This will also start the ` shadow-cljs ` process for building the frontend and watching for changes.
27
- - We can swtich to the ClojureScript REPL with ` (cljs-repl) `
35
+ - We can switch to the ClojureScript REPL with ` (cljs-repl) `
28
36
- Use ` :cljs/quit ` to return to the Clojure REPL
29
37
38
+ ### Build CSS
39
+
40
+ ``` shell
41
+ make css-watch
42
+ ```
43
+
44
+ This will start PostCSS to watch for changes in ` resources/styles/*.css ` .
45
+
30
46
### Unit tests
31
47
32
48
Run unit tests of the service using the kaocha test runner
@@ -52,16 +68,16 @@ Also edit config/deploy.yml to ensure it matches your setup. See the [Kamal docs
52
68
It’s possible to build an uberjar and run it locally to test before deploying:
53
69
54
70
``` shell
55
- make dist
56
- java -jar target/parts-standalone.jar
71
+ make dist && make run-dist
57
72
```
58
73
59
74
### Deploy
60
75
61
76
A deployment can be started via:
62
77
63
78
``` shell
64
- make deploy
79
+ # Always run tests before deploying
80
+ make test && make deploy
65
81
```
66
82
67
83
## License
You can’t perform that action at this time.
0 commit comments