@noego/app 0.0.3 → 0.0.4
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/.claude/settings.local.json +3 -11
- package/package.json +15 -1
- package/src/args.js +1 -0
- package/src/build/bootstrap.js +114 -8
- package/src/build/context.js +2 -2
- package/src/build/helpers.js +10 -0
- package/src/build/openapi.js +9 -4
- package/src/build/runtime-manifest.js +22 -30
- package/src/build/server.js +34 -4
- package/src/cli.js +10 -5
- package/src/client.js +141 -0
- package/src/commands/build.js +66 -21
- package/src/commands/dev.js +624 -0
- package/src/commands/runtime-entry.ts +16 -0
- package/src/config.js +73 -553
- package/src/index.js +7 -0
- package/src/runtime/config-loader.js +203 -0
- package/src/runtime/html-parser.js +47 -0
- package/src/runtime/index.js +4 -0
- package/src/runtime/runtime.js +749 -0
- package/types/client.d.ts +23 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Server as HttpServer } from 'node:http';
|
|
2
|
+
import type { Express } from 'express';
|
|
3
|
+
|
|
4
|
+
export interface RuntimeContext {
|
|
5
|
+
app: Express;
|
|
6
|
+
config: Record<string, unknown>;
|
|
7
|
+
httpServer?: HttpServer | null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function setContext(app: Express, config: Record<string, unknown>, httpServer?: HttpServer | null): void;
|
|
11
|
+
|
|
12
|
+
export function boot(
|
|
13
|
+
assets: Record<string, unknown>,
|
|
14
|
+
options?: {
|
|
15
|
+
controller_builder?: (controller: any) => Promise<any> | any;
|
|
16
|
+
controller_args_provider?: (req: any, res: any) => Promise<any> | any;
|
|
17
|
+
}
|
|
18
|
+
): Promise<any>;
|
|
19
|
+
|
|
20
|
+
export const client: {
|
|
21
|
+
boot(): Promise<void>;
|
|
22
|
+
init(): Promise<void>;
|
|
23
|
+
};
|