-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
87 lines (87 loc) · 2.66 KB
/
package.json
File metadata and controls
87 lines (87 loc) · 2.66 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
{
"name": "asyncapi-rust-ws-template",
"version": "0.3.2",
"description": "Rust WebSocket client template for AsyncAPI Generator",
"author": "Sho Kaneko <kanekoshoyu@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/kanekoshoyu/asyncapi-rust-websocket-template.git"
},
"keywords": [
"asyncapi",
"generator",
"rust",
"websocket",
"tokio",
"template"
],
"main": "index.js",
"scripts": {
"prepare": "tsc",
"release": "npm publish",
"test_v2": "npm run clear_template && npm run clear_output_v2 && npm run prepare && npm run render_v2 && npm run cargo_check_v2",
"test_v3": "npm run clear_template && npm run clear_output_v3 && npm run prepare && npm run render_v3 && npm run cargo_check_v3",
"render_v2": "ag test/input/v2.yaml ./ -o test/output/v2 -p render=true -p exchange=Bitwyre",
"render_v3": "ag test/input/v3.yaml ./ -o test/output/v3 -p render=true, -p exchange=Hyperliquid",
"clear_template": "rm -rf template",
"clear_output": "rm -rf test/output",
"clear_output_v2": "rm -rf test/output/v2",
"clear_output_v3": "rm -rf test/output/v3",
"cargo_check_v2": "cd test/output/v2 && cargo clippy && cargo fmt && cargo test",
"cargo_check_v3": "cd test/output/v3 && cargo clippy && cargo fmt && cargo test",
"lint": "echo \"No linter specified yet\"",
"bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION"
},
"files": [
"template",
"hooks"
],
"dependencies": {
"@asyncapi/generator-filters": "2.1.0",
"@asyncapi/generator-hooks": "0.1.0",
"@asyncapi/generator-react-sdk": "1.1.2",
"@asyncapi/modelina": "3.8.0",
"node-fetch": "3.3.2",
"punycode2": "^1.0.1",
"react": "^18.3.1"
},
"generator": {
"renderer": "react",
"apiVersion": "v3",
"generator": ">=1.3.0 <3.0.0",
"parameters": {
"exchange": {
"description": "name of the exchange, in snake case",
"required": true
},
"validate": {
"description": "validate a file: [true: default, false]",
"default": true
},
"render": {
"description": "render websocket client: [true: default, false]",
"default": true
},
"library": {
"description": "type of websocket library to render: [tokio-tungstenite, async-tungstenite]",
"default": "tokio-tungstenite"
}
},
"nonRenderableFiles": [],
"filters": [],
"hooks": {}
},
"devDependencies": {
"@eslint/js": "^9.15.0",
"@types/node": "^22.7.4",
"@types/react": "^18.3.10",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.10.0",
"eslint": "^9.15.0",
"eslint-plugin-react": "^7.37.2",
"globals": "^15.12.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.15.0"
}
}