-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
21 lines (21 loc) · 1.17 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "bonita-web-api",
"version": "0.0.21",
"description": "Open API Specification for Bonita Platform.",
"scripts": {
"start": "redocly preview-docs openapi/openapi.yaml",
"clean": "rm -rf dist/*",
"test": "redocly lint",
"yaml": "copyfiles -u 2 docs/images/* dist/bonita-openapi-$npm_package_version/images/ && redocly bundle -o dist/openapi.yaml -f",
"postman": "node_modules/.bin/openapi2postmanv2 -s dist/openapi.yaml -o dist/postman.json -p",
"static": "redocly build-docs ./dist/openapi.yaml -t docs/index.html.hbs --templateOptions.version \"$npm_package_version\" -o ./dist/bonita-openapi-$npm_package_version/index.html && copyfiles -u 1 dist/openapi.yaml dist/bonita-openapi-$npm_package_version && copyfiles -u 1 dist/postman.json dist/bonita-openapi-$npm_package_version",
"package": "npm run clean && npm run test && npm run yaml && npm run postman && npm run static && cd dist/bonita-openapi-$npm_package_version && zip -r ../bonita-openapi-$npm_package_version.zip *"
},
"license": "GPL v2.0",
"private": false,
"devDependencies": {
"copyfiles": "^2.4.1",
"openapi-to-postmanv2": "^4.24.0",
"@redocly/cli": "^1.25.4"
}
}