raiton 1.1.1
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/.releaserc.json +39 -0
- package/CHANGELOG.md +90 -0
- package/README.md +2 -0
- package/build/bin/bootstrapper.d.ts +5 -0
- package/build/bin/bootstrapper.mjs +46 -0
- package/build/bin/cli.d.ts +5 -0
- package/build/bin/cli.mjs +6 -0
- package/build/bin/index.d.ts +1 -0
- package/build/bin/index.mjs +50 -0
- package/build/chunk-3PWMRP6G.mjs +16 -0
- package/build/chunk-4OWCGDUD.mjs +0 -0
- package/build/chunk-52JR26TI.mjs +29 -0
- package/build/chunk-5LNOA4SK.mjs +16 -0
- package/build/chunk-AUGL35CF.mjs +24 -0
- package/build/chunk-BYYJRCB4.mjs +10 -0
- package/build/chunk-DIWD7ZCJ.mjs +0 -0
- package/build/chunk-FFRJ4AUA.mjs +16 -0
- package/build/chunk-GPJSLV3Q.mjs +50 -0
- package/build/chunk-HVFHDVAH.mjs +20 -0
- package/build/chunk-IOCHNQMF.mjs +13 -0
- package/build/chunk-JATYBWHL.mjs +36 -0
- package/build/chunk-JWNBO7XV.mjs +53 -0
- package/build/chunk-K4IQQ2KF.mjs +55 -0
- package/build/chunk-K4KLOLSO.mjs +645 -0
- package/build/chunk-M2RZZJQR.mjs +27 -0
- package/build/chunk-MLFGBJDV.mjs +12 -0
- package/build/chunk-NB62GSFI.mjs +27 -0
- package/build/chunk-O7R3NJQN.mjs +19 -0
- package/build/chunk-P2YCCBFR.mjs +14 -0
- package/build/chunk-P3IRIFPT.mjs +53 -0
- package/build/chunk-QFSXFOEN.mjs +56 -0
- package/build/chunk-QHCQ4AUA.mjs +14 -0
- package/build/chunk-QI7OFSXB.mjs +37 -0
- package/build/chunk-RVH2YBNU.mjs +111 -0
- package/build/chunk-RXG7754R.mjs +25 -0
- package/build/chunk-S3ONGVNZ.mjs +11 -0
- package/build/chunk-SRR4467I.mjs +29 -0
- package/build/chunk-T6L55AUG.mjs +32 -0
- package/build/chunk-TOJFTPAY.mjs +83 -0
- package/build/chunk-UAPCBU3J.mjs +12 -0
- package/build/chunk-UCHBN3DV.mjs +52 -0
- package/build/chunk-UWM46HLZ.mjs +18 -0
- package/build/chunk-UZFCGVHP.mjs +8 -0
- package/build/chunk-VQINCGLQ.mjs +59 -0
- package/build/chunk-VRL4S7UF.mjs +74 -0
- package/build/chunk-WAWFDMOH.mjs +72 -0
- package/build/chunk-X3JFRRRQ.mjs +45 -0
- package/build/chunk-XFBLELHI.mjs +34 -0
- package/build/chunk-XIGE72LC.mjs +34 -0
- package/build/chunk-XW7EPAD7.mjs +0 -0
- package/build/chunk-YGIZFKLJ.mjs +20 -0
- package/build/chunk-YRVIAORI.mjs +8 -0
- package/build/chunk-YXU5W2CB.mjs +12 -0
- package/build/commands/artifact.command.d.ts +14 -0
- package/build/commands/artifact.command.mjs +59 -0
- package/build/commands/build.command.d.ts +14 -0
- package/build/commands/build.command.mjs +65 -0
- package/build/commands/develop.command.d.ts +13 -0
- package/build/commands/develop.command.mjs +75 -0
- package/build/commands/grafts.command.d.ts +12 -0
- package/build/commands/grafts.command.mjs +58 -0
- package/build/commands/start.command.d.ts +12 -0
- package/build/commands/start.command.mjs +64 -0
- package/build/core/application.d.ts +27 -0
- package/build/core/application.mjs +124 -0
- package/build/core/artifact.d.ts +19 -0
- package/build/core/artifact.mjs +133 -0
- package/build/core/builder.d.ts +35 -0
- package/build/core/builder.mjs +45 -0
- package/build/core/bytes.util.d.ts +6 -0
- package/build/core/bytes.util.mjs +8 -0
- package/build/core/command.d.ts +15 -0
- package/build/core/command.mjs +6 -0
- package/build/core/commands.d.ts +13 -0
- package/build/core/commands.mjs +7 -0
- package/build/core/config.d.ts +10 -0
- package/build/core/config.mjs +7 -0
- package/build/core/context.d.ts +15 -0
- package/build/core/context.mjs +6 -0
- package/build/core/controller/builder.d.ts +10 -0
- package/build/core/controller/builder.mjs +45 -0
- package/build/core/controller/compiler.d.ts +6 -0
- package/build/core/controller/compiler.mjs +45 -0
- package/build/core/controller/index.d.ts +13 -0
- package/build/core/controller/index.mjs +50 -0
- package/build/core/controller/metadata.d.ts +10 -0
- package/build/core/controller/metadata.mjs +6 -0
- package/build/core/directories.d.ts +11 -0
- package/build/core/directories.mjs +8 -0
- package/build/core/hmr.d.ts +22 -0
- package/build/core/hmr.mjs +6 -0
- package/build/core/hooks.d.ts +12 -0
- package/build/core/hooks.mjs +6 -0
- package/build/core/index.d.ts +41 -0
- package/build/core/index.mjs +100 -0
- package/build/core/middleware/compose.d.ts +8 -0
- package/build/core/middleware/compose.mjs +6 -0
- package/build/core/middleware/index.d.ts +6 -0
- package/build/core/middleware/index.mjs +11 -0
- package/build/core/middleware/pipeline.d.ts +14 -0
- package/build/core/middleware/pipeline.mjs +7 -0
- package/build/core/plugins/index.d.ts +14 -0
- package/build/core/plugins/index.mjs +48 -0
- package/build/core/plugins/plugin.d.ts +17 -0
- package/build/core/plugins/plugin.mjs +6 -0
- package/build/core/plugins/scope.d.ts +24 -0
- package/build/core/plugins/scope.mjs +45 -0
- package/build/core/process.util.d.ts +3 -0
- package/build/core/process.util.mjs +6 -0
- package/build/core/raiton.d.ts +20 -0
- package/build/core/raiton.mjs +6 -0
- package/build/core/router/handler.d.ts +10 -0
- package/build/core/router/handler.mjs +45 -0
- package/build/core/router/index.d.ts +12 -0
- package/build/core/router/index.mjs +54 -0
- package/build/core/router/matcher.d.ts +21 -0
- package/build/core/router/matcher.mjs +6 -0
- package/build/core/router/route.d.ts +20 -0
- package/build/core/router/route.mjs +6 -0
- package/build/core/router/router.d.ts +16 -0
- package/build/core/router/router.mjs +8 -0
- package/build/core/thread.d.ts +30 -0
- package/build/core/thread.mjs +45 -0
- package/build/env.d.d.ts +2 -0
- package/build/env.d.mjs +0 -0
- package/build/raiton-1.1.1.tgz +0 -0
- package/build/requirements.d.ts +2 -0
- package/build/requirements.mjs +19 -0
- package/build/sdk/artifacts.d.ts +13 -0
- package/build/sdk/artifacts.mjs +45 -0
- package/build/sdk/constants/decorators.constant.d.ts +11 -0
- package/build/sdk/constants/decorators.constant.mjs +6 -0
- package/build/sdk/constants/index.d.ts +2 -0
- package/build/sdk/constants/index.mjs +11 -0
- package/build/sdk/constants/microservices.constant.d.ts +5 -0
- package/build/sdk/constants/microservices.constant.mjs +6 -0
- package/build/sdk/controllers.d.ts +4 -0
- package/build/sdk/controllers.mjs +6 -0
- package/build/sdk/data-transfer-object.d.ts +7 -0
- package/build/sdk/data-transfer-object.mjs +7 -0
- package/build/sdk/decorators/access-guard.decorator.d.ts +2 -0
- package/build/sdk/decorators/access-guard.decorator.mjs +0 -0
- package/build/sdk/decorators/controllable.d.ts +3 -0
- package/build/sdk/decorators/controllable.mjs +45 -0
- package/build/sdk/decorators/controllers.decorator.d.ts +2 -0
- package/build/sdk/decorators/controllers.decorator.mjs +0 -0
- package/build/sdk/decorators/grafts.decorator.d.ts +2 -0
- package/build/sdk/decorators/grafts.decorator.mjs +0 -0
- package/build/sdk/decorators/index.d.ts +3 -0
- package/build/sdk/decorators/index.mjs +75 -0
- package/build/sdk/decorators/parameters.decorator.d.ts +2 -0
- package/build/sdk/decorators/parameters.decorator.mjs +0 -0
- package/build/sdk/decorators/parametrable.d.ts +9 -0
- package/build/sdk/decorators/parametrable.mjs +57 -0
- package/build/sdk/decorators/payload.decorator.d.ts +2 -0
- package/build/sdk/decorators/payload.decorator.mjs +0 -0
- package/build/sdk/decorators/routable.d.ts +10 -0
- package/build/sdk/decorators/routable.mjs +59 -0
- package/build/sdk/dependency-container.d.ts +19 -0
- package/build/sdk/dependency-container.mjs +46 -0
- package/build/sdk/encryption.d.ts +27 -0
- package/build/sdk/encryption.mjs +141 -0
- package/build/sdk/enums/encrypted.enum.d.ts +15 -0
- package/build/sdk/enums/encrypted.enum.mjs +6 -0
- package/build/sdk/enums/event.message.enum.d.ts +6 -0
- package/build/sdk/enums/event.message.enum.mjs +6 -0
- package/build/sdk/enums/http-parameters.enum.d.ts +12 -0
- package/build/sdk/enums/http-parameters.enum.mjs +6 -0
- package/build/sdk/enums/http.enum.d.ts +12 -0
- package/build/sdk/enums/http.enum.mjs +6 -0
- package/build/sdk/enums/index.d.ts +6 -0
- package/build/sdk/enums/index.mjs +27 -0
- package/build/sdk/enums/runtime.enum.d.ts +8 -0
- package/build/sdk/enums/runtime.enum.mjs +6 -0
- package/build/sdk/enums/timestamp.enum.d.ts +8 -0
- package/build/sdk/enums/timestamp.enum.mjs +6 -0
- package/build/sdk/env.d.ts +6 -0
- package/build/sdk/env.mjs +74 -0
- package/build/sdk/fastify.d.ts +11 -0
- package/build/sdk/fastify.mjs +9 -0
- package/build/sdk/grafts.d.ts +15 -0
- package/build/sdk/grafts.mjs +71 -0
- package/build/sdk/index.d.ts +34 -0
- package/build/sdk/index.mjs +126 -0
- package/build/sdk/json.d.ts +17 -0
- package/build/sdk/json.mjs +87 -0
- package/build/sdk/plugins/body-parser.plugin.d.ts +17 -0
- package/build/sdk/plugins/body-parser.plugin.mjs +7 -0
- package/build/sdk/plugins/index.d.ts +17 -0
- package/build/sdk/plugins/index.mjs +48 -0
- package/build/sdk/plugins/security/body-limit.d.ts +17 -0
- package/build/sdk/plugins/security/body-limit.mjs +45 -0
- package/build/sdk/plugins/security/cors.d.ts +22 -0
- package/build/sdk/plugins/security/cors.mjs +45 -0
- package/build/sdk/plugins/security/headers.d.ts +17 -0
- package/build/sdk/plugins/security/headers.mjs +45 -0
- package/build/sdk/plugins/security/index.d.ts +25 -0
- package/build/sdk/plugins/security/index.mjs +45 -0
- package/build/sdk/plugins/security/method-guard.d.ts +17 -0
- package/build/sdk/plugins/security/method-guard.mjs +45 -0
- package/build/sdk/plugins/security/rate-limit.d.ts +21 -0
- package/build/sdk/plugins/security/rate-limit.mjs +45 -0
- package/build/sdk/repositories.d.ts +7 -0
- package/build/sdk/repositories.mjs +17 -0
- package/build/sdk/request.d.ts +4 -0
- package/build/sdk/request.mjs +6 -0
- package/build/sdk/responses.d.ts +8 -0
- package/build/sdk/responses.mjs +20 -0
- package/build/sdk/routes.d.ts +7 -0
- package/build/sdk/routes.mjs +61 -0
- package/build/sdk/runtime/bun/server.d.ts +6 -0
- package/build/sdk/runtime/bun/server.mjs +6 -0
- package/build/sdk/runtime/deno/server.d.ts +6 -0
- package/build/sdk/runtime/deno/server.mjs +6 -0
- package/build/sdk/runtime/index.d.ts +15 -0
- package/build/sdk/runtime/index.mjs +11 -0
- package/build/sdk/runtime/node/reply.d.ts +2 -0
- package/build/sdk/runtime/node/reply.mjs +0 -0
- package/build/sdk/runtime/node/request.d.ts +2 -0
- package/build/sdk/runtime/node/request.mjs +0 -0
- package/build/sdk/runtime/node/server.d.ts +6 -0
- package/build/sdk/runtime/node/server.mjs +6 -0
- package/build/sdk/runtime/web/server.d.ts +6 -0
- package/build/sdk/runtime/web/server.mjs +6 -0
- package/build/sdk/schemes.d.ts +120 -0
- package/build/sdk/schemes.mjs +129 -0
- package/build/sdk/services.d.ts +8 -0
- package/build/sdk/services.mjs +10 -0
- package/build/sdk/throwable.d.ts +78 -0
- package/build/sdk/throwable.mjs +14 -0
- package/build/sdk/utilities/alias-path.util.d.ts +9 -0
- package/build/sdk/utilities/alias-path.util.mjs +6 -0
- package/build/sdk/utilities/artifacts.util.d.ts +3 -0
- package/build/sdk/utilities/artifacts.util.mjs +45 -0
- package/build/sdk/utilities/callable.util.d.ts +3 -0
- package/build/sdk/utilities/callable.util.mjs +6 -0
- package/build/sdk/utilities/controller.util.d.ts +3 -0
- package/build/sdk/utilities/controller.util.mjs +6 -0
- package/build/sdk/utilities/index.d.ts +7 -0
- package/build/sdk/utilities/index.mjs +62 -0
- package/build/sdk/utilities/json.util.d.ts +3 -0
- package/build/sdk/utilities/json.util.mjs +6 -0
- package/build/sdk/utilities/parameters-arguments.util.d.ts +2 -0
- package/build/sdk/utilities/parameters-arguments.util.mjs +0 -0
- package/build/sdk/utilities/url.d.ts +3 -0
- package/build/sdk/utilities/url.mjs +7 -0
- package/build/sdk/utilities/utilities.util.d.ts +6 -0
- package/build/sdk/utilities/utilities.util.mjs +8 -0
- package/build/types/access-guards.d.ts +6 -0
- package/build/types/access-guards.mjs +0 -0
- package/build/types/application.d.ts +30 -0
- package/build/types/application.mjs +0 -0
- package/build/types/artifact.d.ts +21 -0
- package/build/types/artifact.mjs +0 -0
- package/build/types/builder.d.ts +32 -0
- package/build/types/builder.mjs +0 -0
- package/build/types/config.d.ts +6 -0
- package/build/types/config.mjs +0 -0
- package/build/types/controller.d.ts +25 -0
- package/build/types/controller.mjs +0 -0
- package/build/types/contruct.d.ts +3 -0
- package/build/types/contruct.mjs +0 -0
- package/build/types/core.d.ts +15 -0
- package/build/types/core.mjs +0 -0
- package/build/types/data-transfer-object.d.ts +5 -0
- package/build/types/data-transfer-object.mjs +0 -0
- package/build/types/dependency-container.d.ts +20 -0
- package/build/types/dependency-container.mjs +0 -0
- package/build/types/directory.d.ts +8 -0
- package/build/types/directory.mjs +0 -0
- package/build/types/encryption.d.ts +16 -0
- package/build/types/encryption.mjs +0 -0
- package/build/types/generic.d.ts +4 -0
- package/build/types/generic.mjs +0 -0
- package/build/types/hmr.d.ts +25 -0
- package/build/types/hmr.mjs +0 -0
- package/build/types/http-responses.d.ts +10 -0
- package/build/types/http-responses.mjs +0 -0
- package/build/types/index.d.ts +45 -0
- package/build/types/index.mjs +0 -0
- package/build/types/middleware.d.ts +12 -0
- package/build/types/middleware.mjs +0 -0
- package/build/types/parameters.d.ts +19 -0
- package/build/types/parameters.mjs +0 -0
- package/build/types/parseable.d.ts +5 -0
- package/build/types/parseable.mjs +0 -0
- package/build/types/payload.d.ts +6 -0
- package/build/types/payload.mjs +0 -0
- package/build/types/plugin.d.ts +20 -0
- package/build/types/plugin.mjs +0 -0
- package/build/types/raiton.d.ts +12 -0
- package/build/types/raiton.mjs +0 -0
- package/build/types/repositories.d.ts +8 -0
- package/build/types/repositories.mjs +0 -0
- package/build/types/router.d.ts +14 -0
- package/build/types/router.mjs +0 -0
- package/build/types/runtime.d.ts +37 -0
- package/build/types/runtime.mjs +0 -0
- package/build/types/scheme.d.ts +128 -0
- package/build/types/scheme.mjs +0 -0
- package/build/types/server.d.ts +57 -0
- package/build/types/server.mjs +0 -0
- package/build/types/services.d.ts +8 -0
- package/build/types/services.mjs +0 -0
- package/build/types/thread.d.ts +24 -0
- package/build/types/thread.mjs +0 -0
- package/build/types/utilities.d.ts +6 -0
- package/build/types/utilities.mjs +0 -0
- package/build/types/values.d.ts +4 -0
- package/build/types/values.mjs +0 -0
- package/package.json +97 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// source/sdk/utilities/alias-path.util.ts
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import path from "path";
|
|
4
|
+
|
|
5
|
+
// tsconfig.json
|
|
6
|
+
var tsconfig_default = {
|
|
7
|
+
$schema: "https://json.schemastore.org/tsconfig",
|
|
8
|
+
compilerOptions: {
|
|
9
|
+
target: "ES2022",
|
|
10
|
+
module: "ES2022",
|
|
11
|
+
moduleResolution: "Node",
|
|
12
|
+
noStrictGenericChecks: false,
|
|
13
|
+
esModuleInterop: true,
|
|
14
|
+
strict: true,
|
|
15
|
+
skipLibCheck: true,
|
|
16
|
+
forceConsistentCasingInFileNames: true,
|
|
17
|
+
experimentalDecorators: true,
|
|
18
|
+
emitDecoratorMetadata: true,
|
|
19
|
+
resolveJsonModule: true,
|
|
20
|
+
declaration: true,
|
|
21
|
+
sourceMap: true,
|
|
22
|
+
types: [
|
|
23
|
+
"node",
|
|
24
|
+
"bun",
|
|
25
|
+
"deno"
|
|
26
|
+
],
|
|
27
|
+
baseUrl: "./",
|
|
28
|
+
outDir: "build",
|
|
29
|
+
rootDir: "source",
|
|
30
|
+
paths: {
|
|
31
|
+
"@/*": ["source/*"]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
include: [
|
|
35
|
+
"source"
|
|
36
|
+
],
|
|
37
|
+
exclude: [
|
|
38
|
+
"node_modules",
|
|
39
|
+
"build"
|
|
40
|
+
]
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// source/sdk/utilities/alias-path.util.ts
|
|
44
|
+
function aliasPath(pathname) {
|
|
45
|
+
const paths = tsconfig_default.compilerOptions?.paths ?? {};
|
|
46
|
+
const prefix = process.env.RAITON_NATURAL_MODE ? "" : tsconfig_default.compilerOptions?.outDir ?? "dist";
|
|
47
|
+
const baseUrl = tsconfig_default.compilerOptions?.baseUrl ?? ".";
|
|
48
|
+
for (const [aliasPattern, resolvedPaths] of Object.entries(paths)) {
|
|
49
|
+
const aliasKey = aliasPattern.replace("/*", "");
|
|
50
|
+
const aliasValue = path.join(prefix, resolvedPaths[0]?.replace("/*", ""));
|
|
51
|
+
if (pathname.startsWith(aliasKey)) {
|
|
52
|
+
const relativePath = pathname.replace(aliasKey, aliasValue);
|
|
53
|
+
const fullPath = path.resolve(baseUrl, relativePath);
|
|
54
|
+
const extensions = [".ts", ".js"];
|
|
55
|
+
for (const ext of extensions)
|
|
56
|
+
if (fs.existsSync(fullPath + ext))
|
|
57
|
+
return fullPath + ext;
|
|
58
|
+
if (fs.existsSync(path.join(fullPath, "index.ts")))
|
|
59
|
+
return path.join(fullPath, "index.ts");
|
|
60
|
+
if (fs.existsSync(path.join(fullPath, "index.js")))
|
|
61
|
+
return path.join(fullPath, "index.js");
|
|
62
|
+
if (fs.existsSync(path.join(fullPath, "index.mjs")))
|
|
63
|
+
return path.join(fullPath, "index.mjs");
|
|
64
|
+
if (fs.existsSync(path.join(fullPath, "index.cjs")))
|
|
65
|
+
return path.join(fullPath, "index.cjs");
|
|
66
|
+
return fullPath;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export {
|
|
73
|
+
aliasPath
|
|
74
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArtifactFactory
|
|
3
|
+
} from "./chunk-K4KLOLSO.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Throwable
|
|
6
|
+
} from "./chunk-VQINCGLQ.mjs";
|
|
7
|
+
|
|
8
|
+
// source/sdk/dependency-container.ts
|
|
9
|
+
import { Logger } from "@protorians/logger";
|
|
10
|
+
import { LifetimeEnum } from "@protorians/core";
|
|
11
|
+
var DependencyContainer = class {
|
|
12
|
+
constructor(artifact) {
|
|
13
|
+
this.artifact = artifact;
|
|
14
|
+
if (!artifact) throw new Throwable("Artifact name is required for DependencyContainer");
|
|
15
|
+
}
|
|
16
|
+
_classes = /* @__PURE__ */ new Map();
|
|
17
|
+
_instances = /* @__PURE__ */ new Map();
|
|
18
|
+
_extensions = ["ts", "js", "mjs", "cjs"];
|
|
19
|
+
get classes() {
|
|
20
|
+
return this._classes;
|
|
21
|
+
}
|
|
22
|
+
get instances() {
|
|
23
|
+
return this._instances;
|
|
24
|
+
}
|
|
25
|
+
register(name, construct, lifetime = LifetimeEnum.SINGLETON) {
|
|
26
|
+
this._classes.set(name, { name, construct, lifetime });
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
resolveArguments(definition) {
|
|
30
|
+
try {
|
|
31
|
+
throw new Throwable(`Dependency injection not yet implemented in ${this.artifact} on ${definition.name}`);
|
|
32
|
+
} catch (e) {
|
|
33
|
+
Logger.error("Resolve", e);
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
get(name) {
|
|
38
|
+
if (this._instances.has(name)) {
|
|
39
|
+
const current = this._classes.get(name);
|
|
40
|
+
return current ? current.lifetime === LifetimeEnum.SINGLETON ? current.instance : new current.construct(...this.resolveArguments(current)) : void 0;
|
|
41
|
+
}
|
|
42
|
+
const cls = this._classes.get(name);
|
|
43
|
+
if (!cls) throw new Throwable(`Dependency artifact ${name} not registered`);
|
|
44
|
+
if (cls.lifetime === LifetimeEnum.SINGLETON) {
|
|
45
|
+
if (!cls.instance)
|
|
46
|
+
cls.instance = new cls.construct(...this.resolveArguments(cls));
|
|
47
|
+
return cls.instance;
|
|
48
|
+
}
|
|
49
|
+
if (cls.lifetime === LifetimeEnum.TRANSIENT)
|
|
50
|
+
return new cls.construct(...this.resolveArguments(cls));
|
|
51
|
+
return void 0;
|
|
52
|
+
}
|
|
53
|
+
async imports() {
|
|
54
|
+
const imported = [];
|
|
55
|
+
const files = [
|
|
56
|
+
...(ArtifactFactory.get(this.artifact) || ArtifactFactory.load(this.artifact).get(this.artifact))?.values() || []
|
|
57
|
+
];
|
|
58
|
+
for (let file of files) {
|
|
59
|
+
try {
|
|
60
|
+
await import(file.absolute);
|
|
61
|
+
imported.push(file.absolute);
|
|
62
|
+
} catch (e) {
|
|
63
|
+
Logger.error("Dependency import", e);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return imported;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
DependencyContainer
|
|
72
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// source/core/router/matcher.ts
|
|
2
|
+
var RouteMatcher = class {
|
|
3
|
+
routes = /* @__PURE__ */ new Map();
|
|
4
|
+
getKey(route) {
|
|
5
|
+
return `${route.method}:${route.path}`;
|
|
6
|
+
}
|
|
7
|
+
add(route) {
|
|
8
|
+
this.routes.set(this.getKey(route), route);
|
|
9
|
+
return this;
|
|
10
|
+
}
|
|
11
|
+
has(route) {
|
|
12
|
+
return this.routes.has(this.getKey(route));
|
|
13
|
+
}
|
|
14
|
+
find(route) {
|
|
15
|
+
return this.routes.get(this.getKey(route));
|
|
16
|
+
}
|
|
17
|
+
replace(route) {
|
|
18
|
+
if (this.has(route)) {
|
|
19
|
+
this.routes.set(this.getKey(route), route);
|
|
20
|
+
}
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
upsert(route) {
|
|
24
|
+
this.routes.set(this.getKey(route), route);
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
remove(route) {
|
|
28
|
+
this.routes.delete(this.getKey(route));
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
match(method, url) {
|
|
32
|
+
for (const route of this.routes.values())
|
|
33
|
+
if (route.match(method, url))
|
|
34
|
+
return route.extractParams(url);
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
clear() {
|
|
38
|
+
this.routes.clear();
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
RouteMatcher
|
|
45
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RaitonCommand
|
|
3
|
+
} from "./chunk-HVFHDVAH.mjs";
|
|
4
|
+
|
|
5
|
+
// source/core/commands.ts
|
|
6
|
+
import fs from "fs";
|
|
7
|
+
import path from "path";
|
|
8
|
+
var RaitonCommands = class {
|
|
9
|
+
constructor(cli, appdir, workdir) {
|
|
10
|
+
this.cli = cli;
|
|
11
|
+
this.appdir = appdir;
|
|
12
|
+
this.workdir = workdir;
|
|
13
|
+
}
|
|
14
|
+
stack = /* @__PURE__ */ new Set();
|
|
15
|
+
async harvest() {
|
|
16
|
+
const dir = path.join(this.appdir, "commands");
|
|
17
|
+
const files = fs.readdirSync(dir);
|
|
18
|
+
for (const file of files) {
|
|
19
|
+
if (file.startsWith("~")) continue;
|
|
20
|
+
if (file.endsWith(".d.ts")) continue;
|
|
21
|
+
if (!file.includes(".command.")) continue;
|
|
22
|
+
const filepath = path.join(dir, file);
|
|
23
|
+
const mod = await import(filepath);
|
|
24
|
+
const capability = new mod.default(this.cli, this.workdir);
|
|
25
|
+
if (!(capability instanceof RaitonCommand)) continue;
|
|
26
|
+
capability.register();
|
|
27
|
+
this.stack.add(capability);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
RaitonCommands
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RouteMatcher
|
|
3
|
+
} from "./chunk-X3JFRRRQ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Route
|
|
6
|
+
} from "./chunk-P3IRIFPT.mjs";
|
|
7
|
+
|
|
8
|
+
// source/core/router/router.ts
|
|
9
|
+
var Router = class {
|
|
10
|
+
matcher = new RouteMatcher();
|
|
11
|
+
add(method, path, handler, version) {
|
|
12
|
+
const route = new Route({
|
|
13
|
+
method,
|
|
14
|
+
path,
|
|
15
|
+
handler,
|
|
16
|
+
version
|
|
17
|
+
});
|
|
18
|
+
this.matcher.add(route);
|
|
19
|
+
return route;
|
|
20
|
+
}
|
|
21
|
+
remove(route) {
|
|
22
|
+
this.matcher.remove(route);
|
|
23
|
+
}
|
|
24
|
+
match(method, url) {
|
|
25
|
+
return this.matcher.match(method, url);
|
|
26
|
+
}
|
|
27
|
+
reset() {
|
|
28
|
+
this.matcher.clear();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
Router
|
|
34
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// source/core/raiton.ts
|
|
2
|
+
import { Signal } from "@protorians/core";
|
|
3
|
+
var Raiton = class _Raiton {
|
|
4
|
+
static _thread;
|
|
5
|
+
static signals = new Signal.Stack();
|
|
6
|
+
static title = "Protorians Raiton";
|
|
7
|
+
static identifier = "raiton";
|
|
8
|
+
static get thread() {
|
|
9
|
+
if (!this._thread)
|
|
10
|
+
throw new Error(`${_Raiton.title} Thread instance not initialized`);
|
|
11
|
+
return this._thread;
|
|
12
|
+
}
|
|
13
|
+
static set thread(thread) {
|
|
14
|
+
this._thread = this._thread || thread;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
Raiton
|
|
20
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// source/sdk/enums/timestamp.enum.ts
|
|
2
|
+
var TimestampEnum = /* @__PURE__ */ ((TimestampEnum2) => {
|
|
3
|
+
TimestampEnum2["HH_MM_SS"] = "HH:mm:ss";
|
|
4
|
+
TimestampEnum2["HH_MM_SS_SSS"] = "HH:mm:ss.SSS";
|
|
5
|
+
TimestampEnum2["DD_MM_YYYY_HH_MM_SS"] = "DD/MM/YYYY HH:mm:ss";
|
|
6
|
+
TimestampEnum2["DD_MM_YYYY_HH_MM_SS_SSS"] = "DD/MM/YYYY HH:mm:ss.SSS";
|
|
7
|
+
return TimestampEnum2;
|
|
8
|
+
})(TimestampEnum || {});
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
TimestampEnum
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BuildCommandOptions } from '../types/builder.js';
|
|
2
|
+
import { RaitonCommand } from '../core/command.js';
|
|
3
|
+
import 'esbuild';
|
|
4
|
+
import '../types/hmr.js';
|
|
5
|
+
import 'commander';
|
|
6
|
+
|
|
7
|
+
declare class ArtifactCommand extends RaitonCommand {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly description: string;
|
|
10
|
+
register(): void;
|
|
11
|
+
protected run(options: BuildCommandOptions): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { ArtifactCommand as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import "../chunk-K4KLOLSO.mjs";
|
|
2
|
+
import "../chunk-RXG7754R.mjs";
|
|
3
|
+
import "../chunk-IOCHNQMF.mjs";
|
|
4
|
+
import "../chunk-M2RZZJQR.mjs";
|
|
5
|
+
import "../chunk-RVH2YBNU.mjs";
|
|
6
|
+
import "../chunk-MLFGBJDV.mjs";
|
|
7
|
+
import "../chunk-GPJSLV3Q.mjs";
|
|
8
|
+
import "../chunk-QFSXFOEN.mjs";
|
|
9
|
+
import "../chunk-JWNBO7XV.mjs";
|
|
10
|
+
import "../chunk-K4IQQ2KF.mjs";
|
|
11
|
+
import "../chunk-UCHBN3DV.mjs";
|
|
12
|
+
import "../chunk-VRL4S7UF.mjs";
|
|
13
|
+
import "../chunk-XW7EPAD7.mjs";
|
|
14
|
+
import "../chunk-QHCQ4AUA.mjs";
|
|
15
|
+
import "../chunk-YRVIAORI.mjs";
|
|
16
|
+
import "../chunk-UZFCGVHP.mjs";
|
|
17
|
+
import "../chunk-XIGE72LC.mjs";
|
|
18
|
+
import "../chunk-X3JFRRRQ.mjs";
|
|
19
|
+
import "../chunk-P3IRIFPT.mjs";
|
|
20
|
+
import "../chunk-S3ONGVNZ.mjs";
|
|
21
|
+
import "../chunk-DIWD7ZCJ.mjs";
|
|
22
|
+
import "../chunk-52JR26TI.mjs";
|
|
23
|
+
import "../chunk-JATYBWHL.mjs";
|
|
24
|
+
import "../chunk-VQINCGLQ.mjs";
|
|
25
|
+
import "../chunk-4OWCGDUD.mjs";
|
|
26
|
+
import "../chunk-YXU5W2CB.mjs";
|
|
27
|
+
import "../chunk-UAPCBU3J.mjs";
|
|
28
|
+
import "../chunk-O7R3NJQN.mjs";
|
|
29
|
+
import "../chunk-BYYJRCB4.mjs";
|
|
30
|
+
import "../chunk-FFRJ4AUA.mjs";
|
|
31
|
+
import "../chunk-3PWMRP6G.mjs";
|
|
32
|
+
import "../chunk-T6L55AUG.mjs";
|
|
33
|
+
import "../chunk-QI7OFSXB.mjs";
|
|
34
|
+
import "../chunk-TOJFTPAY.mjs";
|
|
35
|
+
import "../chunk-NB62GSFI.mjs";
|
|
36
|
+
import "../chunk-5LNOA4SK.mjs";
|
|
37
|
+
import "../chunk-YGIZFKLJ.mjs";
|
|
38
|
+
import "../chunk-UWM46HLZ.mjs";
|
|
39
|
+
import "../chunk-XFBLELHI.mjs";
|
|
40
|
+
import {
|
|
41
|
+
RaitonCommand
|
|
42
|
+
} from "../chunk-HVFHDVAH.mjs";
|
|
43
|
+
|
|
44
|
+
// source/commands/artifact.command.ts
|
|
45
|
+
import { Logger } from "@protorians/logger";
|
|
46
|
+
var ArtifactCommand = class extends RaitonCommand {
|
|
47
|
+
name = "artifact";
|
|
48
|
+
description = "Manage artifacts";
|
|
49
|
+
register() {
|
|
50
|
+
this.cli.command(this.name).alias("art").description(this.description).option("--dump, -d", "Dump the application artifacts configured").option("--create, -c", "Create an artifact").option("--remove, -r", "Remove an artifact").option("--clear", "Clear all artifacts").action(this.run.bind(this));
|
|
51
|
+
}
|
|
52
|
+
async run(options) {
|
|
53
|
+
Logger.notice("Artifact management is not yet implemented");
|
|
54
|
+
Logger.debug("Options:", options, "");
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
ArtifactCommand as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BuildCommandOptions } from '../types/builder.js';
|
|
2
|
+
import { RaitonCommand } from '../core/command.js';
|
|
3
|
+
import 'esbuild';
|
|
4
|
+
import '../types/hmr.js';
|
|
5
|
+
import 'commander';
|
|
6
|
+
|
|
7
|
+
declare class BuildCommand extends RaitonCommand {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly description: string;
|
|
10
|
+
register(): void;
|
|
11
|
+
protected run(options: BuildCommandOptions): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { BuildCommand as default };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
RaitonBuilder
|
|
3
|
+
} from "../chunk-K4KLOLSO.mjs";
|
|
4
|
+
import "../chunk-RXG7754R.mjs";
|
|
5
|
+
import "../chunk-IOCHNQMF.mjs";
|
|
6
|
+
import "../chunk-M2RZZJQR.mjs";
|
|
7
|
+
import "../chunk-RVH2YBNU.mjs";
|
|
8
|
+
import "../chunk-MLFGBJDV.mjs";
|
|
9
|
+
import "../chunk-GPJSLV3Q.mjs";
|
|
10
|
+
import "../chunk-QFSXFOEN.mjs";
|
|
11
|
+
import "../chunk-JWNBO7XV.mjs";
|
|
12
|
+
import "../chunk-K4IQQ2KF.mjs";
|
|
13
|
+
import "../chunk-UCHBN3DV.mjs";
|
|
14
|
+
import "../chunk-VRL4S7UF.mjs";
|
|
15
|
+
import "../chunk-XW7EPAD7.mjs";
|
|
16
|
+
import "../chunk-QHCQ4AUA.mjs";
|
|
17
|
+
import "../chunk-YRVIAORI.mjs";
|
|
18
|
+
import "../chunk-UZFCGVHP.mjs";
|
|
19
|
+
import "../chunk-XIGE72LC.mjs";
|
|
20
|
+
import "../chunk-X3JFRRRQ.mjs";
|
|
21
|
+
import "../chunk-P3IRIFPT.mjs";
|
|
22
|
+
import "../chunk-S3ONGVNZ.mjs";
|
|
23
|
+
import "../chunk-DIWD7ZCJ.mjs";
|
|
24
|
+
import "../chunk-52JR26TI.mjs";
|
|
25
|
+
import "../chunk-JATYBWHL.mjs";
|
|
26
|
+
import "../chunk-VQINCGLQ.mjs";
|
|
27
|
+
import "../chunk-4OWCGDUD.mjs";
|
|
28
|
+
import "../chunk-YXU5W2CB.mjs";
|
|
29
|
+
import "../chunk-UAPCBU3J.mjs";
|
|
30
|
+
import "../chunk-O7R3NJQN.mjs";
|
|
31
|
+
import "../chunk-BYYJRCB4.mjs";
|
|
32
|
+
import "../chunk-FFRJ4AUA.mjs";
|
|
33
|
+
import "../chunk-3PWMRP6G.mjs";
|
|
34
|
+
import "../chunk-T6L55AUG.mjs";
|
|
35
|
+
import "../chunk-QI7OFSXB.mjs";
|
|
36
|
+
import "../chunk-TOJFTPAY.mjs";
|
|
37
|
+
import "../chunk-NB62GSFI.mjs";
|
|
38
|
+
import "../chunk-5LNOA4SK.mjs";
|
|
39
|
+
import "../chunk-YGIZFKLJ.mjs";
|
|
40
|
+
import "../chunk-UWM46HLZ.mjs";
|
|
41
|
+
import "../chunk-XFBLELHI.mjs";
|
|
42
|
+
import {
|
|
43
|
+
RaitonCommand
|
|
44
|
+
} from "../chunk-HVFHDVAH.mjs";
|
|
45
|
+
|
|
46
|
+
// source/commands/build.command.ts
|
|
47
|
+
import { LBadge, Logger } from "@protorians/logger";
|
|
48
|
+
var BuildCommand = class extends RaitonCommand {
|
|
49
|
+
name = "build";
|
|
50
|
+
description = "Build the application";
|
|
51
|
+
register() {
|
|
52
|
+
this.cli.command(this.name).alias("b").description("Build the application").option("--develop, -d", "Build in development mode").option("--bootstrap, -b", "Bootstrap the application").action(this.run.bind(this));
|
|
53
|
+
}
|
|
54
|
+
async run(options) {
|
|
55
|
+
if (options.develop) Logger.warn(LBadge.log("Dev Mode"));
|
|
56
|
+
const builder = new RaitonBuilder(this.workdir, {
|
|
57
|
+
development: options.develop
|
|
58
|
+
});
|
|
59
|
+
await builder.prepare();
|
|
60
|
+
await builder.start(async () => options.develop || options.bootstrap ? await builder.boot() : void 0);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
BuildCommand as default
|
|
65
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RaitonCommand } from '../core/command.js';
|
|
2
|
+
import 'commander';
|
|
3
|
+
|
|
4
|
+
declare class DevelopCommand extends RaitonCommand {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly description: string;
|
|
7
|
+
private child;
|
|
8
|
+
register(): void;
|
|
9
|
+
protected restart(): Promise<void>;
|
|
10
|
+
protected run(): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { DevelopCommand as default };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import "../chunk-K4KLOLSO.mjs";
|
|
2
|
+
import "../chunk-RXG7754R.mjs";
|
|
3
|
+
import "../chunk-IOCHNQMF.mjs";
|
|
4
|
+
import "../chunk-M2RZZJQR.mjs";
|
|
5
|
+
import "../chunk-RVH2YBNU.mjs";
|
|
6
|
+
import "../chunk-MLFGBJDV.mjs";
|
|
7
|
+
import "../chunk-GPJSLV3Q.mjs";
|
|
8
|
+
import "../chunk-QFSXFOEN.mjs";
|
|
9
|
+
import "../chunk-JWNBO7XV.mjs";
|
|
10
|
+
import "../chunk-K4IQQ2KF.mjs";
|
|
11
|
+
import "../chunk-UCHBN3DV.mjs";
|
|
12
|
+
import "../chunk-VRL4S7UF.mjs";
|
|
13
|
+
import "../chunk-XW7EPAD7.mjs";
|
|
14
|
+
import "../chunk-QHCQ4AUA.mjs";
|
|
15
|
+
import "../chunk-YRVIAORI.mjs";
|
|
16
|
+
import "../chunk-UZFCGVHP.mjs";
|
|
17
|
+
import "../chunk-XIGE72LC.mjs";
|
|
18
|
+
import "../chunk-X3JFRRRQ.mjs";
|
|
19
|
+
import "../chunk-P3IRIFPT.mjs";
|
|
20
|
+
import "../chunk-S3ONGVNZ.mjs";
|
|
21
|
+
import "../chunk-DIWD7ZCJ.mjs";
|
|
22
|
+
import "../chunk-52JR26TI.mjs";
|
|
23
|
+
import "../chunk-JATYBWHL.mjs";
|
|
24
|
+
import "../chunk-VQINCGLQ.mjs";
|
|
25
|
+
import "../chunk-4OWCGDUD.mjs";
|
|
26
|
+
import "../chunk-YXU5W2CB.mjs";
|
|
27
|
+
import "../chunk-UAPCBU3J.mjs";
|
|
28
|
+
import "../chunk-O7R3NJQN.mjs";
|
|
29
|
+
import "../chunk-BYYJRCB4.mjs";
|
|
30
|
+
import "../chunk-FFRJ4AUA.mjs";
|
|
31
|
+
import "../chunk-3PWMRP6G.mjs";
|
|
32
|
+
import "../chunk-T6L55AUG.mjs";
|
|
33
|
+
import "../chunk-QI7OFSXB.mjs";
|
|
34
|
+
import "../chunk-TOJFTPAY.mjs";
|
|
35
|
+
import "../chunk-NB62GSFI.mjs";
|
|
36
|
+
import "../chunk-5LNOA4SK.mjs";
|
|
37
|
+
import {
|
|
38
|
+
Raiton
|
|
39
|
+
} from "../chunk-YGIZFKLJ.mjs";
|
|
40
|
+
import "../chunk-UWM46HLZ.mjs";
|
|
41
|
+
import "../chunk-XFBLELHI.mjs";
|
|
42
|
+
import {
|
|
43
|
+
RaitonCommand
|
|
44
|
+
} from "../chunk-HVFHDVAH.mjs";
|
|
45
|
+
|
|
46
|
+
// source/commands/develop.command.ts
|
|
47
|
+
import { spawn } from "child_process";
|
|
48
|
+
import { Logger } from "@protorians/logger";
|
|
49
|
+
var DevelopCommand = class extends RaitonCommand {
|
|
50
|
+
name = "develop";
|
|
51
|
+
description = "Run the application in development mode";
|
|
52
|
+
child = null;
|
|
53
|
+
register() {
|
|
54
|
+
this.cli.command(this.name).alias("dev").description("Start the application in development mode").action(this.run.bind(this));
|
|
55
|
+
}
|
|
56
|
+
async restart() {
|
|
57
|
+
Logger.info("Reloading...");
|
|
58
|
+
console.clear();
|
|
59
|
+
this.child?.kill("SIGTERM");
|
|
60
|
+
this.child?.on("exit", () => this.run());
|
|
61
|
+
}
|
|
62
|
+
async run() {
|
|
63
|
+
this.child = spawn(Raiton.identifier, ["build", "-d"], {
|
|
64
|
+
stdio: ["inherit", "inherit", "inherit", "ipc"],
|
|
65
|
+
cwd: this.workdir
|
|
66
|
+
});
|
|
67
|
+
this.child.on("message", (msg) => {
|
|
68
|
+
if (msg === ":restart" /* RESTART */) this.restart();
|
|
69
|
+
});
|
|
70
|
+
Logger.log("PID", this.child.pid);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
DevelopCommand as default
|
|
75
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RaitonCommand } from '../core/command.js';
|
|
2
|
+
import 'commander';
|
|
3
|
+
|
|
4
|
+
declare class GraftsCommand extends RaitonCommand {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly description: string;
|
|
7
|
+
readonly version: string;
|
|
8
|
+
register(): void;
|
|
9
|
+
protected generates(): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { GraftsCommand as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import "../chunk-K4KLOLSO.mjs";
|
|
2
|
+
import "../chunk-RXG7754R.mjs";
|
|
3
|
+
import "../chunk-IOCHNQMF.mjs";
|
|
4
|
+
import "../chunk-M2RZZJQR.mjs";
|
|
5
|
+
import "../chunk-RVH2YBNU.mjs";
|
|
6
|
+
import "../chunk-MLFGBJDV.mjs";
|
|
7
|
+
import "../chunk-GPJSLV3Q.mjs";
|
|
8
|
+
import "../chunk-QFSXFOEN.mjs";
|
|
9
|
+
import "../chunk-JWNBO7XV.mjs";
|
|
10
|
+
import "../chunk-K4IQQ2KF.mjs";
|
|
11
|
+
import "../chunk-UCHBN3DV.mjs";
|
|
12
|
+
import "../chunk-VRL4S7UF.mjs";
|
|
13
|
+
import "../chunk-XW7EPAD7.mjs";
|
|
14
|
+
import "../chunk-QHCQ4AUA.mjs";
|
|
15
|
+
import "../chunk-YRVIAORI.mjs";
|
|
16
|
+
import "../chunk-UZFCGVHP.mjs";
|
|
17
|
+
import "../chunk-XIGE72LC.mjs";
|
|
18
|
+
import "../chunk-X3JFRRRQ.mjs";
|
|
19
|
+
import "../chunk-P3IRIFPT.mjs";
|
|
20
|
+
import "../chunk-S3ONGVNZ.mjs";
|
|
21
|
+
import "../chunk-DIWD7ZCJ.mjs";
|
|
22
|
+
import "../chunk-52JR26TI.mjs";
|
|
23
|
+
import "../chunk-JATYBWHL.mjs";
|
|
24
|
+
import "../chunk-VQINCGLQ.mjs";
|
|
25
|
+
import "../chunk-4OWCGDUD.mjs";
|
|
26
|
+
import "../chunk-YXU5W2CB.mjs";
|
|
27
|
+
import "../chunk-UAPCBU3J.mjs";
|
|
28
|
+
import "../chunk-O7R3NJQN.mjs";
|
|
29
|
+
import "../chunk-BYYJRCB4.mjs";
|
|
30
|
+
import "../chunk-FFRJ4AUA.mjs";
|
|
31
|
+
import "../chunk-3PWMRP6G.mjs";
|
|
32
|
+
import "../chunk-T6L55AUG.mjs";
|
|
33
|
+
import "../chunk-QI7OFSXB.mjs";
|
|
34
|
+
import "../chunk-TOJFTPAY.mjs";
|
|
35
|
+
import "../chunk-NB62GSFI.mjs";
|
|
36
|
+
import "../chunk-5LNOA4SK.mjs";
|
|
37
|
+
import "../chunk-YGIZFKLJ.mjs";
|
|
38
|
+
import "../chunk-UWM46HLZ.mjs";
|
|
39
|
+
import "../chunk-XFBLELHI.mjs";
|
|
40
|
+
import {
|
|
41
|
+
RaitonCommand
|
|
42
|
+
} from "../chunk-HVFHDVAH.mjs";
|
|
43
|
+
|
|
44
|
+
// source/commands/grafts.command.ts
|
|
45
|
+
var GraftsCommand = class extends RaitonCommand {
|
|
46
|
+
name = "grafts";
|
|
47
|
+
description = "Generates typings grafts";
|
|
48
|
+
version = "0.0.1";
|
|
49
|
+
register() {
|
|
50
|
+
this.cli.command(this.name).description("Generates typings grafts").action(this.generates.bind(this));
|
|
51
|
+
}
|
|
52
|
+
async generates() {
|
|
53
|
+
console.log("Running grafts generator command");
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
GraftsCommand as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RaitonCommand } from '../core/command.js';
|
|
2
|
+
import 'commander';
|
|
3
|
+
|
|
4
|
+
declare class StartCommand extends RaitonCommand {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly description: string;
|
|
7
|
+
private child;
|
|
8
|
+
register(): void;
|
|
9
|
+
protected run(): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { StartCommand as default };
|