-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
package.json
135 lines (135 loc) · 4.43 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
{
"name": "@asyncapi/html-template",
"version": "3.1.0",
"description": "HTML template for the AsyncAPI generator.",
"keywords": [
"asyncapi",
"generator",
"html",
"template"
],
"author": "Fran Mendez <[email protected]> (fmvilas.com)",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/asyncapi/html-template.git"
},
"bugs": {
"url": "https://github.com/asyncapi/html-template/issues"
},
"homepage": "https://github.com/asyncapi/html-template#readme",
"scripts": {
"lint": "echo \"No linter specified yet\"",
"test:library": "jest --coverage",
"test:generator": "npm run test:generator:v2 && npm run test:generator:v3",
"test:generator:v2": "asyncapi generate fromTemplate ./test/spec/asyncapi_v2.yml ./ -o test/output --force-write --use-new-generator",
"test:generator:v3": "asyncapi generate fromTemplate ./test/spec/asyncapi_v3.yml ./ -o test/output --force-write --use-new-generator",
"develop": "npm run generate:assets && npm run test:generator:v2 -- --watch-template",
"develop:install": " npm run develop -- --install",
"generate:assets": "npm run copy:sources && npm run generate:readme:toc",
"generate:readme:toc": "markdown-toc -i README.md",
"bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION",
"copy:sources": "node ./scripts/copy-sources.js",
"prepublishOnly": "npm run generate:assets && npm run transpile",
"transpile": "node ./scripts/transpile.js",
"test": "npm run test:library && npm run test:generator"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@asyncapi/generator-react-sdk": "^1.1.2",
"@asyncapi/parser": "^3.1.0",
"@asyncapi/react-component": "^1.2.13",
"highlight.js": "10.7.3",
"puppeteer": "^14.1.0",
"react-dom": "^17.0.2",
"rimraf": "^3.0.2",
"sync-fetch": "^0.5.2"
},
"devDependencies": {
"@asyncapi/cli": "^2.12.1",
"cross-env": "^7.0.3",
"jest": "^26.6.3",
"jest-esm-transformer": "^1.0.0",
"markdown-toc": "^1.2.0"
},
"generator": {
"renderer": "react",
"apiVersion": "v3",
"generator": ">=2.0.0 <3.0.0",
"parameters": {
"sidebarOrganization": {
"description": "Defines how the sidebar should be organized. 'byTags' to categorize operations by tags in the root of the document, `byTagsNoRoot` does the same but for pub/sub tags.",
"required": false
},
"baseHref": {
"description": "Sets the base URL for links and forms.",
"required": false
},
"version": {
"description": "Override the version of your application provided under `info.version` location in the specification file.",
"required": false
},
"singleFile": {
"description": "If set this parameter to true generate single html file with scripts and styles inside",
"required": false,
"default": false
},
"outFilename": {
"description": "The name of the output HTML file",
"default": "index.html",
"required": false
},
"pdf": {
"description": "Set to `true` to get index.pdf generated next to your index.html",
"default": false
},
"pdfTimeout": {
"description": "The timeout (in ms) used to generate the pdf",
"default": 30000,
"required": false
},
"favicon": {
"description": "URL/Path of the favicon",
"default": "",
"required": false
},
"config": {
"description": "Stringified JSON or a path to a JSON file to override the default React component config. The config override is merged with the default config using the [JSON Merge Patch](https://tools.ietf.org/html/rfc7386) algorithm.",
"default": "",
"required": false
}
},
"nonRenderableFiles": [
"js/asyncapi-ui.min.js",
"css/asyncapi.min.css",
"css/global.min.css"
]
},
"babel": {
"presets": [
"@babel/preset-env",
[
"@babel/preset-react",
{
"runtime": "automatic"
}
]
]
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"jsx"
],
"setupFilesAfterEnv": [
"./test/setupTests.js"
],
"moduleNameMapper": {
"^nimma/legacy$": "<rootDir>/node_modules/nimma/dist/legacy/cjs/index.js",
"^nimma/(.*)": "<rootDir>/node_modules/nimma/dist/cjs/$1"
}
}
}