-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
98 lines (98 loc) · 2.61 KB
/
package.json
File metadata and controls
98 lines (98 loc) · 2.61 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "@yytypescript/yychat",
"version": "1.0.0",
"description": "A chat server",
"license": "MIT",
"author": "suin <suinyeze@gmail.com>",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"directories": {
"lib": "lib",
"test": "test"
},
"files": [
"lib",
"src"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"clean": "git clean -Xdf --exclude='!.idea/**/*' --exclude='!node_modules/' --exclude='!**/node_modules/**/*'",
"clean:all": "git clean -Xdf --exclude='!.idea/**/*'",
"clean:all:dry": "git clean -Xdfn --exclude='!.idea/**/*'",
"clean:dry": "git clean -Xdfn --exclude='!.idea/**/*' --exclude='!node_modules/' --exclude='!**/node_modules/**/*'",
"format": "run-s lint:*:fix",
"lint": "run-s lint:*",
"lint-staged": "lint-staged",
"lint:tsc": "tsc --noEmit --pretty",
"lint:tslint": "tslint -p tsconfig.json -c tslint.json -t codeFrame",
"lint:tslint:fix": "tslint -p tsconfig.json -c tslint.json -t codeFrame --fix",
"precommit": "run-s lint-staged",
"start": "node lib/index.js",
"start:dev": "ts-node-dev src/index.ts",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "npm run precommit"
}
},
"lint-staged": {
"**/package.json": [
"sort-package-json",
"git add"
],
"*.{ts,tsx}": [
"npm run lint:tslint:fix",
"git add"
]
},
"jest": {
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.json"
}
},
"moduleFileExtensions": [
"ts",
"js"
],
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"transform": {
"^.+\\.ts$": "ts-jest"
}
},
"dependencies": {
"@koa/cors": "^3.1.0",
"koa": "^2.11.0",
"koa-bodyparser": "^4.2.1",
"koa-json": "^2.0.2",
"koa-morgan": "^1.0.1",
"koa-route": "^3.2.0",
"koa-websocket": "^6.0.0"
},
"devDependencies": {
"@types/jest": "^25.1.3",
"@types/koa": "^2.11.1",
"@types/koa-bodyparser": "^4.3.0",
"@types/koa-json": "^2.0.18",
"@types/koa-morgan": "^1.0.4",
"@types/koa-route": "^3.2.4",
"@types/koa-websocket": "^5.0.4",
"@types/koa__cors": "^3.0.1",
"conventional-changelog-angular-all": "^1.7.0",
"husky": "^4.2.3",
"jest": "^25.1.0",
"lint-staged": "^10.0.7",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"sort-package-json": "^1.40.0",
"ts-jest": "^25.2.1",
"ts-node": "^8.6.2",
"ts-node-dev": "^1.0.0-pre.44",
"tslint": "^6.0.0",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.1.0",
"typescript": "^3.8.2",
"wscat": "^4.0.0"
}
}