@adonisjs/core 6.1.5-2 → 6.1.5-3
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/commands/build.d.ts +3 -0
- package/build/commands/build.d.ts.map +1 -0
- package/build/commands/build.js +22 -2
- package/build/commands/commands.json +1 -1
- package/build/commands/configure.d.ts +1 -0
- package/build/commands/configure.d.ts.map +1 -0
- package/build/commands/configure.js +2 -1
- package/build/commands/eject.d.ts +1 -0
- package/build/commands/eject.d.ts.map +1 -0
- package/build/commands/eject.js +2 -1
- package/build/commands/generate_key.d.ts +1 -0
- package/build/commands/generate_key.d.ts.map +1 -0
- package/build/commands/generate_key.js +2 -1
- package/build/commands/inspect_rcfile.d.ts +7 -0
- package/build/commands/inspect_rcfile.d.ts.map +1 -0
- package/build/commands/inspect_rcfile.js +10 -0
- package/build/commands/list/routes.d.ts +1 -0
- package/build/commands/list/routes.d.ts.map +1 -0
- package/build/commands/list/routes.js +2 -1
- package/build/commands/make/_base.d.ts +23 -1
- package/build/commands/make/_base.d.ts.map +1 -0
- package/build/commands/make/_base.js +11 -2
- package/build/commands/make/command.d.ts +1 -0
- package/build/commands/make/command.d.ts.map +1 -0
- package/build/commands/make/command.js +2 -1
- package/build/commands/make/controller.d.ts +1 -0
- package/build/commands/make/controller.d.ts.map +1 -0
- package/build/commands/make/controller.js +2 -1
- package/build/commands/make/event.d.ts +1 -0
- package/build/commands/make/event.d.ts.map +1 -0
- package/build/commands/make/event.js +2 -1
- package/build/commands/make/listener.d.ts +1 -0
- package/build/commands/make/listener.d.ts.map +1 -0
- package/build/commands/make/listener.js +2 -1
- package/build/commands/make/middleware.d.ts +1 -0
- package/build/commands/make/middleware.d.ts.map +1 -0
- package/build/commands/make/middleware.js +2 -1
- package/build/commands/make/prldfile.d.ts +9 -0
- package/build/commands/make/prldfile.d.ts.map +1 -0
- package/build/commands/make/prldfile.js +28 -0
- package/build/commands/make/provider.d.ts +1 -0
- package/build/commands/make/provider.d.ts.map +1 -0
- package/build/commands/make/provider.js +5 -2
- package/build/commands/make/service.d.ts +9 -0
- package/build/commands/make/service.d.ts.map +1 -0
- package/build/commands/make/service.js +26 -0
- package/build/commands/make/test.d.ts +1 -0
- package/build/commands/make/test.d.ts.map +1 -0
- package/build/commands/make/test.js +2 -1
- package/build/commands/serve.d.ts +3 -0
- package/build/commands/serve.d.ts.map +1 -0
- package/build/commands/serve.js +21 -1
- package/build/commands/test.d.ts +21 -0
- package/build/commands/test.d.ts.map +1 -0
- package/build/commands/test.js +156 -0
- package/build/factories/app.d.ts +1 -0
- package/build/factories/app.d.ts.map +1 -0
- package/build/factories/bodyparser.d.ts +1 -0
- package/build/factories/bodyparser.d.ts.map +1 -0
- package/build/factories/core/ace.d.ts +1 -0
- package/build/factories/core/ace.d.ts.map +1 -0
- package/build/factories/core/ignitor.d.ts +1 -0
- package/build/factories/core/ignitor.d.ts.map +1 -0
- package/build/factories/core/main.d.ts +1 -0
- package/build/factories/core/main.d.ts.map +1 -0
- package/build/factories/core/test_utils.d.ts +1 -0
- package/build/factories/core/test_utils.d.ts.map +1 -0
- package/build/factories/encryption.d.ts +1 -0
- package/build/factories/encryption.d.ts.map +1 -0
- package/build/factories/events.d.ts +1 -0
- package/build/factories/events.d.ts.map +1 -0
- package/build/factories/hash.d.ts +1 -0
- package/build/factories/hash.d.ts.map +1 -0
- package/build/factories/http.d.ts +1 -0
- package/build/factories/http.d.ts.map +1 -0
- package/build/factories/logger.d.ts +1 -0
- package/build/factories/logger.d.ts.map +1 -0
- package/build/factories/stubs.d.ts +1 -0
- package/build/factories/stubs.d.ts.map +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -0
- package/build/legacy/validator.d.ts +1 -0
- package/build/legacy/validator.d.ts.map +1 -0
- package/build/modules/ace/commands.d.ts +1 -0
- package/build/modules/ace/commands.d.ts.map +1 -0
- package/build/modules/ace/commands.js +4 -2
- package/build/modules/ace/create_kernel.d.ts +1 -0
- package/build/modules/ace/create_kernel.d.ts.map +1 -0
- package/build/modules/ace/kernel.d.ts +1 -0
- package/build/modules/ace/kernel.d.ts.map +1 -0
- package/build/modules/ace/main.d.ts +1 -0
- package/build/modules/ace/main.d.ts.map +1 -0
- package/build/modules/ace/shell.d.ts +1 -0
- package/build/modules/ace/shell.d.ts.map +1 -0
- package/build/modules/app.d.ts +1 -0
- package/build/modules/app.d.ts.map +1 -0
- package/build/modules/bodyparser/bodyparser_middleware.d.ts +1 -0
- package/build/modules/bodyparser/bodyparser_middleware.d.ts.map +1 -0
- package/build/modules/bodyparser/main.d.ts +1 -0
- package/build/modules/bodyparser/main.d.ts.map +1 -0
- package/build/modules/config.d.ts +1 -0
- package/build/modules/config.d.ts.map +1 -0
- package/build/modules/container.d.ts +1 -0
- package/build/modules/container.d.ts.map +1 -0
- package/build/modules/encryption.d.ts +1 -0
- package/build/modules/encryption.d.ts.map +1 -0
- package/build/modules/env.d.ts +1 -0
- package/build/modules/env.d.ts.map +1 -0
- package/build/modules/events.d.ts +1 -0
- package/build/modules/events.d.ts.map +1 -0
- package/build/modules/hash/define_config.d.ts +1 -0
- package/build/modules/hash/define_config.d.ts.map +1 -0
- package/build/modules/hash/drivers_collection.d.ts +4 -4
- package/build/modules/hash/drivers_collection.d.ts.map +1 -0
- package/build/modules/hash/drivers_collection.js +2 -8
- package/build/modules/hash/main.d.ts +2 -0
- package/build/modules/hash/main.d.ts.map +1 -0
- package/build/modules/hash/main.js +1 -0
- package/build/modules/http.d.ts +1 -0
- package/build/modules/http.d.ts.map +1 -0
- package/build/modules/logger.d.ts +1 -0
- package/build/modules/logger.d.ts.map +1 -0
- package/build/providers/app_provider.d.ts +1 -0
- package/build/providers/app_provider.d.ts.map +1 -0
- package/build/providers/app_provider.js +5 -7
- package/build/providers/hash_provider.d.ts +1 -0
- package/build/providers/hash_provider.d.ts.map +1 -0
- package/build/providers/hash_provider.js +7 -6
- package/build/providers/http_provider.d.ts +1 -0
- package/build/providers/http_provider.d.ts.map +1 -0
- package/build/services/ace.d.ts +1 -0
- package/build/services/ace.d.ts.map +1 -0
- package/build/services/app.d.ts +1 -0
- package/build/services/app.d.ts.map +1 -0
- package/build/services/config.d.ts +1 -0
- package/build/services/config.d.ts.map +1 -0
- package/build/services/emitter.d.ts +1 -0
- package/build/services/emitter.d.ts.map +1 -0
- package/build/services/emitter.js +1 -2
- package/build/services/encryption.d.ts +1 -0
- package/build/services/encryption.d.ts.map +1 -0
- package/build/services/encryption.js +1 -2
- package/build/services/hash.d.ts +1 -0
- package/build/services/hash.d.ts.map +1 -0
- package/build/services/hash.js +1 -2
- package/build/services/logger.d.ts +1 -0
- package/build/services/logger.d.ts.map +1 -0
- package/build/services/logger.js +1 -2
- package/build/services/router.d.ts +1 -0
- package/build/services/router.d.ts.map +1 -0
- package/build/services/router.js +1 -2
- package/build/services/server.d.ts +1 -0
- package/build/services/server.d.ts.map +1 -0
- package/build/services/server.js +1 -2
- package/build/services/test_utils.d.ts +1 -0
- package/build/services/test_utils.d.ts.map +1 -0
- package/build/src/cli_formatters/routes_list.d.ts +1 -0
- package/build/src/cli_formatters/routes_list.d.ts.map +1 -0
- package/build/src/debug.d.ts +1 -0
- package/build/src/debug.d.ts.map +1 -0
- package/build/src/helpers/is.d.ts +1 -0
- package/build/src/helpers/is.d.ts.map +1 -0
- package/build/src/helpers/main.d.ts +1 -0
- package/build/src/helpers/main.d.ts.map +1 -0
- package/build/src/helpers/parse_binding_reference.d.ts +1 -0
- package/build/src/helpers/parse_binding_reference.d.ts.map +1 -0
- package/build/src/helpers/string.d.ts +3 -0
- package/build/src/helpers/string.d.ts.map +1 -0
- package/build/src/helpers/string.js +4 -0
- package/build/src/helpers/types.d.ts +1 -0
- package/build/src/helpers/types.d.ts.map +1 -0
- package/build/src/ignitor/ace.d.ts +1 -0
- package/build/src/ignitor/ace.d.ts.map +1 -0
- package/build/src/ignitor/http.d.ts +1 -0
- package/build/src/ignitor/http.d.ts.map +1 -0
- package/build/src/ignitor/main.d.ts +1 -0
- package/build/src/ignitor/main.d.ts.map +1 -0
- package/build/src/ignitor/test.d.ts +1 -0
- package/build/src/ignitor/test.d.ts.map +1 -0
- package/build/src/internal_helpers.d.ts +1 -0
- package/build/src/internal_helpers.d.ts.map +1 -0
- package/build/src/test_utils/http.d.ts +1 -0
- package/build/src/test_utils/http.d.ts.map +1 -0
- package/build/src/test_utils/main.d.ts +2 -1
- package/build/src/test_utils/main.d.ts.map +1 -0
- package/build/src/types.d.ts +3 -2
- package/build/src/types.d.ts.map +1 -0
- package/build/stubs/index.d.ts +1 -0
- package/build/stubs/index.d.ts.map +1 -0
- package/build/stubs/make/preload_file/main.stub +4 -0
- package/build/stubs/make/service/main.stub +4 -0
- package/build/toolkit/commands/index_commands.d.ts +1 -0
- package/build/toolkit/commands/index_commands.d.ts.map +1 -0
- package/build/toolkit/commands/index_commands.js +2 -1
- package/build/toolkit/main.d.ts +1 -0
- package/build/toolkit/main.d.ts.map +1 -0
- package/build/types/ace.d.ts +1 -0
- package/build/types/ace.d.ts.map +1 -0
- package/build/types/app.d.ts +1 -0
- package/build/types/app.d.ts.map +1 -0
- package/build/types/bodyparser.d.ts +1 -0
- package/build/types/bodyparser.d.ts.map +1 -0
- package/build/types/container.d.ts +1 -0
- package/build/types/container.d.ts.map +1 -0
- package/build/types/encryption.d.ts +1 -0
- package/build/types/encryption.d.ts.map +1 -0
- package/build/types/events.d.ts +1 -0
- package/build/types/events.d.ts.map +1 -0
- package/build/types/hash.d.ts +1 -0
- package/build/types/hash.d.ts.map +1 -0
- package/build/types/http.d.ts +1 -0
- package/build/types/http.d.ts.map +1 -0
- package/build/types/logger.d.ts +1 -0
- package/build/types/logger.d.ts.map +1 -0
- package/commands/build.ts +122 -0
- package/commands/configure.ts +179 -0
- package/commands/eject.ts +39 -0
- package/commands/generate_key.ts +53 -0
- package/commands/inspect_rcfile.ts +23 -0
- package/commands/list/routes.ts +121 -0
- package/commands/make/_base.ts +55 -0
- package/commands/make/command.ts +33 -0
- package/commands/make/controller.ts +77 -0
- package/commands/make/event.ts +33 -0
- package/commands/make/listener.ts +63 -0
- package/commands/make/middleware.ts +34 -0
- package/commands/make/prldfile.ts +40 -0
- package/commands/make/provider.ts +40 -0
- package/commands/make/service.ts +33 -0
- package/commands/make/test.ts +115 -0
- package/commands/serve.ts +146 -0
- package/commands/test.ts +189 -0
- package/factories/app.ts +10 -0
- package/factories/bodyparser.ts +10 -0
- package/factories/core/ace.ts +38 -0
- package/factories/core/ignitor.ts +132 -0
- package/factories/core/main.ts +13 -0
- package/factories/core/test_utils.ts +34 -0
- package/factories/encryption.ts +10 -0
- package/factories/events.ts +10 -0
- package/factories/hash.ts +10 -0
- package/factories/http.ts +10 -0
- package/factories/logger.ts +10 -0
- package/factories/stubs.ts +53 -0
- package/index.ts +39 -0
- package/legacy/validator.ts +10 -0
- package/modules/ace/commands.ts +152 -0
- package/modules/ace/create_kernel.ts +73 -0
- package/modules/ace/kernel.ts +28 -0
- package/modules/ace/main.ts +22 -0
- package/modules/ace/shell.ts +49 -0
- package/modules/app.ts +10 -0
- package/modules/bodyparser/bodyparser_middleware.ts +16 -0
- package/modules/bodyparser/main.ts +10 -0
- package/modules/config.ts +10 -0
- package/modules/container.ts +10 -0
- package/modules/encryption.ts +10 -0
- package/modules/env.ts +10 -0
- package/modules/events.ts +10 -0
- package/modules/hash/define_config.ts +64 -0
- package/modules/hash/drivers_collection.ts +61 -0
- package/modules/hash/main.ts +12 -0
- package/modules/http.ts +10 -0
- package/modules/logger.ts +10 -0
- package/package.json +39 -30
- package/providers/app_provider.ts +125 -0
- package/providers/hash_provider.ts +58 -0
- package/providers/http_provider.ts +66 -0
- package/services/ace.ts +26 -0
- package/services/app.ts +26 -0
- package/services/config.ts +22 -0
- package/services/emitter.ts +23 -0
- package/services/encryption.ts +23 -0
- package/services/hash.ts +23 -0
- package/services/logger.ts +23 -0
- package/services/router.ts +23 -0
- package/services/server.ts +23 -0
- package/services/test_utils.ts +26 -0
- package/src/cli_formatters/routes_list.ts +480 -0
- package/src/debug.ts +12 -0
- package/src/helpers/is.ts +11 -0
- package/src/helpers/main.ts +13 -0
- package/src/helpers/parse_binding_reference.ts +93 -0
- package/src/helpers/string.ts +89 -0
- package/src/helpers/types.ts +46 -0
- package/src/ignitor/ace.ts +90 -0
- package/src/ignitor/http.ts +167 -0
- package/src/ignitor/main.ts +118 -0
- package/src/ignitor/test.ts +51 -0
- package/src/internal_helpers.ts +59 -0
- package/src/test_utils/http.ts +79 -0
- package/src/test_utils/main.ts +69 -0
- package/src/types.ts +136 -0
- package/types/ace.ts +15 -0
- package/types/app.ts +10 -0
- package/types/bodyparser.ts +10 -0
- package/types/container.ts +10 -0
- package/types/encryption.ts +10 -0
- package/types/events.ts +10 -0
- package/types/hash.ts +10 -0
- package/types/http.ts +10 -0
- package/types/logger.ts +10 -0
- package/build/src/helpers/string_builder.d.ts +0 -23
- package/build/src/helpers/string_builder.js +0 -86
|
@@ -3,9 +3,12 @@ export default class Build extends BaseCommand {
|
|
|
3
3
|
#private;
|
|
4
4
|
static commandName: string;
|
|
5
5
|
static description: string;
|
|
6
|
+
static help: string[];
|
|
6
7
|
watch?: boolean;
|
|
7
8
|
ignoreTsErrors?: boolean;
|
|
8
9
|
packageManager?: 'npm' | 'pnpm' | 'yarn';
|
|
9
10
|
assets?: boolean;
|
|
11
|
+
assetsArgs?: string[];
|
|
10
12
|
run(): Promise<void>;
|
|
11
13
|
}
|
|
14
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../commands/build.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAQ3D,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;;IAC5C,MAAM,CAAC,WAAW,SAAU;IAC5B,MAAM,CAAC,WAAW,SACmF;IAErG,MAAM,CAAC,IAAI,WAWV;IAGO,KAAK,CAAC,EAAE,OAAO,CAAA;IAGf,cAAc,CAAC,EAAE,OAAO,CAAA;IAKxB,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;IAOxC,MAAM,CAAC,EAAE,OAAO,CAAA;IAKhB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IAoBvB,GAAG;CA6CV"}
|
package/build/commands/build.js
CHANGED
|
@@ -9,14 +9,26 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { BaseCommand, flags } from '../modules/ace/main.js';
|
|
11
11
|
import { detectAssetsBundler, importAssembler, importTypeScript } from '../src/internal_helpers.js';
|
|
12
|
-
|
|
12
|
+
class Build extends BaseCommand {
|
|
13
13
|
static commandName = 'build';
|
|
14
14
|
static description = 'Build application for production by compiling frontend assets and TypeScript source to JavaScript';
|
|
15
|
+
static help = [
|
|
16
|
+
'Create the production build using the following command.',
|
|
17
|
+
'```',
|
|
18
|
+
'{{ binaryName }} build',
|
|
19
|
+
'```',
|
|
20
|
+
'',
|
|
21
|
+
'The assets bundler dev server runs automatically after detecting vite config or webpack config files',
|
|
22
|
+
'You may pass vite CLI args using the --assets-args command line flag.',
|
|
23
|
+
'```',
|
|
24
|
+
'{{ binaryName }} build --assets-args="--debug --base=/public"',
|
|
25
|
+
'```',
|
|
26
|
+
];
|
|
15
27
|
#logMissingDevelopmentDependency(dependency) {
|
|
16
28
|
this.logger.error([
|
|
17
29
|
`Cannot find package "${dependency}"`,
|
|
18
30
|
'',
|
|
19
|
-
`The "${dependency}" package is a development dependency and therefore you should use the
|
|
31
|
+
`The "${dependency}" package is a development dependency and therefore you should use the build command with development dependencies installed.`,
|
|
20
32
|
'',
|
|
21
33
|
'If you are using the build command inside a CI or with a deployment platform, make sure the NODE_ENV is set to "development"',
|
|
22
34
|
].join('\n'));
|
|
@@ -41,6 +53,7 @@ export default class Build extends BaseCommand {
|
|
|
41
53
|
serve: this.assets === false ? false : true,
|
|
42
54
|
driver: assetsBundler.name,
|
|
43
55
|
cmd: assetsBundler.buildCommand,
|
|
56
|
+
args: this.assetsArgs || [],
|
|
44
57
|
}
|
|
45
58
|
: {
|
|
46
59
|
serve: false,
|
|
@@ -77,3 +90,10 @@ __decorate([
|
|
|
77
90
|
}),
|
|
78
91
|
__metadata("design:type", Boolean)
|
|
79
92
|
], Build.prototype, "assets", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
flags.array({
|
|
95
|
+
description: 'Define CLI arguments to pass to the assets bundler',
|
|
96
|
+
}),
|
|
97
|
+
__metadata("design:type", Array)
|
|
98
|
+
], Build.prototype, "assetsArgs", void 0);
|
|
99
|
+
export default Build;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"commands":[{"commandName":"build","description":"Build application for production by compiling frontend assets and TypeScript source to JavaScript","help":"","namespace":null,"aliases":[],"flags":[{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and restart the HTTP server on file change"},{"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":"Select the package manager you want to use to install production dependencies"},{"name":"assets","flagName":"assets","required":false,"type":"boolean","description":"Build frontend assets","showNegatedVariantInHelp":true,"default":true}],"args":[],"options":{},"filePath":"build.js"},{"commandName":"configure","description":"Configure a package post installation","help":"","namespace":null,"aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Package name","type":"string"}],"options":{},"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":"generate:key","description":"Generate a 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":"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":{"allowUnknownFlags":true},"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":"Convert controller class and file name to its singular form","alias":"r"},{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Generate controller with resource actions","alias":"r"},{"name":"api","flagName":"api","required":false,"type":"boolean","description":"Generate controller with api resource actions","alias":"a"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"The name of the controller","type":"string"}],"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: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 listener","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/listener.js"},{"commandName":"make:middleware","description":"Create a new middleware class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the middleware","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/middleware.js"},{"commandName":"make:provider","description":"Create a new service provider class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the provider","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/provider.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"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the test file","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/test.js"},{"commandName":"serve","description":"Start the development HTTP server along with the file watcher to perform restarts on file change","help":"","namespace":null,"aliases":[],"flags":[{"name":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and restart the HTTP server on file change"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true},{"name":"assets","flagName":"assets","required":false,"type":"boolean","description":"Start assets bundler dev server","showNegatedVariantInHelp":true,"default":true}],"args":[],"options":{"staysAlive":true},"filePath":"serve.js"}],"version":1}
|
|
1
|
+
{"commands":[{"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":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and restart the HTTP server on file change"},{"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":"Select the package manager you want to use to install production dependencies"},{"name":"assets","flagName":"assets","required":false,"type":"boolean","description":"Build frontend assets","showNegatedVariantInHelp":true,"default":true},{"name":"assetsArgs","flagName":"assets-args","required":false,"type":"array","description":"Define CLI arguments to pass to the assets bundler"}],"args":[],"options":{},"filePath":"build.js"},{"commandName":"configure","description":"Configure a package post installation","help":"","namespace":null,"aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Package name","type":"string"}],"options":{},"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":"generate:key","description":"Generate a 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":{"allowUnknownFlags":true},"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":"Convert controller class and file name to its singular form","alias":"r"},{"name":"resource","flagName":"resource","required":false,"type":"boolean","description":"Generate controller with resource actions","alias":"r"},{"name":"api","flagName":"api","required":false,"type":"boolean","description":"Generate controller with api resource actions","alias":"a"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"The name of the controller","type":"string"}],"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: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 listener","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/listener.js"},{"commandName":"make:middleware","description":"Create a new middleware class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the middleware","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/middleware.js"},{"commandName":"make:prldfile","description":"Create a new preload file inside the start directory","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the preload file","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/prldfile.js"},{"commandName":"make:provider","description":"Create a new service provider class","help":"","namespace":"make","aliases":[],"flags":[],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the provider","type":"string"}],"options":{"allowUnknownFlags":true},"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"}],"args":[{"name":"name","argumentName":"name","required":true,"description":"Name of the test file","type":"string"}],"options":{"allowUnknownFlags":true},"filePath":"make/test.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","```","","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":"watch","flagName":"watch","required":false,"type":"boolean","description":"Watch filesystem and restart the HTTP server on file change"},{"name":"poll","flagName":"poll","required":false,"type":"boolean","description":"Use polling to detect filesystem changes"},{"name":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true},{"name":"assets","flagName":"assets","required":false,"type":"boolean","description":"Start assets bundler dev server","showNegatedVariantInHelp":true,"default":true},{"name":"assetsArgs","flagName":"assets-args","required":false,"type":"array","description":"Define CLI arguments to pass to the assets bundler"}],"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":"ignoreTags","flagName":"ignore-tags","required":false,"type":"array","description":"Run tests that does not have mentioned 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":"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":"clear","flagName":"clear","required":false,"type":"boolean","description":"Clear the terminal for new logs after file change","showNegatedVariantInHelp":true,"default":true},{"name":"assets","flagName":"assets","required":false,"type":"boolean","description":"Start assets bundler dev server.","showNegatedVariantInHelp":true,"default":true},{"name":"assetsArgs","flagName":"assets-args","required":false,"type":"array","description":"Define CLI arguments to pass to the assets bundler"}],"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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../commands/configure.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAQ,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAK1D,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW;;IAChD,MAAM,CAAC,WAAW,SAAc;IAChC,MAAM,CAAC,WAAW,SAA0C;IAGpD,IAAI,EAAE,MAAM,CAAA;IAMZ,SAAS,EAAE,MAAM,CAAA;IAqCnB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAqB5D,kBAAkB,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAmBlF,YAAY,CAChB,QAAQ,EAAE,CAAC,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAUtF,qBAAqB,CAAC,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,OAAO,CAAA;KAAE,EAAE;IA+BtE,GAAG;CA+BV"}
|
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { slash } from '@poppinss/utils';
|
|
11
11
|
import { EnvEditor } from '../modules/env.js';
|
|
12
12
|
import { args, BaseCommand } from '../modules/ace/main.js';
|
|
13
|
-
|
|
13
|
+
class Configure extends BaseCommand {
|
|
14
14
|
static commandName = 'configure';
|
|
15
15
|
static description = 'Configure a package post installation';
|
|
16
16
|
#getPackageSource(packageName) {
|
|
@@ -103,3 +103,4 @@ __decorate([
|
|
|
103
103
|
args.string({ description: 'Package name' }),
|
|
104
104
|
__metadata("design:type", String)
|
|
105
105
|
], Configure.prototype, "name", void 0);
|
|
106
|
+
export default Configure;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eject.d.ts","sourceRoot":"","sources":["../../commands/eject.ts"],"names":[],"mappings":"AAUA,OAAO,EAAQ,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAMjE,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;IAC5C,MAAM,CAAC,WAAW,SAAU;IAC5B,MAAM,CAAC,WAAW,SAAqD;IAG/D,QAAQ,EAAE,MAAM,CAAA;IAMhB,GAAG,EAAE,MAAM,CAAA;IAEb,GAAG;CASV"}
|
package/build/commands/eject.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { slash } from '@poppinss/utils';
|
|
11
11
|
import { args, BaseCommand, flags } from '../modules/ace/main.js';
|
|
12
|
-
|
|
12
|
+
class Eject extends BaseCommand {
|
|
13
13
|
static commandName = 'eject';
|
|
14
14
|
static description = 'Eject scaffolding stubs to your application root';
|
|
15
15
|
async run() {
|
|
@@ -32,3 +32,4 @@ __decorate([
|
|
|
32
32
|
}),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], Eject.prototype, "pkg", void 0);
|
|
35
|
+
export default Eject;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate_key.d.ts","sourceRoot":"","sources":["../../commands/generate_key.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAM3D,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,WAAW,SAA6C;IAKvD,IAAI,EAAE,OAAO,CAAA;IAKb,KAAK,EAAE,OAAO,CAAA;IAEhB,GAAG;CAqBV"}
|
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import string from '@poppinss/utils/string';
|
|
11
11
|
import { EnvEditor } from '../modules/env.js';
|
|
12
12
|
import { BaseCommand, flags } from '../modules/ace/main.js';
|
|
13
|
-
|
|
13
|
+
class GenerateKey extends BaseCommand {
|
|
14
14
|
static commandName = 'generate:key';
|
|
15
15
|
static description = 'Generate a secure random application key';
|
|
16
16
|
async run() {
|
|
@@ -45,3 +45,4 @@ __decorate([
|
|
|
45
45
|
}),
|
|
46
46
|
__metadata("design:type", Boolean)
|
|
47
47
|
], GenerateKey.prototype, "force", void 0);
|
|
48
|
+
export default GenerateKey;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspect_rcfile.d.ts","sourceRoot":"","sources":["../../commands/inspect_rcfile.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAKpD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IACpD,MAAM,CAAC,WAAW,SAAmB;IACrC,MAAM,CAAC,WAAW,SAAgD;IAE5D,GAAG;CAGV"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import lodash from '@poppinss/utils/lodash';
|
|
2
|
+
import { BaseCommand } from '../modules/ace/main.js';
|
|
3
|
+
class InspectRCFile extends BaseCommand {
|
|
4
|
+
static commandName = 'inspect:rcfile';
|
|
5
|
+
static description = 'Inspect the RC file with its default values';
|
|
6
|
+
async run() {
|
|
7
|
+
this.logger.log(JSON.stringify(lodash.omit(this.app.rcFile, ['raw']), null, 2));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export default InspectRCFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../commands/list/routes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAQ,WAAW,EAAS,MAAM,2BAA2B,CAAA;AAMpE,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW;IACjD,MAAM,CAAC,WAAW,SAAgB;IAClC,MAAM,CAAC,WAAW,SAC4E;IAM9F,MAAM,CAAC,OAAO,EAAE,cAAc,CAE7B;IAWO,KAAK,EAAE,MAAM,CAAA;IASb,UAAU,EAAE,MAAM,EAAE,CAAA;IASpB,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAM1B,IAAI,EAAE,OAAO,CAAA;IAMb,KAAK,EAAE,OAAO,CAAA;IAEhB,GAAG;CAkDV"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { args, BaseCommand, flags } from '../../modules/ace/main.js';
|
|
11
11
|
import { RoutesListFormatter } from '../../src/cli_formatters/routes_list.js';
|
|
12
|
-
|
|
12
|
+
class ListRoutes extends BaseCommand {
|
|
13
13
|
static commandName = 'list:routes';
|
|
14
14
|
static description = 'List application routes. This command will boot the application in the console environment';
|
|
15
15
|
static options = {
|
|
@@ -76,3 +76,4 @@ __decorate([
|
|
|
76
76
|
flags.boolean({ description: 'View list of routes as a table' }),
|
|
77
77
|
__metadata("design:type", Boolean)
|
|
78
78
|
], ListRoutes.prototype, "table", void 0);
|
|
79
|
+
export default ListRoutes;
|
|
@@ -2,5 +2,27 @@ import { BaseCommand } from '../../modules/ace/main.js';
|
|
|
2
2
|
import type { CommandOptions } from '../../types/ace.js';
|
|
3
3
|
export default abstract class extends BaseCommand {
|
|
4
4
|
static options: CommandOptions;
|
|
5
|
-
protected generate(stubPath: string, stubState: Record<string, any>): Promise<
|
|
5
|
+
protected generate(stubPath: string, stubState: Record<string, any>): Promise<{
|
|
6
|
+
relativeFileName: string;
|
|
7
|
+
contents: any;
|
|
8
|
+
destination: any;
|
|
9
|
+
attributes: any;
|
|
10
|
+
status: "skipped";
|
|
11
|
+
skipReason: string;
|
|
12
|
+
} | {
|
|
13
|
+
relativeFileName: string;
|
|
14
|
+
contents: any;
|
|
15
|
+
destination: any;
|
|
16
|
+
attributes: any;
|
|
17
|
+
status: "created";
|
|
18
|
+
skipReason: null;
|
|
19
|
+
} | {
|
|
20
|
+
relativeFileName: string;
|
|
21
|
+
contents: any;
|
|
22
|
+
destination: any;
|
|
23
|
+
attributes: any;
|
|
24
|
+
status: "force_created";
|
|
25
|
+
skipReason: null;
|
|
26
|
+
}>;
|
|
6
27
|
}
|
|
28
|
+
//# sourceMappingURL=_base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_base.d.ts","sourceRoot":"","sources":["../../../commands/make/_base.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAKxD,MAAM,CAAC,OAAO,CAAC,QAAQ,MAAO,SAAQ,WAAW;IAI/C,MAAM,CAAC,OAAO,EAAE,cAAc,CAE7B;cAKe,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;CA0B1E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { slash } from '@poppinss/utils';
|
|
2
2
|
import { stubsRoot } from '../../stubs/index.js';
|
|
3
3
|
import { BaseCommand } from '../../modules/ace/main.js';
|
|
4
|
-
|
|
4
|
+
class default_1 extends BaseCommand {
|
|
5
5
|
static options = {
|
|
6
6
|
allowUnknownFlags: true,
|
|
7
7
|
};
|
|
@@ -12,8 +12,17 @@ export default class default_1 extends BaseCommand {
|
|
|
12
12
|
}, stubState));
|
|
13
13
|
const entityFileName = slash(this.app.relativePath(output.destination));
|
|
14
14
|
if (output.status === 'skipped') {
|
|
15
|
-
|
|
15
|
+
this.logger.action(`create ${entityFileName}`).skipped(output.skipReason);
|
|
16
|
+
return {
|
|
17
|
+
...output,
|
|
18
|
+
relativeFileName: entityFileName,
|
|
19
|
+
};
|
|
16
20
|
}
|
|
17
21
|
this.logger.action(`create ${entityFileName}`).succeeded();
|
|
22
|
+
return {
|
|
23
|
+
...output,
|
|
24
|
+
relativeFileName: entityFileName,
|
|
25
|
+
};
|
|
18
26
|
}
|
|
19
27
|
}
|
|
28
|
+
export default default_1;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../commands/make/command.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,WAAW,SAAmC;IAG7C,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA2B;IAE/C,GAAG;CAKV"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import BaseCommand from './_base.js';
|
|
11
11
|
import { args } from '../../modules/ace/main.js';
|
|
12
|
-
|
|
12
|
+
class MakeCommand extends BaseCommand {
|
|
13
13
|
static commandName = 'make:command';
|
|
14
14
|
static description = 'Create a new ace command class';
|
|
15
15
|
stubPath = 'make/command/main.stub';
|
|
@@ -23,3 +23,4 @@ __decorate([
|
|
|
23
23
|
args.string({ description: 'Name of the command' }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], MakeCommand.prototype, "name", void 0);
|
|
26
|
+
export default MakeCommand;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../commands/make/controller.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IACrD,MAAM,CAAC,WAAW,SAAoB;IACtC,MAAM,CAAC,WAAW,SAAuC;IAGjD,IAAI,EAAE,MAAM,CAAA;IAMZ,QAAQ,EAAE,OAAO,CAAA;IAMjB,QAAQ,EAAE,OAAO,CAAA;IAMjB,GAAG,EAAE,OAAO,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA8B;IAKlD,OAAO;IAuBP,GAAG;CAKV"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import BaseCommand from './_base.js';
|
|
11
11
|
import { args, flags } from '../../modules/ace/main.js';
|
|
12
|
-
|
|
12
|
+
class MakeController extends BaseCommand {
|
|
13
13
|
static commandName = 'make:controller';
|
|
14
14
|
static description = 'Create a new HTTP controller class';
|
|
15
15
|
stubPath = 'make/controller/main.stub';
|
|
@@ -55,3 +55,4 @@ __decorate([
|
|
|
55
55
|
}),
|
|
56
56
|
__metadata("design:type", Boolean)
|
|
57
57
|
], MakeController.prototype, "api", void 0);
|
|
58
|
+
export default MakeController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../commands/make/event.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW;IAChD,MAAM,CAAC,WAAW,SAAe;IACjC,MAAM,CAAC,WAAW,SAA6B;IAGvC,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAyB;IAE7C,GAAG;CAKV"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import BaseCommand from './_base.js';
|
|
11
11
|
import { args } from '../../modules/ace/main.js';
|
|
12
|
-
|
|
12
|
+
class MakeEvent extends BaseCommand {
|
|
13
13
|
static commandName = 'make:event';
|
|
14
14
|
static description = 'Create a new event class';
|
|
15
15
|
stubPath = 'make/event/main.stub';
|
|
@@ -23,3 +23,4 @@ __decorate([
|
|
|
23
23
|
args.string({ description: 'Name of the event' }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], MakeEvent.prototype, "name", void 0);
|
|
26
|
+
export default MakeEvent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listener.d.ts","sourceRoot":"","sources":["../../../commands/make/listener.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAOpC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;IACnD,MAAM,CAAC,WAAW,SAAkB;IACpC,MAAM,CAAC,WAAW,SAAsC;IAGhD,IAAI,EAAE,MAAM,CAAA;IAMZ,KAAK,EAAE,MAAM,CAAA;IAKrB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA4B;IAEtD,OAAO;IAMD,GAAG;CAsBV"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import BaseCommand from './_base.js';
|
|
11
11
|
import { args, flags } from '../../modules/ace/main.js';
|
|
12
|
-
|
|
12
|
+
class MakeListener extends BaseCommand {
|
|
13
13
|
static commandName = 'make:listener';
|
|
14
14
|
static description = 'Create a new event listener class';
|
|
15
15
|
stubPath = 'make/listener/main.stub';
|
|
@@ -46,3 +46,4 @@ __decorate([
|
|
|
46
46
|
}),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], MakeListener.prototype, "event", void 0);
|
|
49
|
+
export default MakeListener;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../commands/make/middleware.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAOpC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IACrD,MAAM,CAAC,WAAW,SAAoB;IACtC,MAAM,CAAC,WAAW,SAAkC;IAG5C,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA8B;IAElD,GAAG;CAKV"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import BaseCommand from './_base.js';
|
|
11
11
|
import { args } from '../../modules/ace/main.js';
|
|
12
|
-
|
|
12
|
+
class MakeMiddleware extends BaseCommand {
|
|
13
13
|
static commandName = 'make:middleware';
|
|
14
14
|
static description = 'Create a new middleware class';
|
|
15
15
|
stubPath = 'make/middleware/main.stub';
|
|
@@ -23,3 +23,4 @@ __decorate([
|
|
|
23
23
|
args.string({ description: 'Name of the middleware' }),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
25
|
], MakeMiddleware.prototype, "name", void 0);
|
|
26
|
+
export default MakeMiddleware;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseCommand from './_base.js';
|
|
2
|
+
export default class MakePreloadFile extends BaseCommand {
|
|
3
|
+
static commandName: string;
|
|
4
|
+
static description: string;
|
|
5
|
+
name: string;
|
|
6
|
+
protected stubPath: string;
|
|
7
|
+
run(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=prldfile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prldfile.d.ts","sourceRoot":"","sources":["../../../commands/make/prldfile.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAW;IACtD,MAAM,CAAC,WAAW,SAAkB;IACpC,MAAM,CAAC,WAAW,SAAyD;IAGnE,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAgC;IAEpD,GAAG;CAYV"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import BaseCommand from './_base.js';
|
|
11
|
+
import { args } from '../../modules/ace/main.js';
|
|
12
|
+
class MakePreloadFile extends BaseCommand {
|
|
13
|
+
static commandName = 'make:prldfile';
|
|
14
|
+
static description = 'Create a new preload file inside the start directory';
|
|
15
|
+
stubPath = 'make/preload_file/main.stub';
|
|
16
|
+
async run() {
|
|
17
|
+
const output = await this.generate(this.stubPath, {
|
|
18
|
+
entity: this.app.generators.createEntity(this.name),
|
|
19
|
+
});
|
|
20
|
+
const preloadImportPath = `./${output.relativeFileName.replace(/(\.js|\.ts)$/, '')}.js`;
|
|
21
|
+
await this.app.rcFileEditor.addPreloadFile(preloadImportPath).save();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
args.string({ description: 'Name of the preload file' }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], MakePreloadFile.prototype, "name", void 0);
|
|
28
|
+
export default MakePreloadFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../commands/make/provider.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;IACnD,MAAM,CAAC,WAAW,SAAkB;IACpC,MAAM,CAAC,WAAW,SAAwC;IAGlD,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA4B;IAEhD,GAAG;CAYV"}
|
|
@@ -9,17 +9,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import BaseCommand from './_base.js';
|
|
11
11
|
import { args } from '../../modules/ace/main.js';
|
|
12
|
-
|
|
12
|
+
class MakeProvider extends BaseCommand {
|
|
13
13
|
static commandName = 'make:provider';
|
|
14
14
|
static description = 'Create a new service provider class';
|
|
15
15
|
stubPath = 'make/provider/main.stub';
|
|
16
16
|
async run() {
|
|
17
|
-
await this.generate(this.stubPath, {
|
|
17
|
+
const output = await this.generate(this.stubPath, {
|
|
18
18
|
entity: this.app.generators.createEntity(this.name),
|
|
19
19
|
});
|
|
20
|
+
const providerImportPath = `./${output.relativeFileName.replace(/(\.js|\.ts)$/, '')}.js`;
|
|
21
|
+
await this.app.rcFileEditor.addProvider(providerImportPath).save();
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
__decorate([
|
|
23
25
|
args.string({ description: 'Name of the provider' }),
|
|
24
26
|
__metadata("design:type", String)
|
|
25
27
|
], MakeProvider.prototype, "name", void 0);
|
|
28
|
+
export default MakeProvider;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BaseCommand from './_base.js';
|
|
2
|
+
export default class MakeService extends BaseCommand {
|
|
3
|
+
static commandName: string;
|
|
4
|
+
static description: string;
|
|
5
|
+
name: string;
|
|
6
|
+
protected stubPath: string;
|
|
7
|
+
run(): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../commands/make/service.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,WAAW,SAA+B;IAGzC,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA2B;IAE/C,GAAG;CAKV"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import BaseCommand from './_base.js';
|
|
11
|
+
import { args } from '../../modules/ace/main.js';
|
|
12
|
+
class MakeService extends BaseCommand {
|
|
13
|
+
static commandName = 'make:service';
|
|
14
|
+
static description = 'Create a new service class';
|
|
15
|
+
stubPath = 'make/service/main.stub';
|
|
16
|
+
async run() {
|
|
17
|
+
await this.generate(this.stubPath, {
|
|
18
|
+
entity: this.app.generators.createEntity(this.name),
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
__decorate([
|
|
23
|
+
args.string({ description: 'Name of the service' }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], MakeService.prototype, "name", void 0);
|
|
26
|
+
export default MakeService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../commands/make/test.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,WAAW;;IAC/C,MAAM,CAAC,WAAW,SAAc;IAChC,MAAM,CAAC,WAAW,SAAgC;IAG1C,IAAI,EAAE,MAAM,CAAA;IAGZ,KAAK,CAAC,EAAE,MAAM,CAAA;IAKtB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAwB;IA8D5C,GAAG;CAwBV"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import BaseCommand from './_base.js';
|
|
11
11
|
import { args, flags } from '../../modules/ace/main.js';
|
|
12
|
-
|
|
12
|
+
class MakeTest extends BaseCommand {
|
|
13
13
|
static commandName = 'make:test';
|
|
14
14
|
static description = 'Create a new Japa test file';
|
|
15
15
|
stubPath = 'make/test/main.stub';
|
|
@@ -67,3 +67,4 @@ __decorate([
|
|
|
67
67
|
flags.string({ description: 'The suite for which to create the test file' }),
|
|
68
68
|
__metadata("design:type", String)
|
|
69
69
|
], MakeTest.prototype, "suite", void 0);
|
|
70
|
+
export default MakeTest;
|
|
@@ -4,10 +4,13 @@ export default class Serve extends BaseCommand {
|
|
|
4
4
|
#private;
|
|
5
5
|
static commandName: string;
|
|
6
6
|
static description: string;
|
|
7
|
+
static help: string[];
|
|
7
8
|
static options: CommandOptions;
|
|
8
9
|
watch?: boolean;
|
|
9
10
|
poll?: boolean;
|
|
10
11
|
clear?: boolean;
|
|
11
12
|
assets?: boolean;
|
|
13
|
+
assetsArgs?: string[];
|
|
12
14
|
run(): Promise<void>;
|
|
13
15
|
}
|
|
16
|
+
//# sourceMappingURL=serve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../commands/serve.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAQ3D,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;;IAC5C,MAAM,CAAC,WAAW,SAAU;IAC5B,MAAM,CAAC,WAAW,SACkF;IAEpG,MAAM,CAAC,IAAI,WAWV;IAED,MAAM,CAAC,OAAO,EAAE,cAAc,CAE7B;IAGO,KAAK,CAAC,EAAE,OAAO,CAAA;IAGf,IAAI,CAAC,EAAE,OAAO,CAAA;IAOd,KAAK,CAAC,EAAE,OAAO,CAAA;IAOf,MAAM,CAAC,EAAE,OAAO,CAAA;IAKhB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IAoBvB,GAAG;CA8DV"}
|