-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
71 lines (71 loc) · 1.9 KB
/
Copy pathpackage.json
File metadata and controls
71 lines (71 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"name": "robot",
"version": "1.0.0",
"description": "Work Wechat Robot",
"main": "sls.js",
"scripts": {
"robot": "ts-node robot.ts",
"robot:mock": "MOCK=true ts-node robot.ts",
"build": "tsc",
"deploy": "npm run build && sls deploy --debug",
"deploy:layer": "sls deploy --target=./layer",
"deploy:cos": "sls deploy --target=./cos",
"test": "jest",
"format": "npm run lint && npm run prettier",
"commitlint": "commitlint -f HEAD@{15}",
"lint": "eslint --ext .js,.ts,.tsx .",
"lint:fix": "eslint --fix --ext .js,.ts,.tsx .",
"prettier": "prettier --check '**/*.{css,html,js,ts,json,md,yaml,yml}'",
"prettier:fix": "prettier --write '**/*.{css,html,js,ts,json,md,yaml,yml}'"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=10"
},
"husky": {
"hooks": {
"pre-commit": "ygsec && lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "ygsec && npm run lint:fix && npm run prettier:fix"
}
},
"lint-staged": {
"**/*.{js,ts,tsx}": [
"npm run lint:fix"
],
"**/*.{css,html,js,ts,json,md,yaml,yml}": [
"npm run prettier:fix"
]
},
"keywords": [
"robot",
"wechat"
],
"author": "yugasun",
"license": "MIT",
"dependencies": {
"dotenv": "^8.2.0",
"got": "^11.8.2",
"ssl-checker": "^2.0.7"
},
"devDependencies": {
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@types/jest": "^26.0.23",
"@typescript-eslint/eslint-plugin": "^4.22.1",
"@typescript-eslint/parser": "^4.22.1",
"@ygkit/secure": "^0.0.10",
"eslint": "^7.25.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^6.0.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
}
}