forked from oazapfts/oazapfts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
34 lines (34 loc) · 1.46 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
{
"name": "@oazapfts/project",
"private": true,
"workspaces": [
"packages/codegen",
"packages/runtime"
],
"type": "module",
"version": "0.0.0-development",
"description": "OpenApi TypeScript client generator",
"scripts": {
"build": "npm run build -w oazapfts && npm run build -w @oazapfts/runtime",
"test": "npm run test:unit -- --run && npm run test:e2e",
"lint": "prettier --check .",
"test:unit": "cd packages && vitest",
"test:e2e": "npm run generate-demo && with-server 'cd demo && vitest --run'",
"start": "open-api-mocker -p $PORT -s demo/petstore.json",
"generate-demo": "npm run prepare && oazapfts ./demo/petstore.json ./demo/api.ts && oazapfts ./demo/petstore.json --mergeReadWriteOnly ./demo/mergedReadWriteApi.ts && oazapfts --optimistic ./demo/petstore.json ./demo/optimisticApi.ts && oazapfts --useEnumType ./demo/petstore.json ./demo/enumApi.ts && oazapfts --argumentStyle=object ./demo/petstore.json ./demo/objectStyleArgument.ts && prettier -w demo",
"prepare": "npm run build && ln -sf $(pwd)/packages/codegen/dist/cli.js $(pwd)/node_modules/.bin/oazapfts"
},
"license": "MIT",
"repository": "oazapfts/oazapfts",
"devDependencies": {
"@ts-morph/bootstrap": "^0.22.0",
"@types/node": "^20.11.24",
"open-api-mocker": "^2.0.0",
"openapi-types": "^12.1.3",
"prettier": "^3.2.5",
"vite": "^5.1.4",
"vite-plugin-dts": "^3.7.3",
"vitest": "^1.3.1",
"with-server": "^2.1.0"
}
}