create app in target

master
jem 3 years ago
parent c32c0c6e9a
commit 684d471696

@ -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/

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