@platformatic/runtime 2.0.0-alpha.1 → 2.0.0-alpha.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.
- package/config.d.ts +285 -0
- package/eslint.config.js +8 -0
- package/fixtures/botched-start/platformatic.runtime.json +1 -1
- package/fixtures/botched-start/services/a/platformatic.service.json +1 -1
- package/fixtures/composerApp/platformatic.composer.json +1 -1
- package/fixtures/configs/invalid-autoload-with-services.json +1 -1
- package/fixtures/configs/invalid-entrypoint.json +1 -1
- package/fixtures/configs/invalid-schema-type.config.json +1 -1
- package/fixtures/configs/missing-property.config.json +1 -1
- package/fixtures/configs/missing-service-config.json +1 -1
- package/fixtures/configs/monorepo-composer-no-autoload.json +2 -2
- package/fixtures/configs/monorepo-composer.json +2 -2
- package/fixtures/configs/monorepo-create-cycle.json +2 -2
- package/fixtures/configs/monorepo-missing-dependencies.json +2 -2
- package/fixtures/configs/monorepo-no-cycles.json +2 -2
- package/fixtures/configs/monorepo-openapi.json +2 -2
- package/fixtures/configs/{monorepo-hotreload-env.json → monorepo-watch-env.json} +2 -2
- package/fixtures/configs/monorepo-watch-single.json +12 -0
- package/fixtures/configs/monorepo-watch.json +26 -9
- package/fixtures/configs/monorepo-with-dependencies.json +2 -2
- package/fixtures/configs/monorepo-with-management-api-without-metrics.json +21 -0
- package/fixtures/configs/monorepo-with-management-api.json +2 -2
- package/fixtures/configs/{monorepo-hotreload.json → monorepo-with-metrics.json} +5 -4
- package/fixtures/configs/monorepo.json +2 -2
- package/fixtures/configs/no-services.config.json +1 -1
- package/fixtures/configs/no-sources.config.json +1 -1
- package/fixtures/configs/service-throws-on-start.json +1 -1
- package/fixtures/configs/service-with-env-port.json +2 -2
- package/fixtures/configs/service-with-stdio.json +12 -0
- package/fixtures/configs/{hotreload.json → watch.json} +2 -2
- package/fixtures/dbApp/platformatic.db.json +1 -1
- package/fixtures/dbAppNoName/platformatic.db.json +1 -1
- package/fixtures/dbAppNoPackageJson/platformatic.db.json +1 -1
- package/fixtures/dbAppWithMigrationError/platformatic.db.json +1 -1
- package/fixtures/do-not-reload-dependencies/platformatic.service.json +1 -1
- package/fixtures/do-not-restart-on-crash/platformatic.runtime.json +3 -2
- package/fixtures/do-not-restart-on-crash/services/a/platformatic.service.json +1 -1
- package/fixtures/express/platformatic.runtime.json +1 -1
- package/fixtures/express/services/a/platformatic.service.json +1 -1
- package/fixtures/express/services/b/platformatic.service.json +1 -1
- package/fixtures/external-client/platformatic.service.json +1 -1
- package/fixtures/interceptors/idp.js +2 -2
- package/fixtures/interceptors/platformatic.runtime.json +1 -1
- package/fixtures/interceptors/services/a/platformatic.service.json +1 -1
- package/fixtures/interceptors-2/platformatic.runtime.json +1 -1
- package/fixtures/interceptors-2/services/a/platformatic.service.json +1 -1
- package/fixtures/leven/platformatic.runtime.json +2 -2
- package/fixtures/leven/services/deeply-spittle/platformatic.service.json +1 -1
- package/fixtures/leven/services/rainy-empire/platformatic.composer.json +1 -1
- package/fixtures/management-api/platformatic.json +3 -3
- package/fixtures/management-api/services/service-1/platformatic.json +1 -1
- package/fixtures/management-api/services/service-1/plugin.js +4 -3
- package/fixtures/management-api/services/service-2/platformatic.json +1 -1
- package/fixtures/management-api/services/service-db/platformatic.db.json +1 -1
- package/fixtures/management-api-custom-labels/platformatic.json +2 -2
- package/fixtures/management-api-custom-labels/services/service-1/platformatic.json +1 -1
- package/fixtures/management-api-custom-labels/services/service-1/plugin.js +4 -3
- package/fixtures/management-api-custom-labels/services/service-2/platformatic.json +1 -1
- package/fixtures/management-api-custom-labels/services/service-db/platformatic.db.json +1 -1
- package/fixtures/management-api-without-metrics/platformatic.json +3 -2
- package/fixtures/management-api-without-metrics/services/service-1/platformatic.json +1 -1
- package/fixtures/monorepo/composerApp/platformatic.composer.json +1 -1
- package/fixtures/monorepo/dbApp/platformatic.db.json +1 -1
- package/fixtures/monorepo/serviceApp/platformatic.service.json +3 -2
- package/fixtures/monorepo/serviceApp/with-logger/with-logger.cjs +2 -2
- package/fixtures/monorepo/serviceApp/with-logger/with-logger.d.ts +7 -7
- package/fixtures/monorepo/serviceAppWithLogger/platformatic.service.json +1 -1
- package/fixtures/monorepo/serviceAppWithLogger/plugin.js +12 -0
- package/fixtures/monorepo/serviceAppWithMultiplePlugins/platformatic.service.json +3 -2
- package/fixtures/monorepo-missing-dependencies/composer/platformatic.json +1 -1
- package/fixtures/monorepo-openapi/serviceAppWithoutOpenapi/platformatic.service.json +1 -1
- package/fixtures/monorepo-watch/service1/platformatic.service.json +1 -1
- package/fixtures/monorepo-with-dependencies/main/platformatic.json +1 -1
- package/fixtures/monorepo-with-dependencies/service-1/platformatic.json +1 -1
- package/fixtures/monorepo-with-dependencies/service-2/platformatic.json +1 -1
- package/fixtures/no-env.service.json +1 -1
- package/fixtures/preload/platformatic.runtime.json +1 -1
- package/fixtures/preload/services/a/platformatic.service.json +1 -1
- package/fixtures/prom-server/platformatic.json +2 -2
- package/fixtures/prom-server/services/service-1/platformatic.json +1 -1
- package/fixtures/prom-server/services/service-2/platformatic.json +1 -1
- package/fixtures/restart-on-crash/platformatic.runtime.json +1 -1
- package/fixtures/restart-on-crash/services/a/platformatic.service.json +1 -1
- package/fixtures/sample-runtime/package.json +1 -1
- package/fixtures/sample-runtime/platformatic.json +2 -2
- package/fixtures/sample-runtime/services/rival/package.json +1 -1
- package/fixtures/sample-runtime/services/rival/platformatic.json +1 -1
- package/fixtures/sample-runtime-with-2-services/package.json +1 -1
- package/fixtures/sample-runtime-with-2-services/platformatic.json +2 -2
- package/fixtures/sample-runtime-with-2-services/services/foobar/package.json +1 -1
- package/fixtures/sample-runtime-with-2-services/services/foobar/platformatic.json +1 -1
- package/fixtures/sample-runtime-with-2-services/services/rival/package.json +1 -1
- package/fixtures/sample-runtime-with-2-services/services/rival/platformatic.json +1 -1
- package/fixtures/server/logger-transport/platformatic.runtime.json +2 -2
- package/fixtures/server/logger-transport/services/echo/platformatic.service.json +1 -1
- package/fixtures/server/overrides-service/platformatic.runtime.json +2 -2
- package/fixtures/server/overrides-service/services/echo/platformatic.service.json +1 -1
- package/fixtures/server/runtime-server/platformatic.runtime.json +2 -2
- package/fixtures/server/runtime-server/services/echo/platformatic.service.json +1 -1
- package/fixtures/serviceAppThrowsOnStart/platformatic.service.json +1 -1
- package/fixtures/stackables/node_modules/foo/foo.js +2 -1
- package/fixtures/start-command-in-runtime.js +1 -1
- package/fixtures/stdio/platformatic.service.json +6 -0
- package/fixtures/stdio/plugin.js +24 -0
- package/fixtures/telemetry/platformatic.runtime.json +2 -2
- package/fixtures/telemetry/services/echo/platformatic.service.json +1 -1
- package/fixtures/typescript/platformatic.runtime.json +2 -2
- package/fixtures/typescript/services/composer/platformatic.composer.json +1 -1
- package/fixtures/typescript/services/movies/global.d.ts +2 -3
- package/fixtures/typescript/services/movies/platformatic.db.json +1 -1
- package/fixtures/typescript/services/movies/types/Movie.d.ts +3 -3
- package/fixtures/typescript/services/movies/types/index.d.ts +6 -6
- package/fixtures/typescript/services/titles/client/client.d.ts +35 -35
- package/fixtures/typescript/services/titles/platformatic.service.json +1 -1
- package/fixtures/typescript-custom-flags/platformatic.runtime.json +2 -2
- package/fixtures/typescript-custom-flags/services/composer/platformatic.composer.json +1 -1
- package/fixtures/typescript-custom-flags/services/movies/global.d.ts +2 -3
- package/fixtures/typescript-custom-flags/services/movies/platformatic.db.json +1 -1
- package/fixtures/typescript-custom-flags/services/movies/types/Movie.d.ts +3 -3
- package/fixtures/typescript-custom-flags/services/movies/types/index.d.ts +6 -6
- package/fixtures/typescript-custom-flags/services/titles/client/client.d.ts +35 -35
- package/fixtures/typescript-custom-flags/services/titles/platformatic.service.json +1 -1
- package/fixtures/typescript-no-env/platformatic.runtime.json +2 -2
- package/fixtures/typescript-no-env/services/composer/platformatic.composer.json +1 -1
- package/fixtures/typescript-no-env/services/movies/global.d.ts +2 -3
- package/fixtures/typescript-no-env/services/movies/platformatic.db.json +1 -1
- package/fixtures/typescript-no-env/services/movies/types/Movie.d.ts +3 -3
- package/fixtures/typescript-no-env/services/movies/types/index.d.ts +6 -6
- package/fixtures/typescript-no-env/services/titles/client/client.d.ts +35 -35
- package/fixtures/typescript-no-env/services/titles/platformatic.service.json +1 -1
- package/index.d.ts +7 -8
- package/index.js +14 -10
- package/index.test-d.ts +10 -12
- package/lib/build-server.js +5 -11
- package/lib/compile.js +11 -10
- package/lib/config.js +21 -14
- package/lib/dependencies.js +2 -1
- package/lib/errors.js +3 -2
- package/lib/generator/errors.js +1 -1
- package/lib/generator/runtime-generator.d.ts +15 -15
- package/lib/generator/runtime-generator.js +92 -63
- package/lib/logger.js +55 -0
- package/lib/management-api.js +29 -44
- package/lib/prom-server.js +5 -9
- package/lib/runtime.js +885 -0
- package/lib/schema.js +79 -76
- package/lib/start.js +35 -113
- package/lib/streams/message-port-writable.js +44 -0
- package/lib/streams/pino-writable.js +30 -0
- package/lib/upgrade.js +4 -3
- package/lib/utils.js +49 -1
- package/lib/versions/v1.36.0.js +1 -1
- package/lib/versions/v1.5.0.js +1 -1
- package/lib/versions/v2.0.0.js +17 -0
- package/lib/worker/app.js +224 -0
- package/lib/worker/default-stackable.js +27 -0
- package/lib/worker/itc.js +128 -0
- package/lib/worker/main.js +120 -0
- package/lib/worker/symbols.js +7 -0
- package/package.json +23 -25
- package/runtime.mjs +4 -4
- package/schema.json +824 -0
- package/lib/api-client.js +0 -500
- package/lib/api.js +0 -420
- package/lib/app.js +0 -397
- package/lib/load-config.js +0 -12
- package/lib/loader.mjs +0 -103
- package/lib/message-port-writable.js +0 -50
- package/lib/worker.js +0 -182
- /package/lib/{interceptors.js → worker/interceptors.js} +0 -0
package/config.d.ts
ADDED
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type HttpsSchemasPlatformaticDevPlatformaticRuntime200Alpha2Json = {
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
} & {
|
|
11
|
+
$schema?: string;
|
|
12
|
+
preload?: string;
|
|
13
|
+
autoload?: {
|
|
14
|
+
path: string;
|
|
15
|
+
exclude?: string[];
|
|
16
|
+
mappings?: {
|
|
17
|
+
[k: string]: {
|
|
18
|
+
id: string;
|
|
19
|
+
config?: string;
|
|
20
|
+
useHttp?: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
telemetry?: OpenTelemetry;
|
|
25
|
+
server?: {
|
|
26
|
+
hostname?: string;
|
|
27
|
+
port?: number | string;
|
|
28
|
+
pluginTimeout?: number;
|
|
29
|
+
healthCheck?:
|
|
30
|
+
| boolean
|
|
31
|
+
| {
|
|
32
|
+
enabled?: boolean;
|
|
33
|
+
interval?: number;
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
ignoreTrailingSlash?: boolean;
|
|
37
|
+
ignoreDuplicateSlashes?: boolean;
|
|
38
|
+
connectionTimeout?: number;
|
|
39
|
+
keepAliveTimeout?: number;
|
|
40
|
+
maxRequestsPerSocket?: number;
|
|
41
|
+
forceCloseConnections?: boolean | string;
|
|
42
|
+
requestTimeout?: number;
|
|
43
|
+
bodyLimit?: number;
|
|
44
|
+
maxParamLength?: number;
|
|
45
|
+
disableRequestLogging?: boolean;
|
|
46
|
+
exposeHeadRoutes?: boolean;
|
|
47
|
+
logger?:
|
|
48
|
+
| boolean
|
|
49
|
+
| {
|
|
50
|
+
level?: string;
|
|
51
|
+
transport?:
|
|
52
|
+
| {
|
|
53
|
+
target?: string;
|
|
54
|
+
options?: {
|
|
55
|
+
[k: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
| {
|
|
59
|
+
targets?: {
|
|
60
|
+
target?: string;
|
|
61
|
+
options?: {
|
|
62
|
+
[k: string]: unknown;
|
|
63
|
+
};
|
|
64
|
+
level?: string;
|
|
65
|
+
additionalProperties?: never;
|
|
66
|
+
[k: string]: unknown;
|
|
67
|
+
}[];
|
|
68
|
+
options?: {
|
|
69
|
+
[k: string]: unknown;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
pipeline?: {
|
|
73
|
+
target?: string;
|
|
74
|
+
options?: {
|
|
75
|
+
[k: string]: unknown;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
[k: string]: unknown;
|
|
79
|
+
};
|
|
80
|
+
serializerOpts?: {
|
|
81
|
+
schema?: {
|
|
82
|
+
[k: string]: unknown;
|
|
83
|
+
};
|
|
84
|
+
ajv?: {
|
|
85
|
+
[k: string]: unknown;
|
|
86
|
+
};
|
|
87
|
+
rounding?: "floor" | "ceil" | "round" | "trunc";
|
|
88
|
+
debugMode?: boolean;
|
|
89
|
+
mode?: "debug" | "standalone";
|
|
90
|
+
largeArraySize?: number | string;
|
|
91
|
+
largeArrayMechanism?: "default" | "json-stringify";
|
|
92
|
+
[k: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
caseSensitive?: boolean;
|
|
95
|
+
requestIdHeader?: string | false;
|
|
96
|
+
requestIdLogLabel?: string;
|
|
97
|
+
jsonShorthand?: boolean;
|
|
98
|
+
trustProxy?: boolean | string | string[] | number;
|
|
99
|
+
http2?: boolean;
|
|
100
|
+
https?: {
|
|
101
|
+
allowHTTP1?: boolean;
|
|
102
|
+
key:
|
|
103
|
+
| string
|
|
104
|
+
| {
|
|
105
|
+
path?: string;
|
|
106
|
+
}
|
|
107
|
+
| (
|
|
108
|
+
| string
|
|
109
|
+
| {
|
|
110
|
+
path?: string;
|
|
111
|
+
}
|
|
112
|
+
)[];
|
|
113
|
+
cert:
|
|
114
|
+
| string
|
|
115
|
+
| {
|
|
116
|
+
path?: string;
|
|
117
|
+
}
|
|
118
|
+
| (
|
|
119
|
+
| string
|
|
120
|
+
| {
|
|
121
|
+
path?: string;
|
|
122
|
+
}
|
|
123
|
+
)[];
|
|
124
|
+
requestCert?: boolean;
|
|
125
|
+
rejectUnauthorized?: boolean;
|
|
126
|
+
};
|
|
127
|
+
cors?: {
|
|
128
|
+
origin?:
|
|
129
|
+
| boolean
|
|
130
|
+
| string
|
|
131
|
+
| (
|
|
132
|
+
| string
|
|
133
|
+
| {
|
|
134
|
+
regexp: string;
|
|
135
|
+
[k: string]: unknown;
|
|
136
|
+
}
|
|
137
|
+
)[]
|
|
138
|
+
| {
|
|
139
|
+
regexp: string;
|
|
140
|
+
[k: string]: unknown;
|
|
141
|
+
};
|
|
142
|
+
methods?: string[];
|
|
143
|
+
/**
|
|
144
|
+
* Comma separated string of allowed headers.
|
|
145
|
+
*/
|
|
146
|
+
allowedHeaders?: string;
|
|
147
|
+
exposedHeaders?: string[] | string;
|
|
148
|
+
credentials?: boolean;
|
|
149
|
+
maxAge?: number;
|
|
150
|
+
preflightContinue?: boolean;
|
|
151
|
+
optionsSuccessStatus?: number;
|
|
152
|
+
preflight?: boolean;
|
|
153
|
+
strictPreflight?: boolean;
|
|
154
|
+
hideOptionsRoute?: boolean;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
entrypoint?: string;
|
|
158
|
+
watch?: boolean | string;
|
|
159
|
+
inspectorOptions?: {
|
|
160
|
+
host?: string;
|
|
161
|
+
port?: number;
|
|
162
|
+
breakFirstLine?: boolean;
|
|
163
|
+
watchDisabled?: boolean;
|
|
164
|
+
[k: string]: unknown;
|
|
165
|
+
};
|
|
166
|
+
undici?: {
|
|
167
|
+
agentOptions?: {
|
|
168
|
+
[k: string]: unknown;
|
|
169
|
+
};
|
|
170
|
+
interceptors?:
|
|
171
|
+
| UndiciInterceptor[]
|
|
172
|
+
| {
|
|
173
|
+
Client?: UndiciInterceptor[];
|
|
174
|
+
Pool?: UndiciInterceptor[];
|
|
175
|
+
Agent?: UndiciInterceptor[];
|
|
176
|
+
[k: string]: unknown;
|
|
177
|
+
};
|
|
178
|
+
[k: string]: unknown;
|
|
179
|
+
};
|
|
180
|
+
managementApi?:
|
|
181
|
+
| boolean
|
|
182
|
+
| string
|
|
183
|
+
| {
|
|
184
|
+
logs?: {
|
|
185
|
+
[k: string]: unknown;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
metrics?:
|
|
189
|
+
| boolean
|
|
190
|
+
| {
|
|
191
|
+
port?: number | string;
|
|
192
|
+
hostname?: string;
|
|
193
|
+
endpoint?: string;
|
|
194
|
+
auth?: {
|
|
195
|
+
username: string;
|
|
196
|
+
password: string;
|
|
197
|
+
};
|
|
198
|
+
labels?: {
|
|
199
|
+
[k: string]: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
restartOnError?: boolean | number;
|
|
203
|
+
services?: {
|
|
204
|
+
id: string;
|
|
205
|
+
path: string;
|
|
206
|
+
config?: string;
|
|
207
|
+
useHttp?: boolean;
|
|
208
|
+
[k: string]: unknown;
|
|
209
|
+
}[];
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export interface OpenTelemetry {
|
|
213
|
+
/**
|
|
214
|
+
* The name of the service. Defaults to the folder name if not specified.
|
|
215
|
+
*/
|
|
216
|
+
serviceName: string;
|
|
217
|
+
/**
|
|
218
|
+
* The version of the service (optional)
|
|
219
|
+
*/
|
|
220
|
+
version?: string;
|
|
221
|
+
/**
|
|
222
|
+
* An array of paths to skip when creating spans. Useful for health checks and other endpoints that do not need to be traced.
|
|
223
|
+
*/
|
|
224
|
+
skip?: {
|
|
225
|
+
/**
|
|
226
|
+
* The path to skip. Can be a string or a regex.
|
|
227
|
+
*/
|
|
228
|
+
path?: string;
|
|
229
|
+
/**
|
|
230
|
+
* HTTP method to skip
|
|
231
|
+
*/
|
|
232
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
233
|
+
[k: string]: unknown;
|
|
234
|
+
}[];
|
|
235
|
+
exporter?:
|
|
236
|
+
| {
|
|
237
|
+
type?: "console" | "otlp" | "zipkin" | "memory";
|
|
238
|
+
/**
|
|
239
|
+
* Options for the exporter. These are passed directly to the exporter.
|
|
240
|
+
*/
|
|
241
|
+
options?: {
|
|
242
|
+
/**
|
|
243
|
+
* The URL to send the traces to. Not used for console or memory exporters.
|
|
244
|
+
*/
|
|
245
|
+
url?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Headers to send to the exporter. Not used for console or memory exporters.
|
|
248
|
+
*/
|
|
249
|
+
headers?: {
|
|
250
|
+
[k: string]: unknown;
|
|
251
|
+
};
|
|
252
|
+
[k: string]: unknown;
|
|
253
|
+
};
|
|
254
|
+
additionalProperties?: never;
|
|
255
|
+
[k: string]: unknown;
|
|
256
|
+
}[]
|
|
257
|
+
| {
|
|
258
|
+
type?: "console" | "otlp" | "zipkin" | "memory";
|
|
259
|
+
/**
|
|
260
|
+
* Options for the exporter. These are passed directly to the exporter.
|
|
261
|
+
*/
|
|
262
|
+
options?: {
|
|
263
|
+
/**
|
|
264
|
+
* The URL to send the traces to. Not used for console or memory exporters.
|
|
265
|
+
*/
|
|
266
|
+
url?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Headers to send to the exporter. Not used for console or memory exporters.
|
|
269
|
+
*/
|
|
270
|
+
headers?: {
|
|
271
|
+
[k: string]: unknown;
|
|
272
|
+
};
|
|
273
|
+
[k: string]: unknown;
|
|
274
|
+
};
|
|
275
|
+
additionalProperties?: never;
|
|
276
|
+
[k: string]: unknown;
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
export interface UndiciInterceptor {
|
|
280
|
+
module: string;
|
|
281
|
+
options: {
|
|
282
|
+
[k: string]: unknown;
|
|
283
|
+
};
|
|
284
|
+
[k: string]: unknown;
|
|
285
|
+
}
|
package/eslint.config.js
ADDED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "composerApp",
|
|
4
|
-
"
|
|
4
|
+
"watch": false,
|
|
5
5
|
"autoload": {
|
|
6
6
|
"path": "../monorepo",
|
|
7
7
|
"exclude": ["docs"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "with-logger",
|
|
4
|
-
"
|
|
4
|
+
"watch": false,
|
|
5
5
|
"autoload": {
|
|
6
6
|
"path": "../monorepo",
|
|
7
7
|
"exclude": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "composer",
|
|
4
|
-
"
|
|
4
|
+
"watch": false,
|
|
5
5
|
"managementApi": false,
|
|
6
6
|
"autoload": {
|
|
7
7
|
"path": "../monorepo-missing-dependencies"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "serviceApp",
|
|
4
|
-
"
|
|
4
|
+
"watch": false,
|
|
5
5
|
"autoload": {
|
|
6
6
|
"path": "../monorepo",
|
|
7
7
|
"exclude": ["docs", "composerApp"],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "without-openapi",
|
|
4
|
-
"
|
|
4
|
+
"watch": false,
|
|
5
5
|
"services": [
|
|
6
6
|
{
|
|
7
7
|
"id": "without-openapi",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "serviceApp",
|
|
4
|
-
"
|
|
4
|
+
"watch": "{PLT_WATCH}",
|
|
5
5
|
"autoload": {
|
|
6
6
|
"path": "../monorepo",
|
|
7
7
|
"exclude": ["docs", "composerApp"],
|
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/schemas/
|
|
3
|
-
"entrypoint": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
2
|
+
"$schema": "https://platformatic.dev/schemas/v2.0.0/runtime",
|
|
3
|
+
"entrypoint": "serviceApp",
|
|
4
|
+
"watch": true,
|
|
5
|
+
"autoload": {
|
|
6
|
+
"path": "../monorepo",
|
|
7
|
+
"exclude": ["docs", "composerApp"],
|
|
8
|
+
"mappings": {
|
|
9
|
+
"serviceAppWithLogger": {
|
|
10
|
+
"id": "with-logger",
|
|
11
|
+
"config": "platformatic.service.json"
|
|
12
|
+
},
|
|
13
|
+
"serviceAppWithMultiplePlugins": {
|
|
14
|
+
"id": "multi-plugin-service",
|
|
15
|
+
"config": "platformatic.service.json"
|
|
16
|
+
},
|
|
17
|
+
"dbApp": {
|
|
18
|
+
"id": "db-app",
|
|
19
|
+
"config": "platformatic.db.json"
|
|
20
|
+
}
|
|
10
21
|
}
|
|
11
|
-
|
|
22
|
+
},
|
|
23
|
+
"server": {
|
|
24
|
+
"logger": {
|
|
25
|
+
"level": "trace"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"restartOnError": 1000
|
|
12
29
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "main",
|
|
4
|
-
"
|
|
4
|
+
"watch": true,
|
|
5
5
|
"autoload": {
|
|
6
6
|
"path": "../monorepo-with-dependencies"
|
|
7
7
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.22.0.json",
|
|
3
|
+
"entrypoint": "serviceApp",
|
|
4
|
+
"watch": true,
|
|
5
|
+
"autoload": {
|
|
6
|
+
"path": "../monorepo",
|
|
7
|
+
"exclude": ["docs", "composerApp"],
|
|
8
|
+
"mappings": {
|
|
9
|
+
"serviceAppWithLogger": {
|
|
10
|
+
"id": "with-logger",
|
|
11
|
+
"config": "platformatic.service.json"
|
|
12
|
+
},
|
|
13
|
+
"serviceAppWithMultiplePlugins": {
|
|
14
|
+
"id": "multi-plugin-service",
|
|
15
|
+
"config": "platformatic.service.json"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"managementApi": {},
|
|
20
|
+
"metrics": false
|
|
21
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "serviceApp",
|
|
4
|
-
"
|
|
4
|
+
"watch": false,
|
|
5
5
|
"autoload": {
|
|
6
6
|
"path": "../monorepo",
|
|
7
7
|
"exclude": ["docs", "composerApp"],
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://platformatic.dev/schemas/v0.20.0/runtime",
|
|
3
3
|
"entrypoint": "serviceApp",
|
|
4
|
-
"
|
|
4
|
+
"watch": false,
|
|
5
|
+
"managementApi": false,
|
|
5
6
|
"autoload": {
|
|
6
7
|
"path": "../monorepo",
|
|
7
8
|
"exclude": [
|
|
@@ -23,9 +24,9 @@
|
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"metrics": {
|
|
28
|
+
"labels": {
|
|
29
|
+
"app": "serviceApp"
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "serviceApp",
|
|
4
|
-
"
|
|
4
|
+
"watch": false,
|
|
5
5
|
"managementApi": false,
|
|
6
6
|
"autoload": {
|
|
7
7
|
"path": "../monorepo",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "serviceApp",
|
|
4
|
-
"
|
|
4
|
+
"watch": false,
|
|
5
5
|
"managementApi": false,
|
|
6
6
|
"autoload": {
|
|
7
7
|
"path": "../monorepo",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://platformatic.dev/
|
|
2
|
+
"$schema": "https://schemas.platformatic.dev/@platformatic/runtime/1.52.0.json",
|
|
3
3
|
"entrypoint": "serviceApp",
|
|
4
|
-
"
|
|
4
|
+
"watch": true,
|
|
5
5
|
"autoload": {
|
|
6
6
|
"path": "../monorepo",
|
|
7
7
|
"exclude": ["docs", "composerApp"],
|