add tests

This commit is contained in:
OpportunityLiu
2020-03-20 22:14:58 +08:00
Unverified
parent 7d75884a86
commit be19756845
15 changed files with 3508 additions and 41 deletions
+9 -4
View File
@@ -8,9 +8,11 @@
"scripts": {
"clean": "rimraf dist",
"watch": "tsc --watch",
"lint":"eslint --fix src/**/*",
"build": "yarn clean && yarn install && tsc",
"release": "yarn build && yarn lint && yarn install --production"
"lint": "eslint --fix src/**/*",
"build": "tsc --build ./tsconfig.build.json",
"rebuild":"yarn clean && yarn build",
"test": "jest",
"release": "yarn rebuild && yarn lint && yarn install --production"
},
"dependencies": {
"@actions/core": "^1.1.3",
@@ -20,6 +22,7 @@
"semver": "^7.1.3"
},
"devDependencies": {
"@types/jest": "^25.1.4",
"@types/node": "^13.9.2",
"@types/semver": "^7.1.0",
"@typescript-eslint/eslint-plugin": "^2.23.0",
@@ -27,8 +30,10 @@
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^25.1.0",
"prettier": "^1.19.1",
"rimraf": "^3.0.2",
"typescript":"^3.8.3"
"ts-jest": "^25.2.1",
"typescript": "^3.8.3"
}
}