@adonisjs/core 7.0.0-next.14 → 7.0.0-next.15
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/{ace-DDzvaSs_.js → ace-CYvqhV0y.js} +3 -3
- package/build/commands/add.d.ts +4 -3
- package/build/commands/add.js +52 -16
- package/build/commands/build.js +3 -3
- package/build/commands/commands.json +1 -1
- package/build/commands/configure.js +2 -2
- package/build/commands/eject.js +3 -3
- package/build/commands/env/add.js +3 -3
- package/build/commands/generate_key.js +2 -2
- package/build/commands/inspect_rcfile.js +1 -1
- package/build/commands/list/routes.js +2 -2
- package/build/commands/make/command.js +2 -2
- package/build/commands/make/controller.js +2 -2
- package/build/commands/make/event.js +2 -2
- package/build/commands/make/exception.js +2 -2
- package/build/commands/make/listener.js +2 -2
- package/build/commands/make/middleware.js +3 -3
- package/build/commands/make/preload.js +3 -3
- package/build/commands/make/provider.js +3 -3
- package/build/commands/make/service.js +2 -2
- package/build/commands/make/test.js +2 -2
- package/build/commands/make/transformer.js +2 -2
- package/build/commands/make/validator.js +2 -2
- package/build/commands/make/view.js +2 -2
- package/build/commands/repl.js +1 -1
- package/build/commands/serve.js +3 -3
- package/build/commands/test.js +3 -3
- package/build/{config_provider-CY-xuo2R.js → config_provider-DWVFHOQX.js} +3 -1
- package/build/{core-CffBtWJW.js → core-BuRVIObK.js} +37 -11
- package/build/create_kernel-Cn8zVtvt.js +3 -0
- package/build/{create_kernel-B7zWS8Zz.js → create_kernel-Cpqqa931.js} +1 -1
- package/build/define_config-BvoRgVYO.js +62 -0
- package/build/exceptions-DNMesP42.js +2 -0
- package/build/factories/core/ace.js +12 -11
- package/build/factories/core/ignitor.js +9 -8
- package/build/factories/core/main.js +18 -16
- package/build/factories/core/test_utils.js +15 -13
- package/build/factories/encryption.d.ts +1 -1
- package/build/factories/encryption.js +1 -1
- package/build/factories/stubs.js +5 -6
- package/build/{ignitor-Dil-rtCo.js → ignitor-BAHDhsmQ.js} +14 -6
- package/build/index.d.ts +1 -1
- package/build/index.js +5 -6
- package/build/{main-BTUXw6He.js → main-B3Y59dQ2.js} +2 -2
- package/build/{main-CFmDHDls.js → main-BA5_XHM0.js} +2 -7
- package/build/{main-BrJQ1VAM.js → main-BPDqyZic.js} +1 -2
- package/build/main-Bfnr5tAw.js +2 -0
- package/build/{main-2-nm3TiB.js → main-TtUIT86D.js} +4 -3
- package/build/modules/ace/codemods.js +1 -1
- package/build/modules/ace/main.js +1 -1
- package/build/modules/bodyparser/bodyparser_middleware.js +1 -1
- package/build/modules/bodyparser/main.js +1 -1
- package/build/modules/config.js +1 -1
- package/build/modules/dumper/main.js +1 -1
- package/build/modules/dumper/plugins/edge.js +1 -1
- package/build/modules/encryption/define_config.d.ts +127 -0
- package/build/modules/encryption/drivers/aes_256_cbc.d.ts +20 -0
- package/build/modules/encryption/drivers/aes_256_cbc.js +2 -0
- package/build/modules/encryption/drivers/aes_256_gcm.d.ts +21 -0
- package/build/modules/encryption/drivers/aes_256_gcm.js +2 -0
- package/build/modules/encryption/drivers/chacha20_poly1305.d.ts +21 -0
- package/build/modules/encryption/drivers/chacha20_poly1305.js +2 -0
- package/build/modules/encryption/main.d.ts +85 -0
- package/build/modules/encryption/main.js +5 -0
- package/build/modules/events.js +1 -1
- package/build/modules/hash/main.js +2 -3
- package/build/modules/http/main.js +1 -1
- package/build/modules/http/request_validator.d.ts +1 -3
- package/build/modules/logger.js +1 -1
- package/build/modules/repl.js +1 -1
- package/build/modules/transformers/main.js +1 -1
- package/build/providers/app_provider.d.ts +5 -4
- package/build/providers/app_provider.js +22 -14
- package/build/providers/edge_provider.js +2 -2
- package/build/providers/hash_provider.js +2 -3
- package/build/providers/repl_provider.js +1 -1
- package/build/providers/vinejs_provider.js +3 -4
- package/build/src/debug.d.ts +1 -1
- package/build/src/exceptions.js +1 -1
- package/build/src/helpers/main.js +1 -1
- package/build/src/helpers/string.js +1 -1
- package/build/src/helpers/verification_token.js +1 -1
- package/build/src/test_utils/main.js +6 -3
- package/build/src/types.d.ts +65 -8
- package/build/src/vine.js +1 -1
- package/build/{test_utils-c_TEaEHW.js → test_utils-DCaos98d.js} +3 -3
- package/build/toolkit/main.js +1 -1
- package/build/types/encryption.d.ts +39 -1
- package/build/types/encryption.js +0 -1
- package/build/{utils-Dpa3iJz-.js → utils-CtGytdtt.js} +1 -0
- package/package.json +44 -42
- package/build/create_kernel-CsTq0pWc.js +0 -3
- package/build/debug-DURPi9xn.js +0 -3
- package/build/encryption-D2HGu0bU.js +0 -5
- package/build/modules/encryption.d.ts +0 -18
- package/build/modules/encryption.js +0 -4
- /package/build/{bodyparser_middleware-DTW0epKM.js → bodyparser_middleware-BmARtnYe.js} +0 -0
- /package/build/{config-B2S2xfmN.js → config-BwupGyeJ.js} +0 -0
- /package/build/{decorate-DM0Sx1ye.js → decorate-CJcHOoD-.js} +0 -0
- /package/build/{dumper-C_sMcyFb.js → dumper-D29dE_xc.js} +0 -0
- /package/build/{edge-LQdCc1L3.js → edge-BVYR-Vjr.js} +0 -0
- /package/build/{events-B8hK42QT.js → events-BW2flEef.js} +0 -0
- /package/build/{logger-Dha-0hp1.js → logger-C2asB8px.js} +0 -0
- /package/build/{main-BWftwyAK.js → main-BlJhxJJ2.js} +0 -0
- /package/build/{main-D5xz2ZN1.js → main-CP75MhEW.js} +0 -0
- /package/build/{main-q9TMzWUj.js → main-OHZwVYZ4.js} +0 -0
- /package/build/{repl-CumYg2V_.js → repl-BF2TbFoO.js} +0 -0
- /package/build/{string-CJ7ewUFq.js → string-Cx6q_win.js} +0 -0
- /package/build/{verification_token-DXsW81rl.js → verification_token-DrdoU4RH.js} +0 -0
- /package/build/{vine-Bt4ymkM0.js → vine-DGint2rk.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Ignitor } from "./main-
|
|
2
|
-
import { t as IgnitorFactory } from "./ignitor-
|
|
3
|
-
import { t as createAceKernel } from "./create_kernel-
|
|
1
|
+
import { t as Ignitor } from "./main-B3Y59dQ2.js";
|
|
2
|
+
import { t as IgnitorFactory } from "./ignitor-BAHDhsmQ.js";
|
|
3
|
+
import { t as createAceKernel } from "./create_kernel-Cpqqa931.js";
|
|
4
4
|
var AceFactory = class {
|
|
5
5
|
async make(ignitorOrAppRoot, options) {
|
|
6
6
|
if (ignitorOrAppRoot instanceof Ignitor) {
|
package/build/commands/add.d.ts
CHANGED
|
@@ -2,12 +2,13 @@ import { type CommandOptions } from '../types/ace.ts';
|
|
|
2
2
|
import { BaseCommand } from '../modules/ace/main.ts';
|
|
3
3
|
import { type SupportedPackageManager } from '@adonisjs/assembler/types';
|
|
4
4
|
/**
|
|
5
|
-
* The install command is used to `npm install` and `node ace configure`
|
|
5
|
+
* The install command is used to `npm install` and `node ace configure` one or more packages
|
|
6
6
|
* in one go.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```
|
|
10
10
|
* ace add @adonisjs/lucid
|
|
11
|
+
* ace add @adonisjs/lucid @adonisjs/auth @adonisjs/session
|
|
11
12
|
* ace add @adonisjs/session --dev
|
|
12
13
|
* ace add vinejs --force
|
|
13
14
|
* ace add edge --package-manager=pnpm
|
|
@@ -28,9 +29,9 @@ export default class Add extends BaseCommand {
|
|
|
28
29
|
*/
|
|
29
30
|
static options: CommandOptions;
|
|
30
31
|
/**
|
|
31
|
-
* Package
|
|
32
|
+
* Package names to install and configure
|
|
32
33
|
*/
|
|
33
|
-
|
|
34
|
+
names: string[];
|
|
34
35
|
/**
|
|
35
36
|
* Display logs in verbose mode
|
|
36
37
|
*/
|
package/build/commands/add.js
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "../chunk-MjwdjG2f.js";
|
|
2
|
+
import "../main-kn40V-hF.js";
|
|
3
|
+
import "../container-ClFvcykQ.js";
|
|
4
|
+
import "../config_provider-DWVFHOQX.js";
|
|
5
|
+
import "../main-B3Y59dQ2.js";
|
|
6
|
+
import "../app-B6oge7b3.js";
|
|
7
|
+
import "../app-BK0PN3li.js";
|
|
8
|
+
import "../string-Cx6q_win.js";
|
|
9
|
+
import "../utils-CtGytdtt.js";
|
|
10
|
+
import { n as prettyPrintError } from "../core-BuRVIObK.js";
|
|
11
|
+
import { f as BaseCommand, l as flags, o as args } from "../main-BlJhxJJ2.js";
|
|
12
|
+
import { t as __decorate } from "../decorate-CJcHOoD-.js";
|
|
3
13
|
var Add = class extends BaseCommand {
|
|
4
14
|
static commandName = "add";
|
|
5
|
-
static description = "Install and configure
|
|
15
|
+
static description = "Install and configure one or more packages";
|
|
6
16
|
static options = { allowUnknownFlags: true };
|
|
7
|
-
|
|
17
|
+
#resolveNpmPackageName(name) {
|
|
18
|
+
if (name === "vinejs") return "@vinejs/vine";
|
|
19
|
+
if (name === "edge") return "edge.js";
|
|
20
|
+
return name;
|
|
21
|
+
}
|
|
22
|
+
async #configurePackage(packageName) {
|
|
8
23
|
const flagValueArray = this.parsed.unknownFlags.filter((flag) => !!this.parsed.flags[flag]).map((flag) => [`--${flag}`, this.parsed.flags[flag].toString()]);
|
|
9
24
|
const configureArgs = [
|
|
10
|
-
|
|
25
|
+
packageName,
|
|
11
26
|
this.force ? "--force" : void 0,
|
|
12
27
|
this.verbose ? "--verbose" : void 0,
|
|
13
28
|
...flagValueArray.flat()
|
|
@@ -15,22 +30,43 @@ var Add = class extends BaseCommand {
|
|
|
15
30
|
return await this.kernel.exec("configure", configureArgs);
|
|
16
31
|
}
|
|
17
32
|
async run() {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
33
|
+
const packages = this.names.map((name) => ({
|
|
34
|
+
name,
|
|
35
|
+
npmName: this.#resolveNpmPackageName(name)
|
|
36
|
+
}));
|
|
21
37
|
const codemods = await this.createCodemods();
|
|
22
38
|
codemods.verboseInstallOutput = !!this.verbose;
|
|
23
|
-
if (!await codemods.installPackages(
|
|
24
|
-
name:
|
|
39
|
+
if (!await codemods.installPackages(packages.map((pkg) => ({
|
|
40
|
+
name: pkg.npmName,
|
|
25
41
|
isDevDependency: !!this.dev
|
|
26
|
-
}
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
42
|
+
})), this.packageManager)) return;
|
|
43
|
+
const succeeded = [];
|
|
44
|
+
const failed = [];
|
|
45
|
+
for (const pkg of packages) {
|
|
46
|
+
const { exitCode, error } = await this.#configurePackage(pkg.name);
|
|
47
|
+
if (exitCode === 0) succeeded.push(pkg.name);
|
|
48
|
+
else failed.push({
|
|
49
|
+
name: pkg.name,
|
|
50
|
+
error
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
if (succeeded.length > 0) {
|
|
54
|
+
const names = succeeded.map((name) => this.colors.green(name)).join(", ");
|
|
55
|
+
this.logger.success(`Installed and configured ${names}`);
|
|
56
|
+
}
|
|
57
|
+
if (failed.length > 0) {
|
|
58
|
+
this.exitCode = 1;
|
|
59
|
+
for (const pkg of failed) {
|
|
60
|
+
this.logger.error(`Unable to configure ${this.colors.green(pkg.name)}`);
|
|
61
|
+
if (pkg.error) await prettyPrintError(pkg.error.cause || pkg.error);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
31
64
|
}
|
|
32
65
|
};
|
|
33
|
-
__decorate([args.
|
|
66
|
+
__decorate([args.spread({
|
|
67
|
+
description: "Package names to install and configure",
|
|
68
|
+
required: true
|
|
69
|
+
})], Add.prototype, "names", void 0);
|
|
34
70
|
__decorate([flags.boolean({ description: "Display logs in verbose mode" })], Add.prototype, "verbose", void 0);
|
|
35
71
|
__decorate([flags.string({ description: "Define the package manager you want to use" })], Add.prototype, "packageManager", void 0);
|
|
36
72
|
__decorate([flags.boolean({
|
package/build/commands/build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as importTypeScript, t as importAssembler } from "../utils-
|
|
2
|
-
import { f as BaseCommand, l as flags } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import { n as importTypeScript, t as importAssembler } from "../utils-CtGytdtt.js";
|
|
2
|
+
import { f as BaseCommand, l as flags } from "../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-CJcHOoD-.js";
|
|
4
4
|
var Build = class extends BaseCommand {
|
|
5
5
|
static commandName = "build";
|
|
6
6
|
static description = "Build application for production by compiling frontend assets and TypeScript source to JavaScript";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"commands":[{"commandName":"add","description":"Install and configure a package","help":"","namespace":null,"aliases":[],"flags":[{"name":"verbose","flagName":"verbose","required":false,"type":"boolean","description":"Display logs in verbose mode"},{"name":"packageManager","flagName":"package-manager","required":false,"type":"string","description":"Define the package manager you want to use"},{"name":"dev","flagName":"dev","required":false,"type":"boolean","description":"Should we install the package as a dev dependency","alias":"D"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Package name","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"add.js"},{"commandName":"build","description":"Build application for production by compiling frontend assets and TypeScript source to JavaScript","help":["Create the production build using the following command.","```","{{ binaryName }} build","```","","The assets bundler dev server runs automatically after detecting vite config or webpack config files","You may pass vite CLI args using the --assets-args command line flag.","```","{{ binaryName }} build --assets-args=\"--debug --base=/public\"","```"],"namespace":null,"aliases":[],"flags":[{"name":"ignoreTsErrors","flagName":"ignore-ts-errors","required":false,"type":"boolean","description":"Ignore TypeScript errors and continue with the build process"},{"name":"packageManager","flagName":"package-manager","required":false,"type":"string","description":"Define the package manager to copy the appropriate lock file"}],"args":[],"options":{},"filePath":"build.js"},{"commandName":"configure","description":"Configure a package after it has been installed","help":"","namespace":null,"aliases":[],"flags":[{"name":"verbose","flagName":"verbose","required":false,"type":"boolean","description":"Display logs in verbose mode","alias":"v"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Package name","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"configure.js"},{"commandName":"eject","description":"Eject scaffolding stubs to your application root","help":"","namespace":null,"aliases":[],"flags":[{"name":"pkg","flagName":"pkg","required":false,"type":"string","description":"Mention package name for searching stubs","default":"@adonisjs/core"}],"args":[{"name":"stubPath","argumentName":"stub-path","required":true,"description":"Path to the stubs directory or a single stub file","type":"string"}],"options":{},"filePath":"eject.js"},{"commandName":"env:add","description":"Add a new environment variable","help":"","namespace":"env","aliases":[],"flags":[{"name":"type","flagName":"type","required":false,"type":"string","description":"Type of the variable"},{"name":"enumValues","flagName":"enum-values","required":false,"type":"array","description":"Allowed values for the enum type in a comma-separated list","default":[""]}],"args":[{"name":"name","argumentName":"name","required":false,"description":"Variable name. Will be converted to screaming snake case","type":"string"},{"name":"value","argumentName":"value","required":false,"description":"Variable value","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"env/add.js"},{"commandName":"generate:key","description":"Generate a cryptographically secure random application key","help":"","namespace":"generate","aliases":[],"flags":[{"name":"show","flagName":"show","required":false,"type":"boolean","description":"Display the key on the terminal, instead of writing it to .env file"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Force update .env file in production environment"}],"args":[],"options":{},"filePath":"generate_key.js"},{"commandName":"inspect:rcfile","description":"Inspect the RC file with its default values","help":"","namespace":"inspect","aliases":[],"flags":[],"args":[],"options":{},"filePath":"inspect_rcfile.js"},{"commandName":"list:routes","description":"List application routes. This command will boot the application in the console environment","help":"","namespace":"list","aliases":[],"flags":[{"name":"middleware","flagName":"middleware","required":false,"type":"array","description":"View routes that includes all the mentioned middleware names. Use * to see routes that are using one or more middleware"},{"name":"ignoreMiddleware","flagName":"ignore-middleware","required":false,"type":"array","description":"View routes that does not include all the mentioned middleware names. Use * to see routes that are using zero middleware"},{"name":"json","flagName":"json","required":false,"type":"boolean","description":"Get routes list as a JSON string"},{"name":"table","flagName":"table","required":false,"type":"boolean","description":"View list of routes as a table"}],"args":[{"name":"match","argumentName":"match","required":false,"description":"Find routes matching the given keyword. Route name, pattern and controller name will be searched against the keyword","type":"string"}],"options":{"startApp":true},"filePath":"list/routes.js"},{"commandName":"make:command","description":"Create a new ace command class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the command","type":"string"}],"options":{},"filePath":"make/command.js"},{"commandName":"make:controller","description":"Create a new HTTP controller class","help":"","namespace":"make","aliases":[],"flags":[{"name":"singular","flagName":"singular","required":false,"type":"boolean","description":"Generate controller in singular form","alias":"s"},{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Generate resourceful controller with methods to perform CRUD actions on a resource","alias":"r"},{"name":"api","flagName":"api","required":false,"type":"boolean","description":"Generate resourceful controller without the \"edit\" and the \"create\" methods","alias":"a"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"The name of the controller","type":"string"},{"name":"actions","argumentName":"actions","required":false,"description":"Create controller with custom method names","type":"spread"}],"options":{"allowUnknownFlags":true},"filePath":"make/controller.js"},{"commandName":"make:event","description":"Create a new event class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the event","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/event.js"},{"commandName":"make:exception","description":"Create a new custom exception class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the exception","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/exception.js"},{"commandName":"make:listener","description":"Create a new event listener class","help":"","namespace":"make","aliases":[],"flags":[{"name":"event","flagName":"event","required":false,"type":"string","description":"Generate an event class alongside the listener","alias":"e"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the event listener","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/listener.js"},{"commandName":"make:middleware","description":"Create a new middleware class for HTTP requests","help":"","namespace":"make","aliases":[],"flags":[{"name":"stack","flagName":"stack","required":false,"type":"string","description":"The stack in which to register the middleware","alias":"s"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the middleware","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/middleware.js"},{"commandName":"make:preload","description":"Create a new preload file inside the start directory","help":"","namespace":"make","aliases":[],"flags":[{"name":"register","flagName":"register","required":false,"type":"boolean","description":"Auto register the preload file inside the .adonisrc.ts file","showNegatedVariantInHelp":true,"alias":"r"},{"name":"environments","flagName":"environments","required":false,"type":"array","description":"Define the preload file's environment. Accepted values are \"web,console,test,repl\"","alias":"e"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the preload file","type":"string"}],"options":{},"filePath":"make/preload.js"},{"commandName":"make:provider","description":"Create a new service provider class","help":"","namespace":"make","aliases":[],"flags":[{"name":"register","flagName":"register","required":false,"type":"boolean","description":"Auto register the provider inside the .adonisrc.ts file","showNegatedVariantInHelp":true,"alias":"r"},{"name":"environments","flagName":"environments","required":false,"type":"array","description":"Define the provider environment. Accepted values are \"web,console,test,repl\"","alias":"e"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the provider","type":"string"}],"options":{},"filePath":"make/provider.js"},{"commandName":"make:service","description":"Create a new service class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the service","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/service.js"},{"commandName":"make:test","description":"Create a new Japa test file","help":"","namespace":"make","aliases":[],"flags":[{"name":"suite","flagName":"suite","required":false,"type":"string","description":"The suite for which to create the test file","alias":"s"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the test file","type":"string"}],"options":{},"filePath":"make/test.js"},{"commandName":"make:transformer","description":"Create a new transformer class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Entity name for which to generate the transformer","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/transformer.js"},{"commandName":"make:validator","description":"Create a new file to define VineJS validators","help":"","namespace":"make","aliases":[],"flags":[{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Create a file with pre-defined validators for create and update actions"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the validator file","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/validator.js"},{"commandName":"make:view","description":"Create a new Edge.js template file","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the template","type":"string"}],"options":{},"filePath":"make/view.js"},{"commandName":"repl","description":"Start a new REPL session","help":"","namespace":null,"aliases":[],"flags":[],"args":[],"options":{"startApp":true,"staysAlive":true},"filePath":"repl.js"},{"commandName":"serve","description":"Start the development HTTP server along with the file watcher to perform restarts on file change","help":["Start the development server with file watcher using the following command.","```","{{ binaryName }} serve --watch","```","","You can also start the server with HMR support using the following command.","```","{{ binaryName }} serve --hmr","```","","The assets bundler dev server runs automatically after detecting vite config or webpack config files","You may pass vite CLI args using the --assets-args command line flag.","```","{{ binaryName }} serve --assets-args=\"--debug --base=/public\"","```"],"namespace":null,"aliases":[],"flags":[{"name":"hmr","flagName":"hmr","required":false,"type":"boolean","description":"Start the server with HMR support"},{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and restart the HTTP server on file change","alias":"w"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes","alias":"p"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true}],"args":[],"options":{"staysAlive":true},"filePath":"serve.js"},{"commandName":"test","description":"Run tests along with the file watcher to re-run tests on file change","help":"","namespace":null,"aliases":[],"flags":[{"name":"files","flagName":"files","required":false,"type":"array","description":"Filter tests by the filename"},{"name":"tags","flagName":"tags","required":false,"type":"array","description":"Filter tests by tags"},{"name":"groups","flagName":"groups","required":false,"type":"array","description":"Filter tests by parent group title"},{"name":"tests","flagName":"tests","required":false,"type":"array","description":"Filter tests by test title"},{"name":"reporters","flagName":"reporters","required":false,"type":"array","description":"Activate one or more test reporters"},{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and re-run tests on file change"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes"},{"name":"timeout","flagName":"timeout","required":false,"type":"number","description":"Define default timeout for all tests"},{"name":"retries","flagName":"retries","required":false,"type":"number","description":"Define default retries for all tests"},{"name":"failed","flagName":"failed","required":false,"type":"boolean","description":"Execute tests failed during the last run"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true}],"args":[{"name":"suites","argumentName":"suites","required":false,"description":"Mention suite names to run tests for selected suites","type":"spread"}],"options":{"allowUnknownFlags":true,"staysAlive":true},"filePath":"test.js"}],"version":1}
|
|
1
|
+
{"commands":[{"commandName":"add","description":"Install and configure one or more packages","help":"","namespace":null,"aliases":[],"flags":[{"name":"verbose","flagName":"verbose","required":false,"type":"boolean","description":"Display logs in verbose mode"},{"name":"packageManager","flagName":"package-manager","required":false,"type":"string","description":"Define the package manager you want to use"},{"name":"dev","flagName":"dev","required":false,"type":"boolean","description":"Should we install the package as a dev dependency","alias":"D"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files"}],"args":[{"name":"names","argumentName":"names","required":true,"description":"Package names to install and configure","type":"spread"}],"options":{"allowUnknownFlags":true},"filePath":"add.js"},{"commandName":"build","description":"Build application for production by compiling frontend assets and TypeScript source to JavaScript","help":["Create the production build using the following command.","```","{{ binaryName }} build","```","","The assets bundler dev server runs automatically after detecting vite config or webpack config files","You may pass vite CLI args using the --assets-args command line flag.","```","{{ binaryName }} build --assets-args=\"--debug --base=/public\"","```"],"namespace":null,"aliases":[],"flags":[{"name":"ignoreTsErrors","flagName":"ignore-ts-errors","required":false,"type":"boolean","description":"Ignore TypeScript errors and continue with the build process"},{"name":"packageManager","flagName":"package-manager","required":false,"type":"string","description":"Define the package manager to copy the appropriate lock file"}],"args":[],"options":{},"filePath":"build.js"},{"commandName":"configure","description":"Configure a package after it has been installed","help":"","namespace":null,"aliases":[],"flags":[{"name":"verbose","flagName":"verbose","required":false,"type":"boolean","description":"Display logs in verbose mode","alias":"v"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Forcefully overwrite existing files","alias":"f"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Package name","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"configure.js"},{"commandName":"eject","description":"Eject scaffolding stubs to your application root","help":"","namespace":null,"aliases":[],"flags":[{"name":"pkg","flagName":"pkg","required":false,"type":"string","description":"Mention package name for searching stubs","default":"@adonisjs/core"}],"args":[{"name":"stubPath","argumentName":"stub-path","required":true,"description":"Path to the stubs directory or a single stub file","type":"string"}],"options":{},"filePath":"eject.js"},{"commandName":"env:add","description":"Add a new environment variable","help":"","namespace":"env","aliases":[],"flags":[{"name":"type","flagName":"type","required":false,"type":"string","description":"Type of the variable"},{"name":"enumValues","flagName":"enum-values","required":false,"type":"array","description":"Allowed values for the enum type in a comma-separated list","default":[""]}],"args":[{"name":"name","argumentName":"name","required":false,"description":"Variable name. Will be converted to screaming snake case","type":"string"},{"name":"value","argumentName":"value","required":false,"description":"Variable value","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"env/add.js"},{"commandName":"generate:key","description":"Generate a cryptographically secure random application key","help":"","namespace":"generate","aliases":[],"flags":[{"name":"show","flagName":"show","required":false,"type":"boolean","description":"Display the key on the terminal, instead of writing it to .env file"},{"name":"force","flagName":"force","required":false,"type":"boolean","description":"Force update .env file in production environment"}],"args":[],"options":{},"filePath":"generate_key.js"},{"commandName":"inspect:rcfile","description":"Inspect the RC file with its default values","help":"","namespace":"inspect","aliases":[],"flags":[],"args":[],"options":{},"filePath":"inspect_rcfile.js"},{"commandName":"list:routes","description":"List application routes. This command will boot the application in the console environment","help":"","namespace":"list","aliases":[],"flags":[{"name":"middleware","flagName":"middleware","required":false,"type":"array","description":"View routes that includes all the mentioned middleware names. Use * to see routes that are using one or more middleware"},{"name":"ignoreMiddleware","flagName":"ignore-middleware","required":false,"type":"array","description":"View routes that does not include all the mentioned middleware names. Use * to see routes that are using zero middleware"},{"name":"json","flagName":"json","required":false,"type":"boolean","description":"Get routes list as a JSON string"},{"name":"table","flagName":"table","required":false,"type":"boolean","description":"View list of routes as a table"}],"args":[{"name":"match","argumentName":"match","required":false,"description":"Find routes matching the given keyword. Route name, pattern and controller name will be searched against the keyword","type":"string"}],"options":{"startApp":true},"filePath":"list/routes.js"},{"commandName":"make:command","description":"Create a new ace command class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the command","type":"string"}],"options":{},"filePath":"make/command.js"},{"commandName":"make:controller","description":"Create a new HTTP controller class","help":"","namespace":"make","aliases":[],"flags":[{"name":"singular","flagName":"singular","required":false,"type":"boolean","description":"Generate controller in singular form","alias":"s"},{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Generate resourceful controller with methods to perform CRUD actions on a resource","alias":"r"},{"name":"api","flagName":"api","required":false,"type":"boolean","description":"Generate resourceful controller without the \"edit\" and the \"create\" methods","alias":"a"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"The name of the controller","type":"string"},{"name":"actions","argumentName":"actions","required":false,"description":"Create controller with custom method names","type":"spread"}],"options":{"allowUnknownFlags":true},"filePath":"make/controller.js"},{"commandName":"make:event","description":"Create a new event class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the event","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/event.js"},{"commandName":"make:exception","description":"Create a new custom exception class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the exception","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/exception.js"},{"commandName":"make:listener","description":"Create a new event listener class","help":"","namespace":"make","aliases":[],"flags":[{"name":"event","flagName":"event","required":false,"type":"string","description":"Generate an event class alongside the listener","alias":"e"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the event listener","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/listener.js"},{"commandName":"make:middleware","description":"Create a new middleware class for HTTP requests","help":"","namespace":"make","aliases":[],"flags":[{"name":"stack","flagName":"stack","required":false,"type":"string","description":"The stack in which to register the middleware","alias":"s"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the middleware","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/middleware.js"},{"commandName":"make:preload","description":"Create a new preload file inside the start directory","help":"","namespace":"make","aliases":[],"flags":[{"name":"register","flagName":"register","required":false,"type":"boolean","description":"Auto register the preload file inside the .adonisrc.ts file","showNegatedVariantInHelp":true,"alias":"r"},{"name":"environments","flagName":"environments","required":false,"type":"array","description":"Define the preload file's environment. Accepted values are \"web,console,test,repl\"","alias":"e"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the preload file","type":"string"}],"options":{},"filePath":"make/preload.js"},{"commandName":"make:provider","description":"Create a new service provider class","help":"","namespace":"make","aliases":[],"flags":[{"name":"register","flagName":"register","required":false,"type":"boolean","description":"Auto register the provider inside the .adonisrc.ts file","showNegatedVariantInHelp":true,"alias":"r"},{"name":"environments","flagName":"environments","required":false,"type":"array","description":"Define the provider environment. Accepted values are \"web,console,test,repl\"","alias":"e"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the provider","type":"string"}],"options":{},"filePath":"make/provider.js"},{"commandName":"make:service","description":"Create a new service class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the service","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/service.js"},{"commandName":"make:test","description":"Create a new Japa test file","help":"","namespace":"make","aliases":[],"flags":[{"name":"suite","flagName":"suite","required":false,"type":"string","description":"The suite for which to create the test file","alias":"s"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the test file","type":"string"}],"options":{},"filePath":"make/test.js"},{"commandName":"make:transformer","description":"Create a new transformer class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Entity name for which to generate the transformer","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/transformer.js"},{"commandName":"make:validator","description":"Create a new file to define VineJS validators","help":"","namespace":"make","aliases":[],"flags":[{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Create a file with pre-defined validators for create and update actions"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the validator file","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/validator.js"},{"commandName":"make:view","description":"Create a new Edge.js template file","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the template","type":"string"}],"options":{},"filePath":"make/view.js"},{"commandName":"repl","description":"Start a new REPL session","help":"","namespace":null,"aliases":[],"flags":[],"args":[],"options":{"startApp":true,"staysAlive":true},"filePath":"repl.js"},{"commandName":"serve","description":"Start the development HTTP server along with the file watcher to perform restarts on file change","help":["Start the development server with file watcher using the following command.","```","{{ binaryName }} serve --watch","```","","You can also start the server with HMR support using the following command.","```","{{ binaryName }} serve --hmr","```","","The assets bundler dev server runs automatically after detecting vite config or webpack config files","You may pass vite CLI args using the --assets-args command line flag.","```","{{ binaryName }} serve --assets-args=\"--debug --base=/public\"","```"],"namespace":null,"aliases":[],"flags":[{"name":"hmr","flagName":"hmr","required":false,"type":"boolean","description":"Start the server with HMR support"},{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and restart the HTTP server on file change","alias":"w"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes","alias":"p"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true}],"args":[],"options":{"staysAlive":true},"filePath":"serve.js"},{"commandName":"test","description":"Run tests along with the file watcher to re-run tests on file change","help":"","namespace":null,"aliases":[],"flags":[{"name":"files","flagName":"files","required":false,"type":"array","description":"Filter tests by the filename"},{"name":"tags","flagName":"tags","required":false,"type":"array","description":"Filter tests by tags"},{"name":"groups","flagName":"groups","required":false,"type":"array","description":"Filter tests by parent group title"},{"name":"tests","flagName":"tests","required":false,"type":"array","description":"Filter tests by test title"},{"name":"reporters","flagName":"reporters","required":false,"type":"array","description":"Activate one or more test reporters"},{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and re-run tests on file change"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes"},{"name":"timeout","flagName":"timeout","required":false,"type":"number","description":"Define default timeout for all tests"},{"name":"retries","flagName":"retries","required":false,"type":"number","description":"Define default retries for all tests"},{"name":"failed","flagName":"failed","required":false,"type":"boolean","description":"Execute tests failed during the last run"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true}],"args":[{"name":"suites","argumentName":"suites","required":false,"description":"Mention suite names to run tests for selected suites","type":"spread"}],"options":{"allowUnknownFlags":true,"staysAlive":true},"filePath":"test.js"}],"version":1}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-CJcHOoD-.js";
|
|
4
4
|
import { RuntimeException } from "@poppinss/utils/exception";
|
|
5
5
|
var Configure = class extends BaseCommand {
|
|
6
6
|
static commandName = "configure";
|
package/build/commands/eject.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as string_default } from "../string-
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import { t as string_default } from "../string-Cx6q_win.js";
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-CJcHOoD-.js";
|
|
4
4
|
var Eject = class extends BaseCommand {
|
|
5
5
|
static commandName = "eject";
|
|
6
6
|
static description = "Eject scaffolding stubs to your application root";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as string_default } from "../../string-
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
1
|
+
import { t as string_default } from "../../string-Cx6q_win.js";
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
const ALLOWED_TYPES = [
|
|
5
5
|
"string",
|
|
6
6
|
"boolean",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BaseCommand, l as flags } from "../main-
|
|
2
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import { f as BaseCommand, l as flags } from "../main-BlJhxJJ2.js";
|
|
2
|
+
import { t as __decorate } from "../decorate-CJcHOoD-.js";
|
|
3
3
|
import string from "@poppinss/utils/string";
|
|
4
4
|
import { EnvEditor } from "@adonisjs/env/editor";
|
|
5
5
|
var GenerateKey = class extends BaseCommand {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as BaseCommand } from "../main-
|
|
1
|
+
import { f as BaseCommand } from "../main-BlJhxJJ2.js";
|
|
2
2
|
var InspectRCFile = class extends BaseCommand {
|
|
3
3
|
static commandName = "inspect:rcfile";
|
|
4
4
|
static description = "Inspect the RC file with its default values";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as BaseCommand, l as flags, o as args, s as cliHelpers } from "../../main-
|
|
2
|
-
import { t as __decorate } from "../../decorate-
|
|
1
|
+
import { f as BaseCommand, l as flags, o as args, s as cliHelpers } from "../../main-BlJhxJJ2.js";
|
|
2
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
3
3
|
import stringWidth from "string-width";
|
|
4
4
|
import { middlewareInfo, routeInfo } from "@adonisjs/http-server/helpers";
|
|
5
5
|
var RoutesListFormatter = class {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
var MakeCommand = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:command";
|
|
6
6
|
static description = "Create a new ace command class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
import string from "@poppinss/utils/string";
|
|
5
5
|
var MakeController = class extends BaseCommand {
|
|
6
6
|
static commandName = "make:controller";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
var MakeEvent = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:event";
|
|
6
6
|
static description = "Create a new event class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
var MakeException = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:exception";
|
|
6
6
|
static description = "Create a new custom exception class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
var MakeListener = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:listener";
|
|
6
6
|
static description = "Create a new event listener class";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { t as string_default } from "../../string-
|
|
3
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { t as string_default } from "../../string-Cx6q_win.js";
|
|
3
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-BlJhxJJ2.js";
|
|
4
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
5
5
|
import string from "@poppinss/utils/string";
|
|
6
6
|
import { basename, extname, relative } from "node:path";
|
|
7
7
|
var MakeMiddleware = class extends BaseCommand {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { t as string_default } from "../../string-
|
|
3
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { t as string_default } from "../../string-Cx6q_win.js";
|
|
3
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-BlJhxJJ2.js";
|
|
4
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
5
5
|
import { extname, relative } from "node:path";
|
|
6
6
|
const ALLOWED_ENVIRONMENTS = [
|
|
7
7
|
"web",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { t as string_default } from "../../string-
|
|
3
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
4
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { t as string_default } from "../../string-Cx6q_win.js";
|
|
3
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-BlJhxJJ2.js";
|
|
4
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
5
5
|
import { extname, relative } from "node:path";
|
|
6
6
|
const ALLOWED_ENVIRONMENTS = [
|
|
7
7
|
"web",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
var MakeService = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:service";
|
|
6
6
|
static description = "Create a new service class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
var MakeTest = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:test";
|
|
6
6
|
static description = "Create a new Japa test file";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
var MakeTransformer = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:transformer";
|
|
6
6
|
static description = "Create a new transformer class";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
var MakeValidator = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:validator";
|
|
6
6
|
static description = "Create a new file to define VineJS validators";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
-
import { f as BaseCommand, o as args } from "../../main-
|
|
3
|
-
import { t as __decorate } from "../../decorate-
|
|
2
|
+
import { f as BaseCommand, o as args } from "../../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-CJcHOoD-.js";
|
|
4
4
|
var MakeView = class extends BaseCommand {
|
|
5
5
|
static commandName = "make:view";
|
|
6
6
|
static description = "Create a new Edge.js template file";
|
package/build/commands/repl.js
CHANGED
package/build/commands/serve.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as importAssembler } from "../utils-
|
|
2
|
-
import { f as BaseCommand, l as flags } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import { t as importAssembler } from "../utils-CtGytdtt.js";
|
|
2
|
+
import { f as BaseCommand, l as flags } from "../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-CJcHOoD-.js";
|
|
4
4
|
var Serve = class extends BaseCommand {
|
|
5
5
|
static commandName = "serve";
|
|
6
6
|
static description = "Start the development HTTP server along with the file watcher to perform restarts on file change";
|
package/build/commands/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as importAssembler } from "../utils-
|
|
2
|
-
import { f as BaseCommand, l as flags, o as args } from "../main-
|
|
3
|
-
import { t as __decorate } from "../decorate-
|
|
1
|
+
import { t as importAssembler } from "../utils-CtGytdtt.js";
|
|
2
|
+
import { f as BaseCommand, l as flags, o as args } from "../main-BlJhxJJ2.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-CJcHOoD-.js";
|
|
4
4
|
var Test = class extends BaseCommand {
|
|
5
5
|
static commandName = "test";
|
|
6
6
|
static description = "Run tests along with the file watcher to re-run tests on file change";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { debuglog } from "node:util";
|
|
2
|
+
var debug_default = debuglog("adonisjs:core");
|
|
1
3
|
const configProvider = {
|
|
2
4
|
create(resolver) {
|
|
3
5
|
return {
|
|
@@ -10,4 +12,4 @@ const configProvider = {
|
|
|
10
12
|
return null;
|
|
11
13
|
}
|
|
12
14
|
};
|
|
13
|
-
export { configProvider as t };
|
|
15
|
+
export { debug_default as n, configProvider as t };
|
|
@@ -1,36 +1,46 @@
|
|
|
1
|
-
import { t as string_default } from "./string-
|
|
2
|
-
import { r as outputTransformerDataObjects } from "./utils-
|
|
1
|
+
import { t as string_default } from "./string-Cx6q_win.js";
|
|
2
|
+
import { r as outputTransformerDataObjects } from "./utils-CtGytdtt.js";
|
|
3
3
|
import { errors } from "@adonisjs/ace";
|
|
4
4
|
import { errors as errors$1 } from "@adonisjs/env";
|
|
5
5
|
import { errors as errors$2 } from "@adonisjs/application";
|
|
6
|
-
import { errors as errors$3 } from "@
|
|
6
|
+
import { errors as errors$3 } from "@boringnode/encryption";
|
|
7
7
|
import { errors as errors$4 } from "@adonisjs/http-server";
|
|
8
8
|
function indexEntities(entities = {}) {
|
|
9
9
|
const events = Object.assign({
|
|
10
10
|
enabled: true,
|
|
11
11
|
source: "app/events",
|
|
12
12
|
importAlias: "#events",
|
|
13
|
-
skipSegments: ["events"]
|
|
13
|
+
skipSegments: ["events"],
|
|
14
|
+
output: ".adonisjs/server/events.ts"
|
|
14
15
|
}, entities.events);
|
|
15
16
|
const listeners = Object.assign({
|
|
16
17
|
enabled: true,
|
|
17
18
|
source: "app/listeners",
|
|
18
19
|
importAlias: "#listeners",
|
|
19
|
-
skipSegments: ["listeners"]
|
|
20
|
+
skipSegments: ["listeners"],
|
|
21
|
+
output: ".adonisjs/server/listeners.ts"
|
|
20
22
|
}, entities.listeners);
|
|
21
23
|
const controllers = Object.assign({
|
|
22
24
|
enabled: true,
|
|
23
25
|
source: "app/controllers",
|
|
24
26
|
importAlias: "#controllers",
|
|
25
|
-
skipSegments: ["controllers"]
|
|
27
|
+
skipSegments: ["controllers"],
|
|
28
|
+
output: ".adonisjs/server/controllers.ts"
|
|
26
29
|
}, entities.controllers);
|
|
27
30
|
const transformers = Object.assign({
|
|
28
31
|
enabled: false,
|
|
29
32
|
source: "app/transformers",
|
|
30
33
|
importAlias: "#transformers",
|
|
31
34
|
withSharedProps: false,
|
|
32
|
-
skipSegments: ["transformers"]
|
|
35
|
+
skipSegments: ["transformers"],
|
|
36
|
+
output: ".adonisjs/client/data.d.ts"
|
|
33
37
|
}, entities.transformers);
|
|
38
|
+
const manifest = {
|
|
39
|
+
enabled: entities.manifest?.enabled === false ? false : transformers.enabled,
|
|
40
|
+
source: "config",
|
|
41
|
+
output: ".adonisjs/client/manifest.d.ts",
|
|
42
|
+
include: entities.manifest?.include ?? ["auth.ts"]
|
|
43
|
+
};
|
|
34
44
|
return { run(_, indexGenerator) {
|
|
35
45
|
if (events.enabled) indexGenerator.add("events", {
|
|
36
46
|
source: events.source,
|
|
@@ -40,7 +50,7 @@ function indexEntities(entities = {}) {
|
|
|
40
50
|
exportName: "events",
|
|
41
51
|
importAlias: events.importAlias,
|
|
42
52
|
skipSegments: events.skipSegments,
|
|
43
|
-
output:
|
|
53
|
+
output: events.output
|
|
44
54
|
});
|
|
45
55
|
if (listeners.enabled) indexGenerator.add("listeners", {
|
|
46
56
|
source: listeners.source,
|
|
@@ -49,7 +59,7 @@ function indexEntities(entities = {}) {
|
|
|
49
59
|
exportName: "listeners",
|
|
50
60
|
importAlias: listeners.importAlias,
|
|
51
61
|
skipSegments: listeners.skipSegments,
|
|
52
|
-
output:
|
|
62
|
+
output: listeners.output
|
|
53
63
|
});
|
|
54
64
|
if (controllers.enabled) indexGenerator.add("controllers", {
|
|
55
65
|
source: controllers.source,
|
|
@@ -59,7 +69,7 @@ function indexEntities(entities = {}) {
|
|
|
59
69
|
importAlias: controllers.importAlias,
|
|
60
70
|
skipSegments: controllers.skipSegments,
|
|
61
71
|
removeSuffix: "controller",
|
|
62
|
-
output:
|
|
72
|
+
output: controllers.output
|
|
63
73
|
});
|
|
64
74
|
if (transformers.enabled) indexGenerator.add("transformers", {
|
|
65
75
|
source: transformers.source,
|
|
@@ -76,7 +86,23 @@ function indexEntities(entities = {}) {
|
|
|
76
86
|
}), buffer, transformers.withSharedProps);
|
|
77
87
|
},
|
|
78
88
|
importAlias: transformers.importAlias,
|
|
79
|
-
output:
|
|
89
|
+
output: transformers.output
|
|
90
|
+
});
|
|
91
|
+
if (manifest.enabled) indexGenerator.add("manifest", {
|
|
92
|
+
source: manifest.source,
|
|
93
|
+
filter: (filePath, isDirectory) => {
|
|
94
|
+
if (isDirectory) return true;
|
|
95
|
+
if (!manifest.include?.length) return true;
|
|
96
|
+
return !!manifest.include.find((include) => filePath.endsWith(include));
|
|
97
|
+
},
|
|
98
|
+
as(vfs, buffer, __, helpers) {
|
|
99
|
+
const configFilesList = vfs.asList();
|
|
100
|
+
buffer.write(`/// <reference path="../../adonisrc.ts" />`);
|
|
101
|
+
Object.values(configFilesList).forEach((value) => {
|
|
102
|
+
buffer.write(`/// <reference path="${helpers.toImportPath(value)}" />`);
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
output: manifest.output
|
|
80
106
|
});
|
|
81
107
|
} };
|
|
82
108
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Kernel, n as HelpCommand, t as FsLoader } from "./main-
|
|
1
|
+
import { d as Kernel, n as HelpCommand, t as FsLoader } from "./main-BlJhxJJ2.js";
|
|
2
2
|
function createAceKernel(app, commandName) {
|
|
3
3
|
const kernel = new Kernel(app);
|
|
4
4
|
kernel.info.set("binary", "node ace");
|