-
-
Notifications
You must be signed in to change notification settings - Fork 98
/
package.json
119 lines (119 loc) · 3.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
{
"name": "@asyncapi/parser",
"version": "1.3.0",
"description": "JavaScript AsyncAPI parser.",
"main": "lib/index.js",
"types": "types.d.ts",
"directories": {
"test": "test"
},
"scripts": {
"test": "npm run test-lib && npm run test-browser",
"bundle": "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",
"get-version": "echo $npm_package_version",
"get-name": "echo $npm_package_name",
"lint": "eslint --max-warnings 0 --config .eslintrc .",
"gen-readme-toc": "markdown-toc -i README.md",
"test-lib": "nyc --reporter=html --reporter=text mocha --exclude test/browser_test.js --recursive",
"test-browser": "npm run test-browser-cleanup && npm run bundle && cp dist/bundle.js test/sample_browser/ && start-server-and-test 'http-server test/sample_browser --cors -s' 8080 'mocha --timeout 3000 test/browser_test.js' && npm run test-browser-cleanup",
"test-browser-cleanup": "rimraf test/sample_browser/bundle.js"
},
"bugs": {
"url": "https://github.com/asyncapi/parser-js/issues"
},
"repository": {
"type": "git",
"url": "git://github.com/asyncapi/parser-js.git"
},
"author": "Fran Mendez <fmvilas@gmail.com> (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.0.4",
"@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.0.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",
"mocha": "^6.1.4",
"nyc": "^15.1.0",
"puppeteer": "^5.2.1",
"rimraf": "^3.0.2",
"semantic-release": "^17.0.4",
"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.7.5",
"@fmvilas/pseudo-yaml-ast": "^0.3.1",
"ajv": "^6.10.1",
"js-yaml": "^3.13.1",
"json-to-ast": "^2.1.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"
],
"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"
]
}
}