Add packages and their config, add git[hub] configs

This commit is contained in:
Barry Gordon
2021-05-26 16:32:58 +01:00
parent c09c9eb18b
commit 5463e0e4c6
8 changed files with 14973 additions and 0 deletions

2
.eslintignore Normal file
View File

@@ -0,0 +1,2 @@
node_modules
dist

20
.eslintrc.js Normal file
View File

@@ -0,0 +1,20 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
jest: true,
},
extends: [
'standard'
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12
},
plugins: [
'@typescript-eslint'
],
rules: {
}
}

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
dist/index.js -diff linguist-generated=true

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
node_modules
.env

6
jest.config.js Normal file
View File

@@ -0,0 +1,6 @@
module.exports = {
preset: 'ts-jest',
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest'
}
}

14884
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

45
package.json Normal file
View File

@@ -0,0 +1,45 @@
{
"name": "dependabot-pull-request-action",
"version": "1.0.0",
"description": "Parse Dependabot commit metadata to automate PR handling",
"main": "dist/index.js",
"scripts": {
"build": "ncc build src/main.ts",
"lint": "eslint . --ext .ts",
"test": "jest",
"dry-run": "ts-node src/dry-run.ts"
},
"keywords": [
"actions",
"dependabot",
"merge",
"approve"
],
"author": "dependabot",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.3.0",
"@actions/github": "^5.0.0"
},
"devDependencies": {
"@types/jest": "^26.0.23",
"@types/node": "^15.6.0",
"@types/yargs": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.25.0",
"@vercel/ncc": "^0.28.5",
"dotenv": "^10.0.0",
"eslint": "^7.27.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"jest": "^26.6.3",
"nock": "^13.0.11",
"ts-jest": "^26.5.6",
"ts-node": "^10.0.0",
"typescript": "^4.2.4",
"yaml": "^1.10.2",
"yargs": "^17.0.1"
}
}

13
tsconfig.json Normal file
View File

@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./lib",
"rootDir": "./src",
"strict": true,
"noImplicitAny": false,
"esModuleInterop": true
},
"exclude": ["node_modules"]
}