-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
91 lines (91 loc) · 3.77 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
{
"name": "@pagopa-dev/juggler",
"version": "0.0.0",
"description": "Are you looking for a quick way to mock some endpoints given an open API? The Juggler can do what you are looking for.",
"main": "dist/main.js",
"config": {
"codegen": {
"targetDir": "./src/adapters/express/generated/apicodec"
},
"openapi": {
"pn": {
"deliveryURL": "https://github.com/pagopa/pn-delivery/raw/d499410/docs/openapi/api-external-b2b-pa-v1.yaml",
"streamURL": "https://github.com/pagopa/pn-delivery-push/raw/a886f32/docs/openapi/api-external-b2b-webhook-v1.yaml"
},
"io": {
"apiPublicURL": "https://raw.githubusercontent.com/pagopa/io-functions-services/50a116f/openapi/index.yaml"
},
"iosign": {
"issuerURL": "https://github.com/pagopa/io-sign/raw/6a3d7b6/apps/io-func-sign-issuer/openapi.yaml"
},
"pagoPA": {
"debtPositionsURL": "https://github.com/pagopa/pagopa-api/raw/f25f9becb7a784a6fb136a1ac7a0feca1fcbd3d7/api-definitions/db_positions/api.yaml"
},
"cStar": {
"idPayURL": "https://raw.githubusercontent.com/pagopa/cstar-infrastructure/ad538ca81f397f4804b2e6ea15d3b03c89260e4f/src/domains/idpay-app/api/idpay_appio_full/openapi.appio.full.yml"
}
}
},
"scripts": {
"prepare": "husky install",
"postinstall": "next telemetry disable",
"generate:api": "shx rm -rf $npm_package_config_codegen_targetDir && shx mkdir -p $npm_package_config_codegen_targetDir && gen-api-models --api-spec ./docs/openapi/juggler.yaml --no-strict --out-dir $npm_package_config_codegen_targetDir",
"clean": "tsc --build --clean",
"compile": "tsc",
"dev": "npm run generate:api && npm run compile && node -r dotenv/config dist/main.js dotenv_config_path=.env.default",
"build": "npm run compile && next build",
"lint": "next lint",
"format": "prettier --write \"./**/*.ts\"",
"dev:pn": "OPENAPI_URL=$npm_package_config_openapi_pn_deliveryURL npm run dev",
"dev:io": "OPENAPI_URL=$npm_package_config_openapi_io_apiPublicURL npm run dev",
"dev:iosign": "OPENAPI_URL=$npm_package_config_openapi_iosign_issuerURL npm run dev",
"dev:pagoPA": "OPENAPI_URL=$npm_package_config_openapi_pagoPA_debtPositionsURL npm run dev",
"dev:idpay": "OPENAPI_URL=$npm_package_config_openapi_cStar_idPayURL npm run dev",
"dependency:check": "dependency-check package.json --no-dev --missing ./dist/**/*.js",
"test": "DOTENV_CONFIG_PATH=./.env.default jest --setupFiles dotenv/config -i",
"version": "changeset version && npm install",
"changeset": "changeset"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@pagopa/eslint-config": "^3.0.0",
"@pagopa/openapi-codegen-ts": "^12.1.2",
"@types/express": "^4.17.16",
"@types/jest": "^29.4.0",
"@types/node": "^18.15.11",
"@types/react": "18.0.28",
"@types/swagger-ui-react": "^4.11.0",
"concurrently": "^7.6.0",
"dependency-check": "^4.1.0",
"dotenv": "^16.0.3",
"eslint": "^8.33.0",
"eslint-config-next": "^13.4.6",
"husky": "^8.0.0",
"jest": "^29.4.1",
"jest-mock-extended": "^3.0.1",
"prettier": "^2.8.3",
"shx": "^0.3.4",
"ts-jest": "^29.0.5",
"typescript": "^4.9.4"
},
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@mui/material": "^5.11.11",
"@pagopa/ts-commons": "^10.14.2",
"@stoplight/prism-cli": "^4.10.5",
"@stoplight/prism-http": "^4.10.5",
"@textea/json-viewer": "^1.24.5",
"express": "^4.18.2",
"fp-ts": "^2.13.1",
"io-ts": "^2.2.20",
"io-ts-types": "^0.5.19",
"monocle-ts": "^2.3.13",
"newtype-ts": "^0.3.5",
"next": "^13.1.6",
"pino": "^8.8.0",
"swagger-ui-react": "^4.18.0",
"swr": "^2.0.4"
}
}