refactor: move to current project setup standards

This commit is contained in:
Rainer Killinger
2022-11-21 10:42:47 +01:00
parent 7aefa50101
commit 30492c03ca
4 changed files with 1609 additions and 792 deletions

2
.eslintignore Normal file
View File

@@ -0,0 +1,2 @@
resources
openapi

3
.eslintrc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": "@openstapps"
}

2360
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,12 +7,12 @@
"url": "git@gitlab.com:openstapps/gitlab-api.git" "url": "git@gitlab.com:openstapps/gitlab-api.git"
}, },
"scripts": { "scripts": {
"build": "npm run tslint && npm run compile", "build": "npm run lint && npm run compile",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
"compile": "rimraf lib && tsc && prepend lib/cli.js '#!/usr/bin/env node\n'", "compile": "rimraf lib && tsc && prepend lib/cli.js '#!/usr/bin/env node\n'",
"documentation": "typedoc --includeDeclarations --mode modules --out docs --readme README.md --listInvalidSymbolLinks src", "documentation": "typedoc --out docs --readme README.md --listInvalidSymbolLinks --entryPointStrategy expand src",
"prepublishOnly": "npm ci && npm run build", "prepublishOnly": "npm ci && npm run build && npm run test",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'", "lint": "eslint --ext .ts src/",
"check-configuration": "openstapps-configuration", "check-configuration": "openstapps-configuration",
"postversion": "npm run changelog", "postversion": "npm run changelog",
"preversion": "npm run prepublishOnly", "preversion": "npm run prepublishOnly",
@@ -20,28 +20,36 @@
}, },
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>", "author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
"contributors": [ "contributors": [
"Rainer Killinger" "Rainer Killinger <openstapps@killinger.co>"
], ],
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"dependencies": { "dependencies": {
"@krlwlfrt/async-pool": "0.4.1", "@krlwlfrt/async-pool": "0.4.1",
"@openstapps/logger": "0.7.0", "@openstapps/logger": "1.1.1",
"@types/node": "14.17.19", "@types/node": "14.18.33",
"@types/request": "2.48.7", "@types/request": "2.48.8",
"@types/request-promise-native": "1.0.18", "@types/request-promise-native": "1.0.18",
"commander": "6.2.1", "commander": "6.2.1",
"request": "2.88.2", "request": "2.88.2",
"request-promise-native": "1.0.9" "request-promise-native": "1.0.9"
}, },
"devDependencies": { "devDependencies": {
"@openstapps/configuration": "0.28.1", "@openstapps/configuration": "0.33.0",
"conventional-changelog-cli": "2.1.1", "@openstapps/eslint-config": "1.1.0",
"@typescript-eslint/eslint-plugin": "5.43.0",
"@typescript-eslint/parser": "5.43.0",
"conventional-changelog-cli": "2.2.2",
"eslint": "8.28.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-jsdoc": "39.6.2",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-unicorn": "45.0.0",
"prepend-file-cli": "1.0.6", "prepend-file-cli": "1.0.6",
"prettier": "2.7.1",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"ts-node": "9.1.1", "ts-node": "10.9.1",
"tslint": "6.1.3", "typedoc": "0.22.18",
"typedoc": "0.22.4", "typescript": "4.4.4"
"typescript": "3.9.10"
}, },
"main": "lib/api.js", "main": "lib/api.js",
"types": "lib/api.d.ts", "types": "lib/api.d.ts",