-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deps.edn alias for testing and building an uberjar. For latter add AOT compilation, build instructions in README, and a 'Hello World' entry point.
- Loading branch information
Showing
4 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.cpcache/ | ||
.idea/ | ||
classes/ | ||
target/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# hermes | ||
|
||
`hermes` is a clojure-based suite of terminology tools including a fast server with full-text search functionality. | ||
|
||
It replaces previous similar tools written in java and golang and is designed to fit into a wider architecture | ||
with identifier resolution, mapping and semantics as first-class abstractions. | ||
|
||
#### Run from the command-line | ||
|
||
``` | ||
clj -m com.eldrix.hermes.core | ||
``` | ||
|
||
#### Running tests | ||
``` | ||
clj -A:test | ||
``` | ||
|
||
#### Building uberjar | ||
|
||
Perform ahead-of-time (AOT) compilation (see [https://clojure.org/guides/deps_and_cli#aot_compilation](https://clojure.org/guides/deps_and_cli#aot_compilation)) | ||
``` | ||
clj -e "(compile 'app.core)" | ||
``` | ||
|
||
This will generate class files to create a runnable jar. Now you can build an uberjar: | ||
|
||
``` | ||
clojure -A:uberjar | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
{:deps {org.clojure/data.csv {:mvn/version "1.0.0"} | ||
org.clojure/core.async {:mvn/version "1.3.610"} | ||
org.clojure/tools.logging {:mvn/version "1.1.0"}} | ||
:paths ["src"]} | ||
{:deps {org.clojure/clojure {:mvn/version "1.10.1"} | ||
org.clojure/data.csv {:mvn/version "1.0.0"} | ||
org.clojure/core.async {:mvn/version "1.3.610"} | ||
org.clojure/tools.logging {:mvn/version "1.1.0"}} | ||
:paths ["src" "classes"] | ||
|
||
:aliases {:test {:extra-paths ["test"] | ||
:extra-deps {com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git" | ||
:sha "6ec7f8eef509cd14d831e8cc16e856b31327a862"}} | ||
:main-opts ["-m" "cognitect.test-runner"]} | ||
:uberjar {:extra-deps {uberdeps/uberdeps {:mvn/version "1.0.0"}} | ||
:main-opts ["-m" "uberdeps.uberjar" | ||
"--target" "target/hermes-0.1.0.jar" | ||
"--main-class" "com.eldrix.hermes.core"]}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(ns com.eldrix.hermes.core (:gen-class)) | ||
|
||
(defn -main [& args] | ||
(println "Hello world")) |