-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpackage.json
124 lines (124 loc) · 6.35 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"name": "@mojaloop/pisp",
"version": "0.1.0",
"description": "Mojaloop PISP project",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist"
],
"engines": {
"node": "=16.x"
},
"scripts": {
"build": "tsc",
"build:openapi": "npm run build:openapi:dfsp && npm run build:openapi:pisp",
"build:openapi:dfsp": "npm run bundle:openapi:dfsp && npm run validate:openapi:dfsp",
"build:openapi:pisp": "npm run bundle:openapi:pisp && npm run validate:openapi:pisp",
"build:plantuml:all": "./scripts/_build_plantuml_all.sh",
"build:plantuml:diff": "./scripts/_build_plantuml_diff.sh",
"build:ttk-thirdparty-sim:api": "npm run bundle:ttk-thirdparty-sim:api && npm run move:ttk-thirdparty-sim:api && npm run warning:thirdparty-sim:api",
"build:ttk-thirdparty:api": "npm run bundle:ttk-thirdparty:api && npm run move:ttk-thirdparty:api && npm run warning:thirdparty:api",
"bundle:openapi:dfsp": "swagger-cli bundle -o ./src/interface/thirdparty-dfsp-api.yaml -t yaml ./src/interface/thirdparty-dfsp-api.template.yaml",
"bundle:openapi:pisp": "swagger-cli bundle -o ./src/interface/thirdparty-pisp-api.yaml -t yaml ./src/interface/thirdparty-pisp-api.template.yaml",
"bundle:ttk-thirdparty-sim:api": "swagger-cli bundle -o ./src/interface/ttk-thirdparty-sim-api.yaml -t yaml ./src/interface/ttk-thirdparty-sim-api-template.yaml && swagger-cli validate ./src/interface/ttk-thirdparty-sim-api.yaml",
"bundle:ttk-thirdparty:api": "swagger-cli bundle -o ./src/interface/ttk-thirdparty-api.yaml -t yaml ./src/interface/ttk-thirdparty-api-template.yaml && swagger-cli validate ./src/interface/ttk-thirdparty-api.yaml",
"docker:clean:all": "docker rm -f $(docker ps -a -q); docker volume rm (docker volume ls -q)",
"lint": "eslint ./src/**/*.ts *.js",
"move:ttk-thirdparty-sim:api": "cp ./src/interface/ttk-thirdparty-sim-api.yaml ./docker-contract/ml-testing-toolkit/spec_files/api_definitions/thirdparty_simulator/api_spec.yaml",
"move:ttk-thirdparty:api": "cp ./src/interface/ttk-thirdparty-api.yaml ./docker-contract/ml-testing-toolkit/spec_files/api_definitions/thirdparty_pisp/api_spec.yaml",
"pretest": "npm run build",
"reseed:docker-contract": "echo \"seeding docker-contract environment\" && ./docker-contract/postman/scripts/_00_seed_all.sh",
"reseed:docker-local-old": "echo \"seeding docker-local environment (deprecated version)\" && ./docker-local/postman/scripts/_00_seed_all.sh",
"reseed:docker-local": "echo \"seeding docker-local environment\" && ml-bootstrap -c $PWD/docker-local/ml-bootstrap-config.json5",
"reseed:docker-live": "echo \"seeding docker-live environment\" && ./src/seed/cli.ts",
"test": "npm run test:unit",
"test:bdd": "jest --testMatch '**/test/step-definitions/**/*.step.ts'",
"test:contract": "jest --runInBand --testMatch '**/test/contract/**/*.(test|spec).ts'",
"test:coverage": "jest --coverage --coverageThreshold='{}'",
"test:coverage-check": "jest --coverage",
"test:e2e": "jest --runInBand --testMatch '**/test/e2e/**/*.(test|spec).ts'",
"test:junit": "jest --reporters=default --reporters=jest-junit",
"test:unit": "jest --testMatch '**/test/unit/**/*.(test|spec).ts'",
"validate:openapi:auth-service": "swagger-cli validate ./docker-local/auth-service/spec_files/api_definitions/thirdparty_pisp/api_spec.yaml",
"validate:openapi:dfsp": "swagger-cli validate ./src/interface/thirdparty-dfsp-api.yaml",
"validate:openapi:participant-list-service": "swagger-cli validate ./docker-local/participant-list-service/spec_files/api_definitions/thirdparty_pisp/api_spec.yaml",
"validate:openapi:pisp": "swagger-cli validate ./src/interface/thirdparty-pisp-api.yaml",
"wait-4-docker": "node ./scripts/_wait4_all.js",
"wait-4-docker-contract": "node ./scripts/_wait4_docker_contract.js",
"warning:thirdparty-sim:api": "sed -i '1s;^;# DO NOT EDIT THIS FILE DIRECTLY!!!! INSTEAD, EDIT src/interface/ttk-thirdparty-sim-api-template.yaml and run `npm run build:ttk-thirdparty-sim:api` TO UPDATE THIS FILE\\n;' ./docker-contract/ml-testing-toolkit/spec_files/api_definitions/thirdparty_simulator/api_spec.yaml",
"warning:thirdparty:api": "sed -i '1s;^;# DO NOT EDIT THIS FILE DIRECTLY!!!! INSTEAD, EDIT src/interface/ttk-thirdparty-api-template.yaml and run `npm run build:ttk-thirdparty:api` TO UPDATE THIS FILE\\n;' ./docker-contract/ml-testing-toolkit/spec_files/api_definitions/thirdparty_pisp/api_spec.yaml",
"watch": "tsc -w"
},
"husky": {
"hooks": {
"pre-commit": "npm run build:plantuml:diff && lint-staged && npm run test:unit",
"post-commit": "git update-index --again"
}
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mojaloop/pisp.git"
},
"keywords": [
"metrics",
"central",
"services"
],
"author": "lewisdaly",
"contributors": [
"Lewis Daly <[email protected]>",
"Paweł Marzec <[email protected]>"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/mojaloop/pisp/issues"
},
"homepage": "https://github.com/mojaloop/pisp#readme",
"dependencies": {
"@mojaloop/sdk-standard-components": "^17.0.4",
"ajv": "^8.11.0",
"atob": "^2.1.2",
"axios": "^0.27.2",
"btoa": "^1.2.1",
"cbor": "^8.1.0",
"chalk": "^5.0.1"
},
"devDependencies": {
"@mojaloop/api-snippets": "^14.0.0",
"@types/jest": "25.2.2",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "5.30.0",
"@typescript-eslint/parser": "5.30.0",
"eslint": "8.18.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-standard": "17.0.0",
"eslint-plugin-cucumber": "^2.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-n": "^15.2.3",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "4.1.0",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-standard": "4.1.0",
"got": "^12.1.0",
"husky": "^4.2.5",
"jest": "26.0.1",
"jest-cucumber": "^3.0.1",
"jest-junit": "14.0.0",
"lint-staged": "^13.0.3",
"ml-bootstrap": "0.3.29",
"newman": "^5.3.2",
"node-plantuml": "^0.9.0",
"plantuml-encoder": "^1.4.0",
"source-map-support": "0.5.21",
"svgo": "^2.8.0",
"swagger-cli": "^4.0.4",
"ts-jest": "^26.0.0",
"ts-node": "10.8.1",
"typescript": "4.7.4",
"uuid": "^8.3.2"
}
}