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}}}}