forked from asyncapi/parser-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
145 lines (145 loc) · 4.48 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
{
"name": "@asyncapi/parser",
"version": "1.15.1",
"description": "JavaScript AsyncAPI parser.",
"main": "lib/index.js",
"types": "types.d.ts",
"directories": {
"test": "test"
},
"files": [
"dist/bundle.js",
"API.md",
"LICENSE",
"README.md",
"lib/",
"types.d.ts"
],
"scripts": {
"test": "npm run test:browser:cleanup && npm run test:lib && npm run test:parseFromUrl && npm run cover:report && npm run test:browser",
"bundle": "mkdirp \"dist\" && browserify \"lib/browser.js\" | uglifyjs > \"dist/bundle.js\"",
"docs": "jsdoc2md \"lib/parser.js\" -f \"lib/**/*.js\" > API.md",
"types": "jsdoc -t \"node_modules/tsd-jsdoc/dist\" -r lib -d \"./\" && node \"./scripts/fix-ts-types.js\"",
"prepublishOnly": "npm run bundle && npm run docs && npm run types",
"release": "semantic-release",
"lint": "eslint --max-warnings 0 --config \".eslintrc\" \".\"",
"lint:fix": "eslint --max-warnings 0 --config \".eslintrc\" \".\" --fix",
"test:lib": "nyc --silent --no-clean mocha --exclude \"test/browser_test.js\" --exclude \"test/parseFromUrl_test.js\" --recursive",
"test:parseFromUrl": "nyc --silent --no-clean start-server-and-test \"http-server test/sample_browser --cors -s\" 8080 \"mocha test/parseFromUrl_test.js\"",
"cover:report": "nyc report --reporter=text --reporter=html",
"test:browser": "npm run test:browser:cleanup && npm run bundle && shx cp \"dist/bundle.js\" \"test/sample_browser/\" && start-server-and-test \"http-server test/sample_browser --cors -s\" 8080 \"mocha --timeout 20000 test/browser_test.js\" && npm run test:browser:cleanup",
"test:browser:cleanup": "rimraf \"test/sample_browser/bundle.js\"",
"generate:readme:toc": "markdown-toc -i \"README.md\"",
"generate:assets": "npm run docs && npm run generate:readme:toc && npm run types && npm run bundle",
"bump:version": "npm --no-git-tag-version --allow-same-version version $VERSION"
},
"bugs": {
"url": "https://github.com/asyncapi/parser-js/issues"
},
"repository": {
"type": "git",
"url": "git://github.com/asyncapi/parser-js.git"
},
"author": "Fran Mendez <[email protected]> (fmvilas.com)",
"publishConfig": {
"access": "public"
},
"license": "Apache-2.0",
"homepage": "https://github.com/asyncapi/parser-js",
"devDependencies": {
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/github": "7.2.3",
"@semantic-release/npm": "^7.0.3",
"@semantic-release/release-notes-generator": "^9.0.1",
"browserify": "^16.3.0",
"browserify-shim": "^3.8.14",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"conventional-changelog-conventionalcommits": "^4.2.3",
"eslint": "^7.27.0",
"eslint-plugin-mocha": "^7.0.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-sonarjs": "^0.5.0",
"http-server": "^0.12.3",
"jsdoc-to-markdown": "^5.0.0",
"markdown-toc": "^1.2.0",
"mkdirp": "^1.0.4",
"mocha": "^6.1.4",
"nyc": "^15.1.0",
"puppeteer": "^7.0.1",
"rimraf": "^3.0.2",
"semantic-release": "19.0.3",
"shx": "^0.3.3",
"start-server-and-test": "^1.11.3",
"tsd-jsdoc": "^2.5.0",
"uglify-es": "^3.3.9"
},
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^9.0.6",
"@asyncapi/specs": "^2.14.0",
"@fmvilas/pseudo-yaml-ast": "^0.3.1",
"ajv": "^6.10.1",
"js-yaml": "^3.13.1",
"json-to-ast": "^2.1.0",
"lodash.clonedeep": "^4.5.0",
"node-fetch": "^2.6.0",
"tiny-merge-patch": "^0.1.2"
},
"browserify": {
"transform": [
"browserify-shim"
]
},
"browserify-shim": {
"node-fetch": "global:fetch"
},
"release": {
"branches": [
"master",
{
"name": "next-spec",
"prerelease": true
},
{
"name": "next-major-spec",
"prerelease": true
},
{
"name": "next-major",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
"@semantic-release/npm",
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/bundle.js",
"label": "Browser Bundle"
}
]
}
]
]
},
"nyc": {
"exclude": [
"dist/bundle.js",
"test/**/*.js"
]
}
}