Skip to content

Commit

Permalink
fix(lib): build types in runtime instead of prebuilt in jar
Browse files Browse the repository at this point in the history
  • Loading branch information
octoshikari committed Jun 9, 2023
1 parent 241ec76 commit 218f0ef
Show file tree
Hide file tree
Showing 15 changed files with 24 additions and 7,427 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ clear-data.ts
.clj-kondo/
!.clj-kondo/config.edn
.cpcache/
.lsp/
resources
.lsp/
11 changes: 1 addition & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,14 @@
.PHONY: test build

sdk-build:
mkdir -p resources && \
cd vendor/build && npm install && npm run build && \
cp lib/index.d.ts ../../resources/index.d.ts && \
cp lib/index.js ../../resources/index.js && \
cp package.json ../../resources/package.json && \
cd ../.. && clj -T:build-pm uber && \
rm -rf ./resources vendor/build/lib
clj -T:build-pm uber

sdk-publish:
cd vendor/publish && npm install && cp ../../target/zen.jar zen.jar && npm publish --access=public

repl:
clj -A:test -M:nrepl

build:
clj -T:build-pm uber

test:
clj -A:test:kaocha

Expand Down
Binary file modified aidbox-javascript-sdk-v1.0.0.tgz
Binary file not shown.
7 changes: 5 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

:deps {org.clojure/clojure {:mvn/version "1.11.1"}
borkdude/edamame {:mvn/version "1.0.16"}
#_#_hawk/hawk {:mvn/version "0.2.11"}
com.taoensso/nippy {:mvn/version "3.2.0"}
zen-lang/zen {:git/url "https://github.com/zen-lang/zen"
:sha "2eb6b463f33a06315c405b0a92bac6ea2eef3b32"}}
Expand All @@ -18,7 +17,11 @@
cider/cider-nrepl {:mvn/version "0.30.0"}
refactor-nrepl/refactor-nrepl {:mvn/version "3.6.0"}}

:jvm-opts ^:replace ["-XX:-OmitStackTraceInFastThrow"]
:jvm-opts ^:replace ["-XX:-OmitStackTraceInFastThrow"
"-XX:+UnlockDiagnosticVMOptions"
"-XX:+DebugNonSafepoints"
"-Xmx4g" "-Xms1g"
"-Djdk.attach.allowAttachSelf"]
:main-opts ["-m" "nrepl.cmdline"
"-b" "0.0.0.0"
"--middleware"
Expand Down
4 changes: 2 additions & 2 deletions personal-health-record/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Put `<client-name>`, `<client-secret>` and aidbox URL to `.env` file.
Example in `.env.tpl`

## Install dependencies and run
```
```bash
npm install
```

```
```bash
npm run dev
```
Loading

0 comments on commit 218f0ef

Please sign in to comment.