- Convert to yarn v2 with zero installs - Refactor much of app to use config instead of flags Co-authored-by: Sam Therapy <sam@samtherapy.net> Reviewed-on: Sam/fediverse-imagebot#1
This commit is contained in:
parent
9e31c4edff
commit
153ba14fab
91
.drone.yml
91
.drone.yml
|
@ -3,54 +3,53 @@ type: docker
|
|||
name: default
|
||||
|
||||
steps:
|
||||
- name: dependencies
|
||||
image: node
|
||||
commands:
|
||||
- yarn --check-cache
|
||||
|
||||
- name: dependencies
|
||||
image: node
|
||||
commands:
|
||||
- yarn
|
||||
- name: lint
|
||||
image: node
|
||||
depends_on:
|
||||
- dependencies
|
||||
commands:
|
||||
- yarn lint:ci
|
||||
|
||||
- name: lint
|
||||
image: node
|
||||
depends_on:
|
||||
- dependencies
|
||||
commands:
|
||||
- yarn lint
|
||||
- name: build
|
||||
image: node
|
||||
depends_on:
|
||||
- dependencies
|
||||
commands:
|
||||
- yarn build
|
||||
|
||||
- name: build
|
||||
image: node
|
||||
depends_on:
|
||||
- dependencies
|
||||
commands:
|
||||
- yarn build
|
||||
- name: test
|
||||
image: node
|
||||
depends_on:
|
||||
- build
|
||||
commands:
|
||||
- yarn test
|
||||
|
||||
- name: test
|
||||
image: node
|
||||
depends_on:
|
||||
- build
|
||||
commands:
|
||||
- yarn test
|
||||
- name: package
|
||||
image: node
|
||||
depends_on:
|
||||
- lint
|
||||
- test
|
||||
commands:
|
||||
- yarn package
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
- name: package
|
||||
image: node
|
||||
depends_on:
|
||||
- lint
|
||||
- test
|
||||
commands:
|
||||
- yarn package
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
- name: Release
|
||||
image: plugins/gitea-release
|
||||
depends_on:
|
||||
- package
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: release_api_key
|
||||
base_url: https://git.froth.zone
|
||||
files:
|
||||
- dist/imagebot-*
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- name: Release
|
||||
image: plugins/gitea-release
|
||||
depends_on:
|
||||
- package
|
||||
settings:
|
||||
api_key:
|
||||
from_secret: release_api_key
|
||||
base_url: https://git.froth.zone
|
||||
files:
|
||||
- dist/imagebot-*
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
dist/
|
|
@ -1,36 +1,24 @@
|
|||
{
|
||||
"env": {
|
||||
"commonjs": true,
|
||||
"es2021": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 13
|
||||
},
|
||||
"plugins": [
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"rules": {
|
||||
"indent": [
|
||||
"error",
|
||||
4
|
||||
],
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"quotes": [
|
||||
"error",
|
||||
"double"
|
||||
],
|
||||
"semi": [
|
||||
"error",
|
||||
"always"
|
||||
]
|
||||
}
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true,
|
||||
"node": true
|
||||
},
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": ["@typescript-eslint", "prettier"],
|
||||
"rules": {
|
||||
"linebreak-style": ["error", "unix"],
|
||||
"quotes": ["error", "double"],
|
||||
"semi": ["error", "always"],
|
||||
"prettier/prettier": ["error", { "singleQuote": false }]
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:prettier/recommended"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -112,11 +112,13 @@ dist
|
|||
.vscode-test
|
||||
|
||||
# yarn v2
|
||||
.yarn/cache
|
||||
.yarn/unplugged
|
||||
.yarn/build-state.yml
|
||||
.yarn/install-state.gz
|
||||
.pnp.*
|
||||
.yarn/*
|
||||
!.yarn/cache
|
||||
!.yarn/releases
|
||||
!.yarn/plugins
|
||||
!.yarn/sdks
|
||||
!.yarn/versions
|
||||
|
||||
config.json
|
||||
config.jsonc
|
||||
images/*
|
|
@ -0,0 +1,2 @@
|
|||
dist/
|
||||
.yarn/
|
BIN
.yarn/cache/@babel-helper-validator-identifier-npm-7.16.7-8599fb00fc-dbb3db9d18.zip
vendored
Normal file
BIN
.yarn/cache/@babel-helper-validator-identifier-npm-7.16.7-8599fb00fc-dbb3db9d18.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@humanwhocodes-config-array-npm-0.9.5-030a025eae-8ba6281bc0.zip
vendored
Normal file
BIN
.yarn/cache/@humanwhocodes-config-array-npm-0.9.5-030a025eae-8ba6281bc0.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@humanwhocodes-object-schema-npm-1.2.1-eb622b5d0e-a824a1ec31.zip
vendored
Normal file
BIN
.yarn/cache/@humanwhocodes-object-schema-npm-1.2.1-eb622b5d0e-a824a1ec31.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-http-cache-semantics-npm-4.0.1-90863c7a3e-1048aacf62.zip
vendored
Normal file
BIN
.yarn/cache/@types-http-cache-semantics-npm-4.0.1-90863c7a3e-1048aacf62.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-eslint-plugin-npm-5.14.0-0a99a77b50-7176b30ebc.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-eslint-plugin-npm-5.14.0-0a99a77b50-7176b30ebc.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-scope-manager-npm-5.14.0-02c079b134-20f1638772.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-scope-manager-npm-5.14.0-02c079b134-20f1638772.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-type-utils-npm-5.14.0-ab41e64afe-b5b71f397a.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-type-utils-npm-5.14.0-ab41e64afe-b5b71f397a.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-typescript-estree-npm-5.14.0-f9725f0495-41816c4cb3.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-typescript-estree-npm-5.14.0-f9725f0495-41816c4cb3.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-visitor-keys-npm-5.14.0-ef55bd76e1-3fc6038b33.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-visitor-keys-npm-5.14.0-ef55bd76e1-3fc6038b33.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue