updated docs

This commit is contained in:
dmitri.sotnikov@gmail.com 2020-02-27 20:30:24 -05:00
parent 820cd2be82
commit 86a0dd4c9f
2 changed files with 11 additions and 2 deletions

View file

@ -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 */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 ## License
Copyright © 2018 Dmitri Sotnikov Copyright © 2018 Dmitri Sotnikov

View file

@ -1,5 +1,6 @@
{:source-paths ["mastodon_bot"] {:source-paths ["mastodon_bot"]
:dependencies [] :dependencies []
:builds {:app {:target :node-script :builds {:app {:target :node-script
:output-to "target/mastodon-bot.js" :output-to "target/mastodon-bot.js"
:main mastodon-bot.core/main}}} :main mastodon-bot.core/main
:compiler-options {:optimizations :simple}}}}