Skip to content

Commit

Permalink
Implement ClojureScript support
Browse files Browse the repository at this point in the history
  • Loading branch information
eerohele committed Nov 24, 2023
1 parent 950b928 commit 25b39d2
Show file tree
Hide file tree
Showing 17 changed files with 1,954 additions and 449 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths:
- '**.clj'
- '**.cljc'
- '**.cljs'
- '**.bb'
- '**.edn'
- '**.repl'
Expand All @@ -29,6 +30,10 @@ jobs:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}

- uses: actions/setup-node@v3
with:
node-version: 18

- uses: DeLaGuardo/[email protected]
with:
cli: '1.11.1.1208'
Expand All @@ -44,3 +49,7 @@ jobs:
- run: clojure -X:dev user/xr! '{:path "check"}'

- run: clojure -A:dev -X cognitect.test-runner.api/test

- run: npm install

- run: npx shadow-cljs compile test && node out/test.js
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.cpcache/
target/
pom.xml.versionsBackup
.shadow-cljs/
node_modules/
out/
10 changes: 9 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
test:
npm:
npm install

test-cljs: npm
npx shadow-cljs compile test && node out/test.js

test-clj:
clojure -A:dev -X cognitect.test-runner.api/test
clojure -X:dev user/xr! '{:path "check"}'

test: test-cljs test-clj

bench:
clojure -X:dev user/xr! '{:path "bench"}'

Expand Down
3 changes: 2 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
criterium/criterium {:mvn/version "0.4.6"}
io.github.cognitect-labs/test-runner {:git/tag "v0.5.1" :git/sha "dfb30dd"}
fipp/fipp {:mvn/version "0.6.26"}
com.widdindustries/time-literals {:mvn/version "0.1.10"}}}
com.widdindustries/time-literals {:mvn/version "0.1.10"}
thheller/shadow-cljs {:mvn/version "2.25.8"}}}

:build
{:deps {io.github.clojure/tools.build {:git/tag "v0.9.4" :git/sha "b0ee58b"}}
Expand Down
Loading

0 comments on commit 25b39d2

Please sign in to comment.