-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare Release of Markdown Module (#31)
* Adds build tooling namespace and alias. This is needed for releasing Clerk with markdown-first support. * Drop `nextjournal.log dependency` of markdown module * Bump js scriptengine to latest version 21.3.0 * Use clerk via public git url inferred from lib name (dropping `:git/url` key) * Fixes building classpath by uniforming dep names for nextjournal/log lib * Fix Graal Polyglot Context when building source from JAR by dropping the evaluation of an 'import' statement in favour of using context option 'js.esm-eval-returns-exports' which allows returning exports as a Polyglot value when we evaluate an esm source file. * Also remove a separate polyglot engine as it doesn't fix the "interpreter only" warning when graal libraries are loaded by a stock JVM. Co-authored-by: Martin Kavalar <[email protected]>
- Loading branch information
Showing
6 changed files
with
51 additions
and
18 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 |
---|---|---|
|
@@ -6,8 +6,7 @@ | |
io.github.nextjournal/cljs-extensions {:local/root "../cljs-extensions"} | ||
io.github.nextjournal/markdown {:local/root "../markdown"} | ||
|
||
com.nextjournal/clerk {:git/url "[email protected]:nextjournal/clerk.git" | ||
:git/sha "d2cacf6d3d27768f34b9092c100be9083c6dd1fc"} | ||
io.github.nextjournal/clerk {:git/sha "ebc8f998c761f1b0e2c9fc4750ae87d8f1766faa"} | ||
|
||
;; we use shadow-resource directly | ||
thheller/shadow-cljs {:mvn/version "2.15.12"} | ||
|
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,31 @@ | ||
(ns build | ||
(:require [clojure.tools.build.api :as b] | ||
[deps-deploy.deps-deploy :as dd])) | ||
|
||
(def lib 'io.github.nextjournal/markdown) | ||
(def version (format "0.1.%s" (b/git-count-revs nil))) | ||
(def class-dir "target/classes") | ||
(def basis (b/create-basis {:project "deps.edn"})) | ||
(def jar-file (format "target/%s-%s.jar" (name lib) version)) | ||
|
||
(defn clean [_] | ||
(b/delete {:path "target"})) | ||
|
||
(defn jar [_] | ||
(b/write-pom {:class-dir class-dir | ||
:lib lib | ||
:version version | ||
:basis basis | ||
:src-dirs ["src"]}) | ||
(b/copy-dir {:src-dirs ["src" "resources"] | ||
:target-dir class-dir}) | ||
(b/jar {:class-dir class-dir | ||
:jar-file jar-file})) | ||
|
||
(defn deploy [opts] | ||
(println "Deploying version" jar-file "to Clojars.") | ||
(jar {}) | ||
(dd/deploy (merge {:installer :remote | ||
:artifact jar-file | ||
:pom-file (b/pom-path {:lib lib :class-dir class-dir})} | ||
opts))) |
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
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
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
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,2 @@ | ||
{:deps {nextjournal/cljs-extensions {:local/root "../cljs-extensions"} | ||
nextjournal/log {:local/root "../log"}}} | ||
io.github.nextjournal/log {:local/root "../log"}}} |