This repository was archived by the owner on Jul 30, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
116 lines (116 loc) · 3.72 KB
/
Copy pathpackage.json
File metadata and controls
116 lines (116 loc) · 3.72 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
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
{
"name": "template-for-generator-templates",
"version": "0.0.1",
"description": "Template for generator templates to make it much easier to start writing your own generator template",
"main": "index.js",
"scripts": {
"test": "npm run test:template && npm run test:hooks && npm run test:filters && npm run test:components",
"test:template": "rimraf test/temp && jest --coverage -t 'templateGenerationResult'",
"test:hooks": "rimraf test/temp && jest --coverage -t 'generateExtraFormats'",
"test:filters": "rimraf test/temp && jest --coverage -t 'generateMermaidDiagram'",
"test:components": "rimraf test/temp && jest --coverage ./test/components",
"lint": "eslint --max-warnings 0 --fix --config .eslintrc .",
"generate:readme:toc": "markdown-toc -i README.md",
"generate:assets": "npm run generate:readme:toc",
"bump:version": "echo 'We do not trigger releases for this template. Normally this script should invoke \"npm --no-git-tag-version --allow-same-version version $VERSION\"'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/asyncapi/template-for-generator-templates.git"
},
"keywords": [
"asyncapi",
"generator",
"template"
],
"author": "Lukasz Gornicki <lpgornicki@gmail.com> (https://github.com/derberg/)",
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/asyncapi/template-for-generator-templates/issues"
},
"homepage": "https://github.com/asyncapi/template-for-generator-templates#readme",
"dependencies": {
"@asyncapi/generator-filters": "^2.1.0",
"@asyncapi/generator-hooks": "^0.1.0",
"@asyncapi/generator-react-sdk": "^1.1.2",
"puppeteer": "^19.8.5"
},
"generator": {
"renderer": "react",
"parameters": {
"asyncapiFileDir": {
"description": "Custom location of the AsyncAPI file that you provided as an input in generation. By default it is located in the root of the output directory"
},
"pdf": {
"description": "Set to `true` to get index.pdf generated next to your index.html",
"default": false
},
"png": {
"description": "Set to `true` to get index.png generated next to your index.html",
"default": false
},
"svg": {
"description": "Set to `true` to get index.svg generated next to your index.html",
"default": false
},
"maxTextSize": {
"description": "It is possible that in case of an extremely large AsyncAPI document default mermaid recommended text size will not be enough. Then you need to explicitly make it larger",
"default": 50000
}
},
"nonRenderableFiles": [
"style.css",
"sample.gif"
],
"generator": ">=1.3.0 <2.0.0",
"hooks": {
"@asyncapi/generator-hooks": "createAsyncapiFile"
}
},
"devDependencies": {
"@asyncapi/generator": "^3.2.0",
"@asyncapi/parser": "^3.6.0",
"@babel/preset-env": "^7.15.8",
"@babel/preset-react": "^7.14.5",
"eslint": "^8.38.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-security": "^1.7.1",
"eslint-plugin-sonarjs": "^0.19.0",
"jest": "^29.5.0",
"markdown-toc": "^1.2.0",
"rimraf": "^3.0.2"
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
[
"@babel/preset-react",
{
"runtime": "automatic"
}
]
]
},
"jest": {
"collectCoverageFrom": [
"{filters,hooks,components}/**/*.js",
"!hooks/generateExtraFormats.js"
],
"moduleFileExtensions": [
"js",
"json",
"jsx"
]
}
}