Initial BPer implementation

This commit is contained in:
Andrea Lamparelli 2022-12-22 13:14:37 +01:00
parent 05d156a5b0
commit f0d9f789fa
59 changed files with 33618 additions and 1048 deletions

View file

@ -1,28 +1,33 @@
{
"name": "@lampajr/backporting",
"name": "@lampajr/bper",
"version": "0.0.1",
"description": "Tool to execute automatic git backporting.",
"description": "BPer is a tool to execute automatic git backporting.",
"author": "",
"license": "MIT",
"private": false,
"main": "./build/src/bin/main.js",
"main": "./dist/gha/index.js",
"bin": {
"backporting": "./build/src/bin/main.js"
"bper": "./dist/cli/index.js"
},
"files": [
"build/"
"dist/cli/index.js"
],
"scripts": {
"prepare": "husky install",
"clean": "rm -rf ./build",
"clean": "rm -rf ./build ./dist",
"compile": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
"build": "npm run clean && npm run compile",
"package": "ncc build --source-map --license licenses.txt",
"package": "npm run package:cli && npm run package:gha",
"package:cli": "ncc build ./build/src/bin/cli.js -o dist/cli",
"package:gha": "ncc build ./build/src/bin/gha.js -o dist/gha",
"build": "npm run clean && npm run compile && npm run package",
"test": "jest",
"test:report": "npm test -- --coverage --testResultsProcessor=jest-sonar-reporter",
"lint": "eslint . --ext .ts",
"lint:fix": "npm run lint -- --fix",
"ts-node": "ts-node"
"ts-node": "ts-node",
"preversion": "npm test",
"version": "npm run build && git add -A dist",
"postversion": "git push && git push --tags"
},
"repository": {
"type": "git",
@ -45,6 +50,7 @@
"@types/node": "^17.0.41",
"@typescript-eslint/eslint-plugin": "^5.45.1",
"@typescript-eslint/parser": "^5.45.1",
"@vercel/ncc": "^0.34.0",
"eslint": "^8.29.0",
"husky": "^8.0.2",
"jest": "^29.3.1",
@ -56,10 +62,7 @@
"typescript": "^4.9.3"
},
"dependencies": {
"@actions/artifact": "^1.1.0",
"@actions/core": "^1.8.2",
"@actions/exec": "^1.1.1",
"@actions/glob": "^0.3.0",
"@actions/core": "^1.10.0",
"@octokit/rest": "^19.0.5",
"@octokit/types": "^8.0.0",
"@octokit/webhooks-types": "^6.7.0",