-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
61 lines (61 loc) · 3.34 KB
/
package.json
File metadata and controls
61 lines (61 loc) · 3.34 KB
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
{
"name": "openapi-toolkit",
"version": "2.4.7",
"description": "generation of API client libraries (SDK generation)",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"author": "Bar Nuri",
"license": "ISC",
"homepage": "https://github.com/barnuri/openapi-toolkit",
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"repository": {
"type": "git",
"url": "https://github.com/barnuri/openapi-toolkit"
},
"bin": {
"openapi-toolkit": "./dist/cli-generate.js"
},
"files": [
"dist"
],
"scripts": {
"start": "nodemon",
"build": "tsc",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"preupload": "rimraf dist && npm run build && git push",
"upload": "npm publish",
"postupload": "npm version patch && git push",
"test:typescript-models": "npm run build && cross-env-shell \"node ./dist/cli-generate.js -i $OPENAPI_TOOLKIT_TESTFILE -g typescript-axios -o ./test-typescript-models --modelsOnly true && tsc --build tsconfig-test.json\"",
"test:typescript-axios": "npm run build && cross-env-shell \"node ./dist/cli-generate.js -i $OPENAPI_TOOLKIT_TESTFILE -g typescript-axios -o ./test-typescript-axios && tsc --build tsconfig-test.json\"",
"test:typescript-react-query": "npm run build && cross-env-shell \"node ./dist/cli-generate.js -i $OPENAPI_TOOLKIT_TESTFILE -g typescript-react-query -o ./test-typescript-react-query && tsc --build tsconfig-test.json\"",
"test:csharp": "npm run build && cross-env-shell \"node ./dist/cli-generate.js -i $OPENAPI_TOOLKIT_TESTFILE -g c# -o ./test-csharp --modelNamePrefix My\" && cpy ./.github/dotnet-test.csproj ./test-csharp --flat --rename=test-csharp.csproj && dotnet build ./test-csharp/test-csharp.csproj -clp:ErrorsOnly",
"test:csharp2": "npm run build && cross-env-shell \"node ./dist/cli-generate.js -i $OPENAPI_TOOLKIT_TESTFILE -g c# -o ./test-csharp2 --disableNullable true --modelNamePrefix My\" && cpy ./.github/dotnet-test2.csproj ./test-csharp2 --flat --rename=test-csharp2.csproj && dotnet build ./test-csharp2/test-csharp2.csproj -clp:ErrorsOnly",
"test:python": "npm run build && cross-env-shell \"node ./dist/cli-generate.js -i $OPENAPI_TOOLKIT_TESTFILE -g python -o ./test-python --modelNamePrefix My --modelNameSuffix .dto.test\" && python -m pylint --errors-only ./test-python",
"test:go": "npm run build && cross-env-shell \"node ./dist/cli-generate.js -i $OPENAPI_TOOLKIT_TESTFILE -g go -o ./test-go\"",
"test:go-server": "npm run build && cross-env-shell \"node ./dist/cli-generate.js -i $OPENAPI_TOOLKIT_TESTFILE -g go -o ./test-go-server -t server\"",
"upgradeDep": "npm-check-updates -u"
},
"dependencies": {
"axios": "^1.7.7",
"colors-ext": "^1.0.3",
"jsonpath-plus": "^10.0.0",
"rimraf": "^6.0.1",
"swagger2openapi": "^7.0.8",
"tslib": "^2.7.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/jsonpath": "^0.2.4",
"@types/node": "^22.7.5",
"@types/yargs": "^17.0.33",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"nodemon": "^3.1.7",
"npm-check-updates": "^17.1.3",
"prettier": "^3.3.3",
"react-query": "^3.39.3",
"typescript": "^5.6.3"
}
}