prepare for publishing on npm

This commit is contained in:
jem 2020-06-26 10:42:32 +02:00
parent c564c525f4
commit 49fe78dc06
4 changed files with 4298 additions and 1582 deletions

9
.travis Normal file
View file

@ -0,0 +1,9 @@
# can be used for travis build config et al config
#shadow-cljs do-something test
shadow-cljs release app
mkdir target/npm-build
cp mastodon-bot.js target/npm-build/
cp README.md target/npm-build/
tar -c -C target/npm-build -f target/npm-build.tar .
npm publish ./target/npm-build.tar --access public --tag dev0

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,12 @@
{
"name": "mastodon-bot",
"version": "0.0.2",
"description": "Bot to publish twitter, tumblr or rss posts to an mastodon account.",
"author": "Dmitri Sotnikov",
"version": "0.1.0-dev-0",
"homepage": "https://github.com/yogthos/mastodon-bot",
"repository": "https://github.com/yogthos/mastodon-bot",
"license": "MIT",
"dependencies": {
"lumo-cljs": "^1.10.1",
"mastodon-api": "1.3.0",
"rss-parser": "3.7.1",
"tumblr": "0.4.1",
@ -15,17 +17,20 @@
"devDependencies": {
"shadow-cljs": "^2.8.37"
},
"directories": {
"lib": "."
},
"files": [
"src/mastodon_bot/*"
],
"main": "mastodon-bot.js",
"scripts": {
"start": "./src/main/mastodon_bot/core.cljs",
"test": "MASTODON_BOT_CONFIG=test.edn ./src/test/mastodon_bot/core_test.cljs"
"start": "node mastodon-bot.js"
},
"bin": {
"mastodon-bot": "src/main/mastodon_bot/core.cljs"
}
"mastodon-bot": "mastodon-bot.js"
},
"keywords": [
"cljs",
"mastodon",
"twitter",
"rss",
"tumblr",
"bridge",
"bot"
]
}

View file

@ -2,15 +2,12 @@
"src/test"]
:dependencies [[orchestra "2019.02.06-1"]
[expound "0.8.4"]]
:builds {:dev {:target :node-library
:output-to "target/node-lib.js"
:exports {:infra mastodon-bot.core/main}
:repl-pprint true}
:test {:target :node-test
:builds {:test {:target :node-test
:output-to "target/node-tests.js"
:ns-regexp "test$"
:autorun true}
:autorun true
:repl-pprint true}
:app {:target :node-script
:output-to "target/mastodon-bot.js"
:output-to "mastodon-bot.js"
:main mastodon-bot.core/main
:compiler-options {:optimizations :simple}}}}