Skip to content

Commit 20c681e

Browse files
committed
Change lein aliases
1 parent 207a2a9 commit 20c681e

File tree

4 files changed

+15
-24
lines changed

4 files changed

+15
-24
lines changed

.github/workflows/continuous-deployment-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
restore-keys: |
3535
${{ runner.os }}-shadow-cljs-
3636
- run: |
37-
lein karma-once
37+
lein ci
3838
- name: Slack notification
3939
uses: homoluctus/slatify@v2.0.1
4040
if: failure() || cancelled()

.github/workflows/continuous-integration-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
restore-keys: |
3232
${{ runner.os }}-shadow-cljs-
3333
- run: |
34-
lein karma-once
34+
lein ci
3535
- name: Slack notification
3636
uses: homoluctus/slatify@v2.0.1
3737
if: failure() || cancelled()

CONTRIBUTING.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,9 @@ Create pull requests to the master branch.
1717

1818
#### Via Browser/HTML
1919

20-
To build the tests and run them in one step, just:
20+
To auto compile the tests via shadow-cljs just:
2121
```sh
22-
lein test-once # compiles & then opens test.html in the browser
23-
```
24-
25-
You can also get auto compiles via:
26-
```sh
27-
lein test-auto
22+
lein watch
2823
```
2924
but you'll need to manually open `test/test.html` in a browser. And you'll also need to
3025
manually reload this page after each auto compile.
@@ -36,8 +31,9 @@ If you're on Linux or Mac OS X then you will be fine, if you're on Windows then
3631
Visual Studio Community Edition, and the C++ compiler dependencies.
3732

3833
```sh
39-
lein deps # runs lein-npm, installs Karma & other node dependencies. Only needed the first time.
40-
lein karma-once # to build re-frame-http-fx tests
34+
lein ci # to build and run re-frame-http-fx tests
35+
# or
36+
lein watch
4137
karma start # to run the tests with an auto watcher
4238
```
4339

project.clj

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,11 @@
5252
:output-to "target/karma-test.js"
5353
:compiler-options {:pretty-print true}}}}
5454

55-
;; The git update-index command is required to ignore changes to package.json as
56-
;; 1. package.json must be committed to the repo for npm install --save... to behave correctly, which is used by
57-
;; lein-shadow to install dependencies that would cause the build to fail if missing; e.g. karma
58-
;; 2. .gitignore does nothing for files that are already committed
59-
;; 3. git recognising package.json modifications would cause day8/lein-git-inject to always incorrectly use
60-
;; -SNAPSHOT versions.
61-
:aliases {"test-auto" ["do"
62-
["clean"]
63-
["shadow" "watch" "browser-test"]]
64-
"karma-once" ["do"
65-
["clean"]
66-
["shadow" "compile" "karma-test"]
67-
["shell" "karma" "start" "--single-run" "--reporters" "junit,dots"]]})
55+
:aliases {"watch" ["do"
56+
["clean"]
57+
["shadow" "watch" "browser-test" "karma-test"]]
58+
59+
"ci" ["do"
60+
["clean"]
61+
["shadow" "compile" "karma-test"]
62+
["shell" "karma" "start" "--single-run" "--reporters" "junit,dots"]]})

0 commit comments

Comments
 (0)