create-openibm 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -127,12 +127,15 @@ function appTs(hasProgram, hasTable) {
|
|
|
127
127
|
`// ── Middleware ────────────────────────────────────────────────────────────────`,
|
|
128
128
|
``,
|
|
129
129
|
`app.use(express.json());`,
|
|
130
|
-
`app.use(morgan('dev'));`,
|
|
131
130
|
``,
|
|
132
131
|
`// ── API docs ──────────────────────────────────────────────────────────────────`,
|
|
133
132
|
``,
|
|
134
133
|
`setupDocs(app);`,
|
|
135
134
|
``,
|
|
135
|
+
`// ── Middleware ────────────────────────────────────────────────────────────────`,
|
|
136
|
+
``,
|
|
137
|
+
`app.use(morgan('dev'));`,
|
|
138
|
+
``,
|
|
136
139
|
`// ── Routes ───────────────────────────────────────────────────────────────────`,
|
|
137
140
|
``,
|
|
138
141
|
`app.use('/', router);`,
|
package/dist/templates/nestjs.js
CHANGED
|
@@ -123,11 +123,12 @@ function mainTs(a) {
|
|
|
123
123
|
`async function bootstrap(): Promise<void> {`,
|
|
124
124
|
` const app = await NestFactory.create(AppModule);`,
|
|
125
125
|
``,
|
|
126
|
-
` app.use(morgan('dev'));`,
|
|
127
126
|
` app.useGlobalPipes(new ValidationPipe({ whitelist: true, transform: true }));`,
|
|
128
127
|
``,
|
|
129
128
|
` setupDocs(app);`,
|
|
130
129
|
``,
|
|
130
|
+
` app.use(morgan('dev'));`,
|
|
131
|
+
``,
|
|
131
132
|
` const port = Number(process.env.PORT ?? 3000);`,
|
|
132
133
|
` await app.listen(port);`,
|
|
133
134
|
` console.log(\`Application: http://localhost:\${port}\`);`,
|
package/package.json
CHANGED