Skip to content

Instantly share code, notes, and snippets.

@johan1a
Created March 6, 2021 15:35
Show Gist options
  • Save johan1a/bab8c474c41729afb7c8a8ffb8999574 to your computer and use it in GitHub Desktop.
Save johan1a/bab8c474c41729afb7c8a8ffb8999574 to your computer and use it in GitHub Desktop.
(defproject cljfmt "0.7.0"
:description "A library for formatting Clojure code"
:url "https://github.com/weavejester/cljfmt"
:scm {:dir ".."}
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/tools.cli "1.0.194"]
[org.clojure/tools.reader "1.3.3"]
[com.googlecode.java-diff-utils/diffutils "1.3.0"]
[rewrite-clj "0.6.1"]
[rewrite-cljs "0.4.5"]]
:plugins [[lein-cljsbuild "1.1.7"]
[io.taylorwood/lein-native-image "0.3.1"]]
:hooks [leiningen.cljsbuild]
:cljsbuild {:builds
{"dev" {:source-paths ["src" "test"]
:compiler {:main cljfmt.test-runner
:output-to "target/out/tests.js"
:output-dir "target/out"
:target :nodejs
:optimizations :none}}}
:test-commands
{"dev" ["node" "target/out/tests.js"]}}
:native-image
{:name "cljfmt"
:opts ["--verbose"
"-H:+ReportExceptionStackTraces"
"-J-Dclojure.spec.skip-macros=true"
"-J-Dclojure.compiler.direct-linking=true"
"-H:ReflectionConfigurationFiles=reflection.json"
"--initialize-at-build-time"
"-H:Log=registerResource:"
"--report-unsupported-elements-at-runtime"
"--verbose"
"--no-fallback"
"--no-server"
"-J-Xmx3g"]}
:profiles
{:uberjar
{:main cljfmt.main
:aot :all
:native-image
{:jvm-opts ["-Dclojure.compiler.direct-linking=true"
"-Dclojure.spec.skip-macros=true"]}}
:provided {:dependencies [[org.clojure/clojurescript "1.10.773"]]}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment