@anu8151/adonisjs-blueprint 0.3.5 → 0.3.7

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.
@@ -0,0 +1,33 @@
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 };
@@ -1,10 +1,17 @@
1
1
  import { stubsRoot } from "./stubs/main.js";
2
2
  //#region configure.ts
3
3
  async function configure(command) {
4
+ const codemods = await command.createCodemods();
4
5
  /**
5
6
  * Publish config file
6
7
  */
7
- await (await command.createCodemods()).makeUsingStub(stubsRoot, "config.stub", {});
8
+ await codemods.makeUsingStub(stubsRoot, "config.stub", {});
9
+ /**
10
+ * Register commands in adonisrc.ts
11
+ */
12
+ await codemods.updateRcFile((rcFile) => {
13
+ rcFile.addCommand("@anu8151/adonisjs-blueprint/commands");
14
+ });
8
15
  }
9
16
  //#endregion
10
17
  export { configure };
@@ -1,4 +1,4 @@
1
- import { t as BaseGenerator } from "./base_generator-DnmbQ4rq.js";
1
+ import { t as BaseGenerator } from "./base_generator-ClKso0XJ.js";
2
2
 
3
3
  //#region src/generators/event_generator.d.ts
4
4
  declare class EventGenerator extends BaseGenerator {
@@ -1,4 +1,4 @@
1
- import { t as BaseGenerator } from "./base_generator-DnmbQ4rq.js";
1
+ import { t as BaseGenerator } from "./base_generator-ClKso0XJ.js";
2
2
 
3
3
  //#region src/generators/job_generator.d.ts
4
4
  declare class JobGenerator extends BaseGenerator {
@@ -1,4 +1,4 @@
1
- import { t as BaseGenerator } from "./base_generator-DnmbQ4rq.js";
1
+ import { t as BaseGenerator } from "./base_generator-ClKso0XJ.js";
2
2
 
3
3
  //#region src/generators/mail_generator.d.ts
4
4
  declare class MailGenerator extends BaseGenerator {
@@ -1,4 +1,4 @@
1
- import { t as BaseGenerator } from "./base_generator-DnmbQ4rq.js";
1
+ import { t as BaseGenerator } from "./base_generator-ClKso0XJ.js";
2
2
 
3
3
  //#region src/generators/notification_generator.d.ts
4
4
  declare class NotificationGenerator extends BaseGenerator {
@@ -1,30 +1,8 @@
1
+ import { r as __toESM, t as __commonJSMin } from "./chunk-BoAXSpZd.js";
1
2
  import { fileURLToPath } from "node:url";
2
3
  import { existsSync, readFileSync } from "node:fs";
3
4
  import { parse } from "yaml";
4
5
  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
28
6
  //#region node_modules/ajv/dist/compile/codegen/code.js
29
7
  var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
30
8
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { t as BaseGenerator } from "./base_generator-DnmbQ4rq.js";
1
+ import { t as BaseGenerator } from "./base_generator-ClKso0XJ.js";
2
2
 
3
3
  //#region src/generators/service_generator.d.ts
4
4
  declare class ServiceGenerator extends BaseGenerator {
@@ -1,4 +1,4 @@
1
- import { t as BlueprintParser } from "../../parser-CmOj1YQa.js";
1
+ import { t as BlueprintParser } from "../../parser-CfMUNpTO.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,3 +1 @@
1
- declare const commands: (() => Promise<typeof import("./erase.js")>)[];
2
- export { commands };
3
- export default commands;
1
+ export declare const commands: (() => Promise<typeof import("./erase.js")>)[];
@@ -0,0 +1,10 @@
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
+ //#endregion
10
+ export { commands };
@@ -1,2 +1,2 @@
1
- import { t as BlueprintParser } from "../parser-CmOj1YQa.js";
1
+ import { t as BlueprintParser } from "../parser-CfMUNpTO.js";
2
2
  export { BlueprintParser };
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@anu8151/adonisjs-blueprint",
3
3
  "description": "Blueprint for AdonisJS 7",
4
- "version": "0.3.5",
4
+ "version": "0.3.7",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
8
+ "main": "build/index.js",
8
9
  "type": "module",
9
10
  "files": [
10
11
  "build",
@@ -12,15 +13,10 @@
12
13
  "!build/bin",
13
14
  "!build/tests"
14
15
  ],
15
- "main": "build/index.js",
16
16
  "exports": {
17
17
  ".": "./build/index.js",
18
18
  "./types": "./build/src/types.js",
19
- "./commands/build": "./build/src/commands/build.js",
20
- "./commands/erase": "./build/src/commands/erase.js",
21
- "./commands/init": "./build/src/commands/init.js",
22
- "./commands/stubs": "./build/src/commands/stubs.js",
23
- "./commands/trace": "./build/src/commands/trace.js"
19
+ "./commands": "./build/src/commands/main.js"
24
20
  },
25
21
  "scripts": {
26
22
  "copy:templates": "copyfiles \"stubs/**/*.stub\" build",
@@ -85,11 +81,7 @@
85
81
  ],
86
82
  "adonisjs": {
87
83
  "commands": [
88
- "@anu8151/adonisjs-blueprint/commands/build",
89
- "@anu8151/adonisjs-blueprint/commands/erase",
90
- "@anu8151/adonisjs-blueprint/commands/init",
91
- "@anu8151/adonisjs-blueprint/commands/stubs",
92
- "@anu8151/adonisjs-blueprint/commands/trace"
84
+ "@anu8151/adonisjs-blueprint/commands"
93
85
  ]
94
86
  },
95
87
  "author": "ANU8151",
@@ -103,6 +95,7 @@
103
95
  "./index.ts",
104
96
  "./configure.ts",
105
97
  "./stubs/main.ts",
98
+ "./src/commands/main.ts",
106
99
  "./src/commands/build.ts",
107
100
  "./src/commands/erase.ts",
108
101
  "./src/commands/trace.ts",