-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
21 lines (21 loc) · 922 Bytes
/
package.json
File metadata and controls
21 lines (21 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"name": "api-explorer",
"type": "module",
"version": "0.0.1",
"devDependencies": {
"dotenv": "16.4.5",
"fs-extra": "11.2.0",
"http-server": "14.1.1",
"shx": "0.3.4",
"swagger-ui-dist": "5",
"yaml": "2.8.1"
},
"scripts": {
"clean": "shx rm -rf dist",
"build:assets": "shx mkdir -p dist/assets && shx cp node_modules/swagger-ui-dist/swagger-ui.css dist/assets/ && shx cp node_modules/swagger-ui-dist/swagger-ui-bundle.js dist/assets/ && shx cp node_modules/swagger-ui-dist/swagger-ui-standalone-preset.js dist/assets/ && shx cp node_modules/swagger-ui-dist/*bundle.js.map dist/assets/ || true",
"build:api": "node scripts/render-openapi.mjs",
"build:index": "shx cp dist/index.html dist/404.html && shx touch dist/.nojekyll",
"build": "npm run clean && npm run build:assets && npm run build:api && npm run build:index",
"serve": "http-server dist -p 8080"
}
}