Skip to content

0.3.0: custom ClojureScript, new templates

Compare
Choose a tag to compare
@sritchie sritchie released this 06 Feb 22:44
· 19 commits to main since this release
582c804

The big addition with this release is mentat.clerk-utils.build.{serve!,halt!,build!}. These are like the nextjournal.clerk versions, but build custom ClojureScript.

See https://clerk-utils.mentat.org/#custom-clojurescript-builds for more detail.

The other big news is the clerk-utils/custom template, for generating projects with all of the custom ClojureScript wisdom built in. This will make it easy to use Clerk plugins like https://mafs.mentat.org/ and friends.

[0.3.0]

  • #13:

    • Adds a shutdown hook to mentat.clerk-utils.build that calls halt! when
      the JVM shuts down

    • Switches from npm http-server to babashka's http-server, slimming down the
      required entries in package.json just a touch more

    • adds the clerk-utils/custom deps-new template in the resources
      directory, along with an entry in the docs notebook on how to run it. The
      resources/clerk-utils/custom directory has a detailed README, as does the
      generated project.

  • #11:

    • Adds mentat.clerk-utils.sci/register-js! for adding custom JS libraries to
      Clerk's SCI environment.

    • Adds documentation on how to generate custom ClojureScript builds for Clerk.

  • #10:

    • Adds mentat.clerk-utils.css with add-css!, set-css! and reset-css!
      functions for customizing the CSS served in Clerk's header

    • Adds mentat.clerk-utils.docs with git-sha and git-dependency for
      injecting git dependency instructions into a notebook

    • Adds mentat.clerk-utils.build with serve!, build! and halt!
      variations that support custom CLJS compilation