diff options
| -rw-r--r-- | CHANGELOG.md | 24 | ||||
| -rw-r--r-- | README.md | 24 | ||||
| -rw-r--r-- | build.clj | 38 | ||||
| -rw-r--r-- | doc/intro.md | 3 | ||||
| -rw-r--r-- | test/cljcc/cljcc_test.clj | 7 |
5 files changed, 12 insertions, 84 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index d7de45a..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,24 +0,0 @@ -# Change Log -All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/). - -## [Unreleased] -### Changed -- Add a new arity to `make-widget-async` to provide a different widget shape. - -## [0.1.1] - 2024-07-20 -### Changed -- Documentation on how to make the widgets. - -### Removed -- `make-widget-sync` - we're all async, all the time. - -### Fixed -- Fixed widget maker to keep working when daylight savings switches over. - -## 0.1.0 - 2024-07-20 -### Added -- Files from the new template. -- Widget maker public API - `make-widget-sync`. - -[Unreleased]: https://github.com/cljcc/cljcc/compare/0.1.1...HEAD -[0.1.1]: https://github.com/cljcc/cljcc/compare/0.1.0...0.1.1 @@ -23,13 +23,13 @@ bb tasks The following tasks are available: -clean Removes target folder. -run-main Run main -nrepl Starts a nrepl session. -storm Starts a nrepl session with storm debugger. -build-uberjar Builds uberjar -run-uberjar Run uberjar -build-native Builds native image +clean Removes target folder. +nrepl Starts a nrepl session. +storm Starts a nrepl session with storm debugger. +cli:run:main Run's main CLI function. +cli:build:jar Builds uberjar for CLI. +cli:run:jar Runs CLI jar. +cli:build:native Builds native image for CLI. ``` @@ -38,19 +38,19 @@ build-native Builds native image To build native image, run: ``` sh -bb build-native +bb cli:build:native ``` -This produces a binary `cljcc` at `/target/cljcc`. Pass the path to the C file. +This produces a binary `cljcc-cli` at `/target/cli`. Pass the path to the C file. ``` sh -./target/cljcc/cljcc "path/to/file.c" +./target/cli/cljcc-cli "path/to/file.c" ``` -## Run +## Run Jar ``` sh -bb run-main "path/to/file.c" +bb cli:run:jar ``` ## References diff --git a/build.clj b/build.clj deleted file mode 100644 index 8fdeaaf..0000000 --- a/build.clj +++ /dev/null @@ -1,38 +0,0 @@ -(ns build - (:refer-clojure :exclude [test]) - (:require [clojure.tools.build.api :as b])) - -(def lib 'net.clojars.cljcc/cljcc) -(def main 'cljcc.cljcc) -(def class-dir "target/classes") - -(defn test "Run all the tests." [opts] - (let [basis (b/create-basis {:aliases [:test]}) - cmds (b/java-command - {:basis basis - :main 'clojure.main - :main-args ["-m" "cognitect.test-runner"]}) - {:keys [exit]} (b/process cmds)] - (when-not (zero? exit) (throw (ex-info "Tests failed" {})))) - opts) - -(defn- uber-opts [opts] - (assoc opts - :lib lib :main main - :uber-file "target/cljcc/cljcc.jar" - :basis (b/create-basis {}) - :class-dir class-dir - :src-dirs ["src"] - :ns-compile [main])) - -(defn ci "Run the CI pipeline of tests (and build the uberjar)." [opts] - (test opts) - (b/delete {:path "target"}) - (let [opts (uber-opts opts)] - (println "\nCopying source...") - (b/copy-dir {:src-dirs ["resources" "src"] :target-dir class-dir}) - (println (str "\nCompiling " main "...")) - (b/compile-clj opts) - (println "\nBuilding JAR...") - (b/uber opts)) - opts) diff --git a/doc/intro.md b/doc/intro.md deleted file mode 100644 index e27e777..0000000 --- a/doc/intro.md +++ /dev/null @@ -1,3 +0,0 @@ -# Introduction to cljcc/cljcc - -TODO: write [great documentation](http://jacobian.org/writing/what-to-write/) diff --git a/test/cljcc/cljcc_test.clj b/test/cljcc/cljcc_test.clj deleted file mode 100644 index e0add38..0000000 --- a/test/cljcc/cljcc_test.clj +++ /dev/null @@ -1,7 +0,0 @@ -(ns cljcc.cljcc-test - (:require [clojure.test :refer :all] - [cljcc.cljcc :refer :all])) - -(deftest a-test - (testing "FIXME, I fail." - (is (= 1 1)))) |
