Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
e504a7296d
commit
87a5926779
4 changed files with 1530 additions and 609 deletions
|
@ -31,7 +31,7 @@ steps:
|
|||
depends_on:
|
||||
- Build
|
||||
commands:
|
||||
- npm run package -t node16-linux-x64,node16-alpine-x64,node16-macos-x64,node16-win-x64 -o dist/bin/imagebot-x64
|
||||
- npm run package -t latest-linux-x64,latest-alpine-x64,latest-macos-x64,latest-win-x64 -o dist/bin/imagebot-x64
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
@ -83,7 +83,7 @@ steps:
|
|||
- Build
|
||||
commands:
|
||||
- wget "https://github.com/ProcursusTeam/ldid/releases/download/v2.1.5-procursus2/ldid_linux_aarch64" -O /usr/local/bin/ldid && chmod +x /usr/local/bin/ldid
|
||||
- npm run package -t node16-linux-arm64,node16-alpine-arm64,node16-macos-arm64,node16-win-arm64 -o dist/bin/imagebot-arm64
|
||||
- npm run package -t latest-linux-arm64,latest-alpine-arm64,latest-macos-arm64,latest-win-arm64 -o dist/bin/imagebot-arm64
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
|
|
@ -43,7 +43,7 @@ Download prebuilt binaries from [here](https://git.froth.zone/sam/fediverse-imag
|
|||
4. Install dependencies: \
|
||||
`pnpm i`
|
||||
5. Build: \
|
||||
`pnpm build`
|
||||
`pnpm run build`
|
||||
6. Edit the config file: \
|
||||
`cp config.sample.jsonc config.jsonc`
|
||||
- If you want to generate a key you can use https://git.froth.zone/sam/js-feditoken
|
||||
|
|
19
package.json
19
package.json
|
@ -5,11 +5,10 @@
|
|||
"command-line-usage": "6.1.3",
|
||||
"got-cjs": "12.3.1",
|
||||
"json5": "2.2.1",
|
||||
"megalodon": "4.1.0",
|
||||
"typescript": "4.8.4"
|
||||
"megalodon": "4.1.0"
|
||||
},
|
||||
"name": "fediverse-imagebot",
|
||||
"version": "2.0.0",
|
||||
"name": "@sam/fediverse-imagebot",
|
||||
"version": "2.1.1",
|
||||
"description": "Image bot for the fediverse (Pleroma, Mastodon, Misskey)",
|
||||
"exports": "./dist/index.js",
|
||||
"bin": "dist/index.js",
|
||||
|
@ -17,8 +16,8 @@
|
|||
"scripts": "dist/**/*.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run clean && tsc",
|
||||
"clean": "rm -rf dist",
|
||||
"build": "tsc -b",
|
||||
"clean": "tsc -b --clean",
|
||||
"lint": "eslint --ext .ts ./src --fix && prettier --write ./src",
|
||||
"lint:ci": "eslint --ext .ts,.js ./src && prettier ./src --check",
|
||||
"bot": "node ./dist/index.js",
|
||||
|
@ -31,14 +30,14 @@
|
|||
"devDependencies": {
|
||||
"@types/command-line-args": "5.2.0",
|
||||
"@types/command-line-usage": "5.0.2",
|
||||
"@types/node": "18.11.5",
|
||||
"@types/node-fetch": "2.6.2",
|
||||
"@types/node": "^18.11.5",
|
||||
"@typescript-eslint/eslint-plugin": "5.41.0",
|
||||
"@typescript-eslint/parser": "5.41.0",
|
||||
"eslint": "8.26.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"pkg": "5.8.0",
|
||||
"prettier": "2.7.1"
|
||||
"prettier": "2.7.1",
|
||||
"typescript": "4.8.4"
|
||||
}
|
||||
}
|
||||
}
|
2114
pnpm-lock.yaml
2114
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Reference in a new issue