@anu8151/adonisjs-blueprint 0.4.1 → 0.4.2
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/build/{base_generator-DOMn-U0f.d.ts → base_generator-CUFnptrY.d.ts} +1 -1
- package/build/{event_generator-DVSh_7fH.d.ts → event_generator-CHHxDOk4.d.ts} +1 -1
- package/build/{job_generator-BxEjVVDl.d.ts → job_generator-ERXviOnf.d.ts} +1 -1
- package/build/{mail_generator-2j0SThZE.d.ts → mail_generator-Hb-5Plo5.d.ts} +1 -1
- package/build/{notification_generator-BvDpMRu-.d.ts → notification_generator-Ch2YAbmf.d.ts} +1 -1
- package/build/{parser-CfMUNpTO.js → parser-CmOj1YQa.js} +23 -1
- package/build/{service_generator-DkhvTVzm.d.ts → service_generator-BDehazXs.d.ts} +1 -1
- package/build/src/commands/build.js +1 -1
- package/build/src/commands/main.d.ts +5 -4
- package/build/src/commands/main.js +6 -13
- package/build/src/parser.js +1 -1
- package/package.json +1 -1
- package/build/chunk-BoAXSpZd.js +0 -33
- /package/build/{types-DTlzGpWR.d.ts → types-Cyzao-RJ.d.ts} +0 -0
- /package/build/{types-DGOelf2A.d.ts → types-yytnGNCW.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Macroable, r as Exception, t as HookHandler } from "./types-
|
|
1
|
+
import { n as Macroable, r as Exception, t as HookHandler } from "./types-yytnGNCW.js";
|
|
2
2
|
import { Codemods } from "@adonisjs/core/ace/codemods";
|
|
3
3
|
import { AssemblerRcFile } from "@adonisjs/assembler/types";
|
|
4
4
|
import diagnostics_channel from "node:diagnostics_channel";
|
|
@@ -1,8 +1,30 @@
|
|
|
1
|
-
import { r as __toESM, t as __commonJSMin } from "./chunk-BoAXSpZd.js";
|
|
2
1
|
import { fileURLToPath } from "node:url";
|
|
3
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
3
|
import { parse } from "yaml";
|
|
5
4
|
import { dirname, join } from "node:path";
|
|
5
|
+
//#region \0rolldown/runtime.js
|
|
6
|
+
var __create = Object.create;
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
10
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
15
|
+
key = keys[i];
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: ((k) => from[k]).bind(null, key),
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
//#endregion
|
|
6
28
|
//#region node_modules/ajv/dist/compile/codegen/code.js
|
|
7
29
|
var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as BlueprintParser } from "../../parser-
|
|
1
|
+
import { t as BlueprintParser } from "../../parser-CmOj1YQa.js";
|
|
2
2
|
import { ModelGenerator } from "../generators/model_generator.js";
|
|
3
3
|
import { MigrationGenerator } from "../generators/migration_generator.js";
|
|
4
4
|
import { ControllerGenerator } from "../generators/controller_generator.js";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export declare const commands: (() => Promise<typeof import("./erase.js")>)[];
|
|
2
1
|
/**
|
|
3
2
|
* Metadata for the commands.
|
|
4
3
|
* Used by Ace Kernel to display help/list.
|
|
5
4
|
*/
|
|
6
5
|
export declare function getMetaData(): Promise<import("@adonisjs/ace/types").CommandMetaData[]>;
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Returns the command class for a given metadata object.
|
|
8
|
+
* This is called when the user actually tries to run the command.
|
|
10
9
|
*/
|
|
11
|
-
export declare function
|
|
10
|
+
export declare function getCommand(metaData: {
|
|
11
|
+
commandName: string;
|
|
12
|
+
}): Promise<any>;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
//#region src/commands/main.ts
|
|
2
|
-
const commands = [
|
|
3
|
-
() => import("./build.js"),
|
|
4
|
-
() => import("./erase.js"),
|
|
5
|
-
() => import("./trace.js"),
|
|
6
|
-
() => import("./stubs.js"),
|
|
7
|
-
() => import("./init.js")
|
|
8
|
-
];
|
|
9
2
|
/**
|
|
10
3
|
* Metadata for the commands.
|
|
11
4
|
* Used by Ace Kernel to display help/list.
|
|
@@ -27,10 +20,10 @@ async function getMetaData() {
|
|
|
27
20
|
];
|
|
28
21
|
}
|
|
29
22
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
23
|
+
* Returns the command class for a given metadata object.
|
|
24
|
+
* This is called when the user actually tries to run the command.
|
|
32
25
|
*/
|
|
33
|
-
async function
|
|
26
|
+
async function getCommand(metaData) {
|
|
34
27
|
const map = {
|
|
35
28
|
"blueprint:build": () => import("./build.js"),
|
|
36
29
|
"blueprint:erase": () => import("./erase.js"),
|
|
@@ -38,8 +31,8 @@ async function load(commandName) {
|
|
|
38
31
|
"blueprint:stubs": () => import("./stubs.js"),
|
|
39
32
|
"blueprint:init": () => import("./init.js")
|
|
40
33
|
};
|
|
41
|
-
if (map[commandName]) return map[commandName]();
|
|
42
|
-
|
|
34
|
+
if (map[metaData.commandName]) return (await map[metaData.commandName]()).default;
|
|
35
|
+
return null;
|
|
43
36
|
}
|
|
44
37
|
//#endregion
|
|
45
|
-
export {
|
|
38
|
+
export { getCommand, getMetaData };
|
package/build/src/parser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as BlueprintParser } from "../parser-
|
|
1
|
+
import { t as BlueprintParser } from "../parser-CmOj1YQa.js";
|
|
2
2
|
export { BlueprintParser };
|
package/package.json
CHANGED
package/build/chunk-BoAXSpZd.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
-
var __exportAll = (all, no_symbols) => {
|
|
10
|
-
let target = {};
|
|
11
|
-
for (var name in all) __defProp(target, name, {
|
|
12
|
-
get: all[name],
|
|
13
|
-
enumerable: true
|
|
14
|
-
});
|
|
15
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
-
return target;
|
|
17
|
-
};
|
|
18
|
-
var __copyProps = (to, from, except, desc) => {
|
|
19
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
-
key = keys[i];
|
|
21
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
-
get: ((k) => from[k]).bind(null, key),
|
|
23
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
29
|
-
value: mod,
|
|
30
|
-
enumerable: true
|
|
31
|
-
}) : target, mod));
|
|
32
|
-
//#endregion
|
|
33
|
-
export { __exportAll as n, __toESM as r, __commonJSMin as t };
|
|
File without changes
|
|
File without changes
|