From 86a0dd4c9fb4ec0cddd94305a26d93f8f2bb7681 Mon Sep 17 00:00:00 2001 From: "dmitri.sotnikov@gmail.com" Date: Thu, 27 Feb 2020 20:30:24 -0500 Subject: [PATCH] updated docs --- README.md | 8 ++++++++ shadow-cljs.edn | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 765b7e4..c5a1d9f 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,14 @@ with later timestamps to avoid duplicate posts. On the first run the timestamp w */30 * * * * npm start /path/to/config.edn > /dev/null 2>&1 +### compiling to Js + +Alternatively, the bot can be compiled directly to JavaScript using the following command: + +``` +npx shadow-cljs release app +``` + ## License Copyright © 2018 Dmitri Sotnikov diff --git a/shadow-cljs.edn b/shadow-cljs.edn index 793e3b5..d666e71 100644 --- a/shadow-cljs.edn +++ b/shadow-cljs.edn @@ -1,5 +1,6 @@ {:source-paths ["mastodon_bot"] :dependencies [] - :builds {:app {:target :node-script + :builds {:app {:target :node-script :output-to "target/mastodon-bot.js" - :main mastodon-bot.core/main}}} + :main mastodon-bot.core/main + :compiler-options {:optimizations :simple}}}}