create app in target

This commit is contained in:
jem 2021-02-10 13:29:29 +01:00
parent c32c0c6e9a
commit 684d471696
2 changed files with 5 additions and 5 deletions

View file

@ -31,15 +31,15 @@ package:
- target/ - target/
script: script:
- shadow-cljs compile app - shadow-cljs compile app
- chmod a+x mastodon-bot.js - chmod a+x target/mastodon-bot.js
- sha256sum mastodon-bot.js > target/mastodon-bot.js.sha256 - sha256sum target/mastodon-bot.js > target/mastodon-bot.js.sha256
- sha512sum mastodon-bot.js > target/mastodon-bot.js.sha512 - sha512sum target/mastodon-bot.js > target/mastodon-bot.js.sha512
upload: upload:
stage: upload stage: upload
script: script:
- mkdir -p target/npm-build/mastodon_bot - mkdir -p target/npm-build/mastodon_bot
- cp mastodon-bot.js target/npm-build/mastodon_bot/ - cp target/mastodon-bot.js target/npm-build/mastodon_bot/
- cp target/mastodon-bot.js.sha256 target/npm-build/mastodon_bot/ - cp target/mastodon-bot.js.sha256 target/npm-build/mastodon_bot/
- cp target/mastodon-bot.js.sha512 target/npm-build/mastodon_bot/ - cp target/mastodon-bot.js.sha512 target/npm-build/mastodon_bot/
- cp package.json target/npm-build/mastodon_bot/ - cp package.json target/npm-build/mastodon_bot/

View file

@ -7,6 +7,6 @@
:autorun true :autorun true
:repl-pprint true} :repl-pprint true}
:app {:target :node-script :app {:target :node-script
:output-to "mastodon-bot.js" :output-to "target/mastodon-bot.js"
:main mastodon-bot.core/main :main mastodon-bot.core/main
:compiler-options {:optimizations :simple}}}} :compiler-options {:optimizations :simple}}}}