-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
68 lines (68 loc) · 5.9 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
{
"name": "voucherify-openapi",
"version": "1.0.0",
"engines": {
"node": "^16 || ^18"
},
"scripts": {
"build-update-md-tables-from-openapi": "ts-node ./scripts/build-update-md-tables-from-openapi.ts",
"remove-stoplight-tags-from-openapi": "ts-node ./scripts/remove-stoplight-tags-from-openapi.ts",
"prepare-open-api-for-sdk": "ts-node ./scripts/prepare-open-api-for-sdk/index.ts",
"prepare-open-api-for-all-published-sdks": "npm run prepare-open-api-for-sdk -- --language=ruby && npm run prepare-open-api-for-sdk -- --language=java && npm run prepare-open-api-for-sdk -- --language=php && npm run prepare-open-api-for-sdk -- --language=python",
"create-clean-version": "ts-node scripts/build-update-md-tables-from-openapi.ts && ts-node ./scripts/create-clean-version.ts",
"update-webhooks-documentation-titles": "ts-node ./scripts/update-webhooks-documentation-titles.ts",
"fix-schemas-with-refs": "ts-node ./scripts/fix-schemas-with-refs.ts",
"create-open-api-version-to-upload": "ts-node ./scripts/create-open-api-version-to-upload.ts",
"readme-upload-missing-images": "ts-node ./scripts/readme-upload-missing-images.ts",
"count-important-statistics-about-openapi": "ts-node ./scripts/count-important-statistics-about-openapi.ts",
"upload-webhook-definitions": "ts-node ./scripts/upload-webhook-definitions/run.ts",
"build-production-openapi": "ts-node ./scripts/build-production-openapi.ts",
"fix-zero-level-schemas": "ts-node ./scripts/fix-zero-level-schemas.ts",
"generate-endpoints-coverage-doc": "ts-node ./scripts/generate-endpoints-coverage-doc.ts",
"generate-sdk-ruby": "npm run generate-endpoints-coverage-doc -- --generateFor=ruby;rm -r ./sdks/ruby/lib;rm -r ./sdks/ruby/docs;npm run prepare-open-api-for-sdk -- --language=ruby;java -jar openapi-generator-jar/openapi-generator-cli-7.0.1.jar generate -i ./reference/readonly-sdks/ruby/OpenAPI.json -g ruby -o ./sdks/ruby -t ./mustache-templates/ruby-client --additional-properties=gemName=VoucherifySdk,gemVersion=8.0.2; rm -rf ./sdks/ruby/spec; ts-node scripts/update-ruby-dockefile-sdk-version.ts",
"generate-sdk-java": "npm run generate-endpoints-coverage-doc -- --generateFor=java;rm -r ./sdks/java/src/main;rm -r ./sdks/java/docs;rm -r ./sdks/java/api;npm run prepare-open-api-for-sdk -- --language=java;java -jar openapi-generator-jar/openapi-generator-cli-7.1.0.jar generate -i ./reference/readonly-sdks/java/OpenAPI.json -g java -o ./sdks/java -t mustache-templates/java --additional-properties=VoucherifySdk,artifactVersion=16.0.2,testOutput=./tmp/java/generated-tests,artifactId=voucherify-java-sdk,groupId=io.voucherify.client,apiPackage=io.voucherify.client.api,modelPackage=io.voucherify.client.model,invokerPackage=io.voucherify.client; rm -rf ./tmp/java/generated-tests;",
"generate-sdk-php": "npm run generate-endpoints-coverage-doc -- --generateFor=php;rm -r ./sdks/php/src;npm run prepare-open-api-for-sdk -- --language=php;java -jar openapi-generator-jar/openapi-generator-cli-7.0.1.jar generate -i ./reference/readonly-sdks/php/OpenAPI.json -g php-nextgen -o ./sdks/php -t ./mustache-templates/php-nextgen --additional-properties=variableNamingConvention=camelCase,developerOrganization=voucherify,developerOrganizationUrl=https://www.voucherify.io/,composerPackageName=rspective/voucherify,artifactVersion=5.0.2",
"generate-sdk-python": "npm run generate-endpoints-coverage-doc -- --generateFor=python;rm -r ./sdks/python/voucherify_client;npm run prepare-open-api-for-sdk -- --language=python;java -jar openapi-generator-jar/openapi-generator-cli-7.8.0.jar generate -i ./reference/readonly-sdks/python/OpenAPI.json -g python -o ./sdks/python -t ./mustache-templates/python --additional-properties=packageName=voucherify,packageVersion=5.0.2,packageUrl=https://voucherify.io/,projectName=voucherify",
"generate-sdks": "concurrently \"npm run generate-sdk-ruby\" \"npm run generate-sdk-java\" \"npm run generate-sdk-php\" \"npm run generate-sdk-python\"",
"test-sdks": "concurrently \"cd ./sdks/ruby && docker build -t ruby .;docker run --rm ruby\" \"cd ./sdks/java && docker build -t java .;docker run --rm java\" \"cd ./sdks/php && docker build -t php .;docker run --rm php\" \"cd ./sdks/python && docker build -t python .;docker run --rm -v $(pwd):/app python\"",
"test-python-sdk": "cd ./sdks/python && docker build -t python .;docker run --rm -v $(pwd):/app python; cd ../..",
"test-php-sdk": "cd ./sdks/php && docker build -t php .;docker run --rm php; cd ../..",
"test-java-sdk": "cd ./sdks/java && docker build --no-cache -t java .; cd ../..",
"test-ruby-sdk": "cd ./sdks/ruby && docker build --no-cache -t ruby . && docker run --rm ruby; cd ../..",
"test": "jest",
"pre-commit": "npm run generate-endpoints-coverage-doc -- --generateFor=default && npm run fix-schemas-with-refs && npm run create-open-api-version-to-upload && npm run build-update-md-tables-from-openapi && npm run prepare-open-api-for-all-published-sdks && npm run build-production-openapi",
"validate-openapi": "npx @openapitools/openapi-generator-cli validate -i ./production/readOnly-openAPI.json && npx @openapitools/openapi-generator-cli validate -i ./reference/OpenAPIWebhooks.json"
},
"dependencies": {
"axios": "1.6.3",
"colors": "1.1.0",
"concurrently": "8.2.2",
"dotenv": "16.3.1",
"husky": "~3.0.4",
"lodash": "4.17.21",
"markdown-it": "13.0.2",
"markdown-table": "3.0.3",
"minimist": "1.2.8",
"node-fetch": "2.7.0",
"prettier": "3.1.1",
"rdme": "8.6.6",
"ts-node": "10.9.2",
"yup": "1.3.3"
},
"husky": {
"hooks": {
"pre-commit": "npm run pre-commit"
}
},
"devDependencies": {
"@jest/globals": "29.7.0",
"@openapitools/openapi-generator-cli": "2.7.0",
"@types/colors": "^1.2.1",
"@types/jest": "29.5.11",
"@types/lodash": "4.14.202",
"@types/minimist": "1.2.5",
"@types/node": "20.7.0",
"jest": "29.7.0",
"ts-jest": "29.1.1"
}
}