-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
51 lines (51 loc) · 1.3 KB
/
package.json
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
{
"name": "grpc-typescript-tests-example",
"version": "0.1.0",
"author": "i.sandratskyi",
"scripts": {
"build": "yarn build:typescript",
"build:typescript": "tsc -p .",
"build:proto": "proto-loader-gen-types --longs=String --enums=String --defaults --oneofs --grpcLib=@grpc/grpc-js --outDir=out/ src/proto/*.proto",
"clean:typescript": "tsc --build --clean && rm -rf ./out",
"prebuild": "yarn build:proto",
"start:server": "node src/server &",
"start:client": "node src/client",
"prettier": "prettier --write . '!**/*.js'"
},
"dependencies": {
"@grpc/grpc-js": "^1.3.4",
"@grpc/proto-loader": "^0.6.4"
},
"devDependencies": {
"@tsconfig/node14": "1.0.1",
"@types/jest": "^26.0.24",
"@types/node": "^16.3.1",
"prettier": "^2.3.2",
"typescript": "^4.3.5",
"ts-jest": "^27.0.3",
"jest": "^27.0.6",
"jest-spec-reporter": "^1.0.17"
},
"prettier": {
"singleQuote": true,
"tabWidth": 2,
"printWidth": 100,
"useTabs": false,
"semi": false
},
"jest": {
"verbose": true,
"rootDir": ".",
"testMatch": [
"<rootDir>test/**/*.spec.ts"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testEnvironment": "node",
"testTimeout": 120000,
"reporters": [
"jest-spec-reporter"
]
}
}