Convert HTML Fragments, eg from Tailwind CSS snippets, to electric dom code.
Download from https://github.com/intronic/electrify-html
Run the project directly, via :exec-fn
:
$ clojure -X:run-x :file _file_name_ [:keep-comments true]
eg: $ clojure -X:run-x :file ./resources/test/badge.html
Run the project:
$ clojure -X intronic.electrify-html/-main :file ./resources/test/badge.html
Run the project's tests:
$ clojure -T:build test
Run the project's CI pipeline and build an uberjar (this will fail until you edit the tests to pass):
$ clojure -T:build ci
This will produce an updated pom.xml
file with synchronized dependencies inside the META-INF
directory inside target/classes
and the uberjar in target
. You can update the version (and SCM tag)
information in generated pom.xml
by updating build.clj
.
If you don't want the pom.xml
file in your project, you can remove it. The ci
task will
still generate a minimal pom.xml
as part of the uber
task, unless you remove version
from build.clj
.
Run that uberjar:
$ java -jar target/com.github.intronic/electrify-html-0.1.0-SNAPSHOT.jar
This will produce an updated pom.xml
file with synchronized dependencies inside the META-INF
directory inside target/classes
and the JAR in target
. You can update the version (and SCM tag)
information in generated pom.xml
by updating build.clj
.
Apply (and push) the version tag to the git repo:
$ clojure -T:build git-tag-version
Deploy it to Clojars -- needs CLOJARS_USERNAME
and CLOJARS_PASSWORD
environment
variables (requires the ci
& git-tag-version
tasks be run first):
$ clojure -T:build deploy
Your library will be deployed to intronic/electrify-html on clojars.org by default.
Install it locally (requires the ci
task be run first):
$ clojure -T:build install
FIXME: listing of options this app accepts.
Copyright © 2024 Mike Pheasant
Distributed under the Eclipse Public License version 1.0.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close