-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
70 lines (70 loc) · 3.34 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
{
"name": "waltti-apc-vehicle-position-splitter",
"version": "0.0.1",
"description": "Split Vehicle Position feed snapshots by vehicle and send onwards only the data for vehicles with APC devices onboard, each vehicle in an individual message.",
"main": "dist/index.js",
"scripts": {
"build": "npm run build:protobuf && npm run build:quicktype && npm run build:src",
"build:protobuf": "npm run build:gtfsrt",
"build:quicktype": "npm run build:vehicle-apc-mapping",
"build:gtfsrt": "mkdir -p ./src/protobuf && rm -f ./src/protobuf/gtfsRealtime.* && pbjs --target static-module --wrap es6 --out ./src/protobuf/gtfsRealtime.js ./protobuf/gtfs-realtime.proto && pbjs --target static-module --wrap es6 ./protobuf/gtfs-realtime.proto | pbts --out ./src/protobuf/gtfsRealtime.d.ts - && prettier --write ./src/protobuf/gtfsRealtime.{js,d.ts}",
"build:vehicle-apc-mapping": "mkdir -p ./src/quicktype && rm -f ./src/quicktype/vehicle-apc-mapping.ts && quicktype --out ./src/quicktype/vehicle-apc-mapping.ts --top-level VehicleApcMapping --lang ts --src-lang schema --src ./quicktype/vehicle-apc-mapping.schema.json --no-date-times --alphabetize-properties --telemetry disable --explicit-unions && prettier --write ./src/quicktype/vehicle-apc-mapping.ts && export TMPFILE=\"$(mktemp)\" && echo '// @ts-nocheck' > \"${TMPFILE}\" && cat ./src/quicktype/vehicle-apc-mapping.ts >> \"${TMPFILE}\" && mv \"${TMPFILE}\" ./src/quicktype/vehicle-apc-mapping.ts",
"build:src": "rm -rf dist && tsc",
"check-and-build": "npm run build:protobuf && npm run build:quicktype && npm run ts:check && npm run prettier:check && npm run eslint && npm run test && npm run build",
"eslint": "eslint . --max-warnings=0",
"prettier": "prettier --write .",
"prettier:check": "prettier --check .",
"start": "node dist/index.js",
"test": "jest",
"ts:check": "tsc --noEmit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tvv-lippu-ja-maksujarjestelma-oy/waltti-apc-vehicle-position-splitter.git"
},
"keywords": [
"apc",
"pulsar"
],
"author": "pnupu <[email protected]>",
"license": "EUPL-1.2",
"bugs": {
"url": "https://github.com/tvv-lippu-ja-maksujarjestelma-oy/waltti-apc-vehicle-position-splitter/issues"
},
"homepage": "https://github.com/tvv-lippu-ja-maksujarjestelma-oy/waltti-apc-vehicle-position-splitter#readme",
"devDependencies": {
"@tsconfig/strictest": "^2.0.5",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^29.7.0",
"prettier": "^2.8.8",
"protobufjs-cli": "^1.1.3",
"quicktype": "^23.0.170",
"ts-jest": "^29.2.5",
"typescript": "^5.7.2"
},
"dependencies": {
"date-fns": "^2.30.0",
"date-fns-tz": "^2.0.0",
"pino": "^8.16.2",
"protobufjs": "^7.4.0",
"pulsar-client": "^1.12.0"
},
"jest": {
"preset": "ts-jest/presets/js-with-ts",
"testEnvironment": "node",
"testPathIgnorePatterns": [
"./dist"
]
}
}