-
-
Notifications
You must be signed in to change notification settings - Fork 184
/
package.json
138 lines (138 loc) · 8.21 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"name": "@asyncapi/modelina",
"version": "3.8.0",
"description": "Library for generating data models based on inputs such as AsyncAPI, OpenAPI, or JSON Schema documents",
"license": "Apache-2.0",
"homepage": "https://www.modelina.org",
"bugs": {
"url": "https://github.com/asyncapi/modelina/issues"
},
"engines": {
"node": ">=18"
},
"repository": {
"type": "git",
"url": "git://github.com/asyncapi/modelina.git"
},
"keywords": [
"asyncapi",
"modelina",
"model-generation",
"generator",
"model",
"sdk"
],
"author": {
"name": "The Modelina codeowners and contributors"
},
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/types/index.d.ts",
"sideEffects": false,
"files": [
"/lib",
"./README.md",
"./LICENSE"
],
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^11.1.0",
"@apidevtools/swagger-parser": "^10.1.0",
"@asyncapi/multi-parser": "^2.1.1",
"@asyncapi/parser": "^3.1.0",
"@swc/core": "^1.3.5",
"@swc/jest": "^0.2.23",
"@types/node": "^20.3.3",
"alterschema": "^1.1.2",
"change-case": "^4.1.2",
"cross-env": "^7.0.3",
"openapi-types": "9.3.0",
"typescript-json-schema": "^0.58.1"
},
"devDependencies": {
"@asyncapi/parserV1": "npm:@asyncapi/parser@^1.17.2",
"@types/jest": "^27.0.2",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
"ajv": "^8.6.3",
"concurrently": "^7.5.0",
"eslint": "^8.51.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-github": "^4.10.1",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-security": "^1.7.1",
"eslint-plugin-sonarjs": "^0.19.0",
"eslint-plugin-unused-imports": "^3.0.0",
"jest": "^27.2.5",
"markdown-toc": "^1.2.0",
"ts-jest": "^27.0.5",
"ts-node": "^10.3.0",
"typedoc": "^0.24.8",
"typescript": "4.9.5"
},
"scripts": {
"build": "tsc",
"build:prod": "npm run build:cjs && npm run build:esm && npm run build:types",
"build:cjs": "tsc",
"build:esm": "tsc --project tsconfig.json --module ESNext --outDir ./lib/esm",
"build:types": "tsc --project tsconfig.json --declaration --emitDeclarationOnly --declarationMap --outDir ./lib/types",
"docker:build": "docker compose run --build modelina npm install",
"docker:test": "docker compose run modelina npm run test",
"docker:test:blackbox": "docker compose run modelina npm run test:blackbox",
"test": "npm run test:library && npm run test:examples",
"test:update": "npm run test:library -- -u && npm run test:examples:update",
"test:library": "cross-env CI=true jest --coverage --testPathIgnorePatterns ./test/blackbox --testPathIgnorePatterns ./modelina-website --testPathIgnorePatterns ./test/runtime --testPathIgnorePatterns ./examples",
"test:examples": "npm run test:examples:regular && npm run test:examples:websites",
"test:examples:update": "npm run test:examples:regular -- -u && npm run test:examples:websites -- -u",
"test:examples:regular": "cross-env CI=true jest ./examples --testPathIgnorePatterns ./examples/integrate-with-react --testPathIgnorePatterns ./examples/integrate-with-next",
"test:examples:websites": "npm run test:examples:react && npm run test:examples:next",
"test:examples:websites:update": "npm run test:examples:react -- -u && npm run test:examples:next -- -u",
"test:examples:react": "cd ./examples/integrate-with-react && npm i && npm run test",
"test:examples:next": "cd ./examples/integrate-with-next && npm i && npm run test",
"test:blackbox": "concurrently --group -n csharp,go,java,javascript,php,python,rust,typescript,kotlin,cplusplus \"npm run test:blackbox:csharp\" \"npm run test:blackbox:go\" \"npm run test:blackbox:java\" \"npm run test:blackbox:javascript\" \"npm run test:blackbox:php\" \"npm run test:blackbox:python\" \"npm run test:blackbox:rust\" \"npm run test:blackbox:typescript\" \"npm run test:blackbox:kotlin\" \"npm run test:blackbox:cplusplus\"",
"test:blackbox:csharp": "cross-env CI=true jest ./test/blackbox/blackbox-csharp.spec.ts",
"test:blackbox:go": "cross-env CI=true jest ./test/blackbox/blackbox-go.spec.ts",
"test:blackbox:javascript": "cross-env CI=true jest ./test/blackbox/blackbox-javascript.spec.ts",
"test:blackbox:php": "cross-env CI=true jest ./test/blackbox/blackbox-php.spec.ts",
"test:blackbox:python": "cross-env CI=true jest ./test/blackbox/blackbox-python.spec.ts",
"test:blackbox:rust": "cross-env CI=true jest ./test/blackbox/blackbox-rust.spec.ts",
"test:blackbox:typescript": "cross-env CI=true jest ./test/blackbox/blackbox-typescript.spec.ts",
"test:blackbox:kotlin": "cross-env CI=true jest ./test/blackbox/blackbox-kotlin.spec.ts",
"test:blackbox:cplusplus": "cross-env CI=true jest ./test/blackbox/blackbox-cplusplus.spec.ts",
"test:blackbox:java": "cross-env CI=true jest ./test/blackbox/blackbox-java.spec.ts",
"test:runtime:java": "cross-env CI=true jest ./test/runtime/runtime-java.spec.ts",
"test:runtime:python": "cross-env CI=true jest ./test/runtime/runtime-python.spec.ts",
"generate:runtime:python": "cross-env CI=true ts-node ./test/runtime/runtime-python.ts",
"generate:runtime:java": "cross-env CI=true ts-node ./test/runtime/runtime-java.ts",
"test:runtime:go": "cross-env CI=true jest ./test/runtime/runtime-go.spec.ts",
"generate:runtime:go": "cross-env CI=true ts-node ./test/runtime/runtime-go.ts",
"test:runtime:cplusplus": "cross-env CI=true jest ./test/runtime/runtime-cplusplus.spec.ts",
"generate:runtime:cplusplus": "cross-env CI=true ts-node ./test/runtime/runtime-cplusplus.ts",
"test:runtime:kotlin": "cross-env CI=true jest ./test/runtime/runtime-kotlin.spec.ts",
"generate:runtime:kotlin": "cross-env CI=true ts-node ./test/runtime/runtime-kotlin.ts",
"test:runtime:rust": "cross-env CI=true jest ./test/runtime/runtime-rust.spec.ts",
"generate:runtime:rust": "cross-env CI=true ts-node ./test/runtime/runtime-rust.ts",
"test:runtime:php": "cross-env CI=true jest ./test/runtime/runtime-php.spec.ts",
"generate:runtime:php": "cross-env CI=true ts-node ./test/runtime/runtime-php.ts",
"test:runtime:typescript": "cd ./test/runtime/runtime-typescript && npm i && npm run test",
"generate:runtime:typescript": "cross-env CI=true ts-node ./test/runtime/runtime-typescript.ts",
"test:runtime:csharp": "cross-env CI=true jest ./test/runtime/runtime-csharp.spec.ts",
"generate:runtime:csharp": "cross-env CI=true ts-node ./test/runtime/runtime-csharp.ts",
"test:runtime:scala": "cross-env CI=true jest ./test/runtime/runtime-scala.spec.ts",
"generate:runtime:scala": "cross-env CI=true ts-node ./test/runtime/runtime-scala.ts",
"test:watch": "jest --watch",
"docs": "npm run docs:api",
"docs:api": "typedoc src/index.ts --out ./modelina-website/public/apidocs/generated --name Modelina",
"lint": "eslint --max-warnings 0 --config .eslintrc .",
"lint:fix": "eslint --max-warnings 0 --config .eslintrc . --fix",
"release": "semantic-release",
"generate:readme:toc": "markdown-toc -i README.md && markdown-toc -i ./docs/other-tools.md && markdown-toc -i ./docs/languages/Scala.md && markdown-toc -i ./docs/languages/Php.md && markdown-toc -i ./docs/languages/Cplusplus.md && markdown-toc -i ./examples/README.md && markdown-toc -i ./docs/languages/Python.md && markdown-toc -i ./docs/usage.md && markdown-toc -i ./docs/integration.md && markdown-toc -i ./docs/advanced.md && markdown-toc -i ./docs/languages/Dart.md && markdown-toc -i ./docs/languages/TypeScript.md && markdown-toc -i ./docs/languages/Java.md && markdown-toc -i ./docs/languages/JavaScript.md && markdown-toc -i ./docs/languages/Csharp.md && markdown-toc -i ./docs/README.md && markdown-toc -i ./docs/generators.md && markdown-toc -i ./docs/presets.md",
"generate:assets": "npm run build:prod && npm run docs && npm run generate:readme:toc && npm run format",
"bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION",
"prepublishOnly": "npm run build:prod && npm run generate:readme:toc && npm run format",
"format": "prettier --config .prettierrc \"./**/*.ts\" --write"
},
"publishConfig": {
"access": "public"
}
}