-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
56 lines (56 loc) · 3.53 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
{
"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",
"preoas:generate-postman-collection": "mkdirp ./test",
"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/** ./test/BAG-Bevragen-postman-collection.json ./code/**",
"specs:verify": "cucumber-js -f html:docs/features/test-result.html -f json:docs/features/test-result.json ./features/*.feature --tags \"not @not-testable\" --tags \"not @skip-verify\"",
"specs:report": "node generate-cucumber-report.js",
"test": "npm run specs:verify && npm run specs:report"
},
"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": {
"@cucumber/cucumber": "^9.1.2",
"@openapitools/openapi-generator-cli": "^2.5.2",
"@stoplight/spectral-cli": "^6.6.0",
"axios": "^1.6.0",
"chai": "^4.3.7",
"cucumber-html-reporter": "^6.0.0",
"mkdirp": "^3.0.1",
"mvn-dl": "^6.0.0",
"openapi-to-postmanv2": "^4.12.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"
}
}
}