-
-
Notifications
You must be signed in to change notification settings - Fork 164
/
package.json
176 lines (176 loc) · 7.47 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"name": "@asyncapi/cli",
"description": "All in one CLI for all AsyncAPI tools",
"version": "2.11.1",
"author": "@asyncapi",
"bin": {
"asyncapi": "./bin/run_bin"
},
"bugs": "https://github.com/asyncapi/cli/issues",
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.23",
"@asyncapi/bundler": "^0.6.4",
"@asyncapi/converter": "^1.6.2",
"@asyncapi/diff": "^0.4.1",
"@asyncapi/generator": "^1.17.25",
"@asyncapi/modelina-cli": "^4.0.0-next.48",
"@asyncapi/openapi-schema-parser": "^3.0.24",
"@asyncapi/optimizer": "^1.0.4",
"@asyncapi/parser": "^3.3.0",
"@asyncapi/protobuf-schema-parser": "^3.2.15",
"@asyncapi/raml-dt-schema-parser": "^4.0.24",
"@asyncapi/studio": "^0.20.0",
"@clack/prompts": "^0.7.0",
"@oclif/core": "^4.0.28",
"@smoya/asyncapi-adoption-metrics": "^2.4.9",
"@stoplight/spectral-cli": "6.9.0",
"chalk": "^4.1.0",
"chokidar": "^3.5.2",
"fast-levenshtein": "^3.0.0",
"fs-extra": "^11.1.0",
"generator-v2": "npm:@asyncapi/generator@^2.4.1",
"inquirer": "^8.2.0",
"js-yaml": "^4.1.0",
"lodash.template": "^4.4.0",
"node-fetch": "^2.0.0",
"oclif": "^4.2.0",
"open": "^8.4.0",
"picocolors": "^1.0.0",
"reflect-metadata": "^0.1.13",
"serve-handler": "^6.1.3",
"strip-ansi": "^6.0.0",
"unzipper": "^0.10.11",
"uuid": "^9.0.1",
"ws": "^8.2.3",
"yaml": "^2.6.1"
},
"devDependencies": {
"@asyncapi/minimaltemplate": "./test/fixtures/minimaltemplate",
"@asyncapi/newtemplate": "./test/fixtures/newtemplate",
"@babel/core": "^7.19.3",
"@oclif/test": "^2",
"@swc/core": "^1.3.2",
"@types/chai": "^4.3.6",
"@types/fast-levenshtein": "^0.0.2",
"@types/fs-extra": "^11.0.1",
"@types/inquirer": "^8.1.3",
"@types/js-yaml": "^4.0.5",
"@types/lodash.template": "^4.4.4",
"@types/mocha": "^10.0.2",
"@types/node": "^10.17.60",
"@types/node-fetch": "^2.5.12",
"@types/rimraf": "^3.0.2",
"@types/serve-handler": "^6.1.1",
"@types/uuid": "^9.0.8",
"@types/wrap-ansi": "^8.0.1",
"@types/ws": "^8.2.0",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"acorn": "^8.5.0",
"chai": "^4.3.6",
"cross-env": "^7.0.3",
"eslint": "^8.24.0",
"eslint-config-oclif": "^4",
"eslint-config-oclif-typescript": "^1.0.3",
"eslint-plugin-github": "^4.3.7",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.15.0",
"globby": "^10.0.2",
"markdown-toc": "^1.2.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"rimraf": "^3.0.2",
"simple-git": "^3.16.0",
"ts-node": "^10.9.1",
"tslib": "^2.3.1",
"typescript": "^4.6.4"
},
"engines": {
"node": ">12.16"
},
"files": [
"/bin",
"/lib",
"/assets",
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
],
"homepage": "https://github.com/asyncapi/cli",
"keywords": [
"oclif"
],
"license": "Apache-2.0",
"main": "lib/index.js",
"oclif": {
"commands": "./lib/commands",
"bin": "asyncapi",
"hooks": {
"command_not_found": [
"./lib/hooks/command_not_found/myhook"
]
},
"macos": {
"identifier": "com.asyncapi.cli"
},
"topicSeparator": " ",
"topics": {
"config:context": {},
"config": {
"description": "CLI config settings"
},
"generate": {
"description": "Generate models and template"
}
},
"plugins": [
"@oclif/plugin-warn-if-update-available"
],
"warn-if-update-available": {
"frequency": 24,
"message": "\n<%= chalk.yellow('╭────────────────────────────────────────────────────────────────╮') %>\n<%= chalk.yellow('│ │') %>\n<%= chalk.yellow('│') %> Update available! <%= chalk.red(config.version) %> → <%= chalk.greenBright(latest) %>. <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> <%= chalk.magentaBright('Changelog:') %> https://github.com/asyncapi/cli/releases/tag/v<%= latest %> <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> Run \"<%= chalk.magentaBright('npm install -g @asyncapi/cli@latest') %>\" to update. <%= chalk.yellow('│') %>\n<%= chalk.yellow('│') %> <%= chalk.yellow('│') %>\n<%= chalk.yellow('╰────────────────────────────────────────────────────────────────╯') %>",
"frequencyUnit": "hours"
}
},
"publishConfig": {
"access": "public"
},
"optionalDependencies": {
"fsevents": "^2.3.2"
},
"repository": "asyncapi/cli",
"scripts": {
"build": "rimraf lib && node scripts/fetch-asyncapi-example.js && tsc && oclif manifest && echo \"Build Completed\"",
"bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION",
"dev": "tsc --watch",
"docker:build": "docker build -t asyncapi/cli:latest .",
"generate:readme:create": "node -e \"const fs = require('fs'); fs.writeFileSync('scripts/README.md', '# Usage\\n\\n<!-- usage -->\\n\\n# Commands\\n\\n<!-- commands -->\\n');\"",
"generate:readme:commands": "npm run build && cd scripts && cross-env DEBUG=* oclif readme",
"generate:assets": "npm run generate:readme:toc && npm run generate:commands",
"generate:commands": "npm run generate:readme:create && npm run generate:readme:commands && node ./scripts/updateUsageDocs.js && rimraf ./scripts/README.md",
"generate:readme:toc": "markdown-toc -i README.md",
"lint": "eslint --max-warnings 5 --config .eslintrc .",
"lint:fix": "eslint --max-warnings 5 --config .eslintrc . --fix",
"pack:macos": "oclif pack macos && npm run pack:rename",
"pack:linux": "oclif pack deb && npm run pack:rename",
"pack:tarballs": "oclif pack tarballs -t linux-x64 && npm run pack:rename",
"pack:windows": "oclif pack win && npm run pack:rename",
"pack:rename": "node scripts/releasePackagesRename.js",
"prepublishOnly": "npm run build",
"pretest": "npm run build",
"pretest:coverage": "npm run build",
"posttest": "rimraf ./test.asyncapi-cli",
"release": "semantic-release",
"test": "npm run test:unit && npm run action:test",
"test:unit": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" nyc --extension .ts mocha --require ts-node/register --require test/helpers/init.js --reporter spec --timeout 100000 \"test/**/*.test.ts\"",
"test:one": "cross-env NODE_ENV=development TEST=1 CUSTOM_CONTEXT_FILENAME=\"test.asyncapi-cli\" CUSTOM_CONTEXT_FILE_LOCATION=\"\" nyc --extension .ts mocha --require ts-node/register --require test/helpers/init.js --reporter spec --timeout 100000",
"get-version": "echo $npm_package_version",
"createhook": "oclif generate hook myhook --event=command_not_found",
"createhookinit": "oclif generate hook inithook --event=init",
"action:docker:build": "docker build -f github-action/Dockerfile -t asyncapi/github-action-for-cli:latest .",
"action:bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION",
"action:test": "cd github-action && make test"
},
"types": "lib/index.d.ts"
}