forked from ambyint/kafkajs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
80 lines (80 loc) · 3.58 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
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
{
"name": "kafkajs",
"version": "1.12.0",
"description": "A modern Apache Kafka client for node.js",
"author": "Tulio Ornelas <[email protected]>",
"main": "index.js",
"types": "types/index.d.ts",
"license": "MIT",
"keywords": [
"kafka",
"sasl",
"scram"
],
"engines": {
"node": ">=10.13.0"
},
"repository": {
"type": "git",
"url": "https://github.com/tulios/kafkajs.git"
},
"bugs": {
"url": "https://github.com/tulios/kafkajs/issues"
},
"homepage": "https://kafka.js.org",
"scripts": {
"jest": "export KAFKA_VERSION=${KAFKA_VERSION:='2.3'} && NODE_ENV=test echo \"KAFKA_VERSION: ${KAFKA_VERSION}\" && KAFKAJS_DEBUG_PROTOCOL_BUFFERS=1 ./node_modules/.bin/jest",
"test:local": "yarn jest --detectOpenHandles",
"test:debug": "NODE_ENV=test KAFKAJS_DEBUG_PROTOCOL_BUFFERS=1 node --inspect-brk node_modules/.bin/jest --detectOpenHandles --runInBand --watch",
"test:local:watch": "yarn test:local --watch",
"test": "yarn lint && JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh 'yarn jest --ci --maxWorkers=4 --no-watchman --forceExit'",
"lint": "find . -path ./node_modules -prune -o -path ./coverage -prune -o -path ./website -prune -o -name '*.js' -print0 | xargs -0 ./node_modules/.bin/eslint",
"format": "find . -path ./node_modules -prune -o -path ./coverage -prune -o -path ./website -prune -o -name '*.js' -print0 | xargs -0 ./node_modules/.bin/prettier --write",
"precommit": "lint-staged",
"test:group:broker": "yarn jest --forceExit --testPathPattern 'src/broker/.*'",
"test:group:admin": "yarn jest --forceExit --testPathPattern 'src/admin/.*'",
"test:group:producer": "yarn jest --forceExit --testPathPattern 'src/producer/.*'",
"test:group:consumer": "yarn jest --forceExit --testPathPattern 'src/consumer/.*.spec.js'",
"test:group:others": "yarn jest --forceExit --testPathPattern 'src/(?!(broker|admin|producer|consumer)/).*'",
"test:group:broker:ci": "JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh \"yarn test:group:broker --ci --maxWorkers=4 --no-watchman\"",
"test:group:admin:ci": "JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh \"yarn test:group:admin --ci --maxWorkers=4 --no-watchman\"",
"test:group:producer:ci": "JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh \"yarn test:group:producer --ci --maxWorkers=4 --no-watchman\"",
"test:group:consumer:ci": "JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh \"yarn test:group:consumer --ci --maxWorkers=4 --no-watchman\"",
"test:group:others:ci": "JEST_JUNIT_OUTPUT=test-report.xml ./scripts/testWithKafka.sh \"yarn test:group:others --ci --maxWorkers=4 --no-watchman\"",
"test:types": "./node_modules/.bin/tsc -p types/"
},
"devDependencies": {
"@types/node": "^12.0.8",
"@typescript-eslint/typescript-estree": "^1.10.2",
"eslint": "^6.1.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"execa": "^2.0.3",
"glob": "^7.1.4",
"husky": "^3.0.1",
"ip": "^1.1.5",
"jest": "^24.8.0",
"jest-extended": "^0.11.2",
"jest-junit": "^6.4.0",
"lint-staged": "^9.2.0",
"mockdate": "^2.0.3",
"prettier": "^1.18.2",
"semver": "^6.2.0",
"typescript": "^3.5.3",
"uuid": "^3.3.2"
},
"dependencies": {
"long": "^4.0.0"
},
"lint-staged": {
"*.js": [
"prettier --write",
"git add"
]
}
}