Skip to content

Commit bcbec9c

Browse files
perf: perf dev script
1 parent 78f1d53 commit bcbec9c

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

examples/express-openapi-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"scripts": {
1111
"build": "tsc --p tsconfig.json && tsc-alias -p tsconfig.json",
12-
"dev": "nodemon --exec \"vite-node src/index.ts\" --ext ts --quiet --watch ../../packages/express-openapi-ui --watch ./"
12+
"dev": "pnpm --filter express-openapi-ui build && pnpm install && nodemon --exec \"vite-node src/index.ts\" --ext ts --quiet --watch ./"
1313
},
1414
"dependencies": {
1515
"@openapi-ui/express-openapi-ui": "workspace:*",

examples/express-openapi-ui/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const openApiSpec = swaggerJsdoc({
4444
openapi: "3.0.0",
4545
info: {
4646
title: "Hello World",
47-
version: "1.0.0",
47+
version: "1.0",
4848
},
4949
},
5050
apis: ["./src/*.ts"], // files containing annotations as above

examples/hono-openapi-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"scripts": {
1111
"build": "tsc --p tsconfig.json && tsc-alias -p tsconfig.json",
12-
"dev": "nodemon --exec \"vite-node src/index.ts\" --ext ts --quiet --watch ../../packages/hono-openapi-ui --watch ./"
12+
"dev": "pnpm --filter hono-openapi-ui build && pnpm install && nodemon --exec \"vite-node src/index.ts\" --ext ts --quiet --watch ./"
1313
},
1414
"dependencies": {
1515
"@hono/node-server": "^1.11.0",

examples/hono-openapi-ui/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ app.doc(specPath, {
165165
info: {
166166
title: "Example API",
167167
description: "Example API description",
168-
version: "v1",
168+
version: "1.0",
169169
},
170170
openapi: "3.0.0",
171171
});
@@ -179,7 +179,7 @@ app.use(
179179
}),
180180
);
181181

182-
const PORT = Number(process.env.PORT) || 8004;
182+
const PORT = Number(process.env.PORT) || 8005;
183183
const HOST = process.env.HOST || "0.0.0.0";
184184
serve(
185185
{

examples/nestjs-openapi-ui-express/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
},
1010
"scripts": {
1111
"build": "nest build",
12-
"dev": "nest start",
12+
"dev": "pnpm --filter nestjs-openapi-ui build && pnpm install && nest start",
1313
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
1414
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
15-
"start:debug": "nest start --debug --watch",
16-
"start:dev": "nest start --watch",
15+
"start:debug": "pnpm --filter nestjs-openapi-ui build && pnpm install && nest start --debug --watch",
16+
"start:dev": "pnpm --filter nestjs-openapi-ui build && pnpm install && nest start --watch",
1717
"start:prod": "node dist/main",
1818
"test": "jest",
1919
"test:cov": "jest --coverage",

examples/nestjs-openapi-ui-fastify/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
},
1010
"scripts": {
1111
"build": "nest build",
12-
"dev": "nest start",
12+
"dev": "pnpm --filter nestjs-openapi-ui build && pnpm install && nest start",
1313
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
1414
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
15-
"start:debug": "nest start --debug --watch",
16-
"start:dev": "nest start --watch",
15+
"start:debug": "pnpm --filter nestjs-openapi-ui build && pnpm install && nest start --debug --watch",
16+
"start:dev": "pnpm --filter nestjs-openapi-ui build && pnpm install && nest start --watch",
1717
"start:prod": "node dist/main",
1818
"test": "jest",
1919
"test:cov": "jest --coverage",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "nodejs-openapi-ui",
33
"type": "module",
4+
"private": true,
45
"description": "A middleware collection for using the OpenAPI-UI with NodeJS",
56
"author": "rookie-luochao",
67
"license": "MIT",

0 commit comments

Comments
 (0)