-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
48 lines (48 loc) · 3.06 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
{
"name": "haal-centraal-bag-bevragen",
"version": "1.0.0",
"description": "BAG Huidige bevragingen is een Haal Centraal API voor het zoeken en raadplegen van gegevens in de basisregistratie Adressen en Gebouwen voor alle binnengemeentelijke afnemers in NL, maar ook voor waterschappen, belastingsamenwerkingen en andere overheden.",
"main": "index.js",
"directories": {
"doc": "docs",
"test": "test"
},
"scripts": {
"oas:generate-client": "openapi-generator-cli generate -i ./specificatie/genereervariant/openapi.yaml --global-property=modelTests=false,apiTests=false,modelDocs=false,apiDocs=false",
"oas:generate-java-client": "npm run oas:generate-client -- -o ./code/java -g java --additional-properties=dateLibrary=java8,java8=true,optionalProjectFile=false,optionalAssemblyInfo=false",
"oas:generate-netcore-client": "npm run oas:generate-client -- -o ./code/netcore -g csharp-netcore --additional-properties=optionalProjectFile=false,optionalAssemblyInfo=false",
"oas:generate-net-client": "npm run oas:generate-client -- -o ./code/net -g csharp --additional-properties=optionalProjectFile=false,optionalAssemblyInfo=false",
"oas:generate-python-client": "npm run oas:generate-client -- -o ./code/python -g python --additional-properties=optionalProjectFile=false,optionalAssemblyInfo=false",
"oas:generate-postman-collection": "openapi2postmanv2 -s ./specificatie/genereervariant/openapi.yaml -o ./test/BAG-Bevragen-postman-collection.json --pretty",
"oas:lint": "spectral lint ./specificatie/openapi.yaml",
"oas:lint-genereervariant": "spectral lint ./specificatie/genereervariant/openapi.yaml",
"preoas:resolve": "mvn-dl io.swagger.codegen.v3:swagger-codegen-cli:3.0.19 -f swagger-codegen-cli.jar",
"oas:resolve": "java -jar swagger-codegen-cli.jar generate -i ./specificatie/openapi.yaml -l openapi-yaml -o ./specificatie/genereervariant && java -jar swagger-codegen-cli.jar generate -i ./specificatie/openapi.yaml -l openapi -o ./specificatie/genereervariant",
"postoas:resolve": "rm swagger-codegen-cli.jar",
"unstage-generated": "git reset HEAD ./specificatie/genereervariant/openapi.* ./test/BAG-bevragen-postman-collection.json ./code/**",
"rollback-generated": "git checkout ./specificatie/genereervariant/openapi.* ./test/BAG-bevragen-postman-collection.json ./code/**"
},
"repository": {
"type": "git",
"url": "git+https://github.com/VNG-Realisatie/Haal-Centraal-BAG-bevragen.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/VNG-Realisatie/Haal-Centraal-BAG-bevragen/issues"
},
"homepage": "https://github.com/VNG-Realisatie/Haal-Centraal-BAG-bevragen#readme",
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.3.6",
"@stoplight/spectral": "^5.9.1",
"husky": "^4.3.8",
"mvn-dl": "^5.1.1",
"openapi-to-postmanv2": "^2.8.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run oas:lint && npm run oas:resolve && npm run oas:lint-genereervariant && npm run unstage-generated",
"post-commit": "npm run rollback-generated"
}
}
}