From 8f005224ca6cbed77a80240580f9da24bd7d67b4 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 4 Jan 2020 20:28:17 +0100 Subject: [PATCH] Dev note --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d1eb4d3..e14e5bae 100644 --- a/README.md +++ b/README.md @@ -655,7 +655,16 @@ You need [Leiningen](https://leiningen.org/), and for building binaries you need `lein repl` will get you a standard REPL/nREPL connection. To work on tests use `lein with-profiles +test repl`. -### Generate reflection.json file +### Adding classes + +Add necessary classes to `babashka/impl/classes.clj`. For every addition, write +a unit test, so it's clear why it is added and removing it will break the +tests. Try to reduce the size of the binary by only adding the necessary parts +of a class in `:instance-check`, `:constructors`, `:methods`, `:fields` or +`:custom`. + +The `reflection.json` file that is needed for GraalVM compilation is generated +with: lein with-profiles +reflection run