@adonisjs/core 7.0.0-next.1 → 7.0.0-next.11
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/add.js +40 -110
- package/build/commands/build.js +51 -107
- package/build/commands/configure.js +82 -177
- package/build/commands/eject.js +17 -60
- package/build/commands/env/add.js +55 -134
- package/build/commands/generate_key.js +22 -66
- package/build/commands/inspect_rcfile.js +27 -55
- package/build/commands/list/routes.js +246 -116
- package/build/commands/make/command.js +15 -57
- package/build/commands/make/controller.js +43 -120
- package/build/commands/make/event.js +16 -62
- package/build/commands/make/exception.js +16 -62
- package/build/commands/make/listener.js +36 -93
- package/build/commands/make/middleware.js +41 -101
- package/build/commands/make/preload.js +47 -113
- package/build/commands/make/provider.js +47 -112
- package/build/commands/make/service.js +16 -55
- package/build/commands/make/test.js +47 -132
- package/build/commands/make/transformer.js +17 -64
- package/build/commands/make/validator.js +20 -80
- package/build/commands/make/view.js +15 -56
- package/build/commands/repl.js +17 -50
- package/build/commands/serve.js +80 -156
- package/build/commands/test.js +92 -208
- package/build/factories/app.js +2 -9
- package/build/factories/bodyparser.js +2 -9
- package/build/factories/core/ace.js +15 -46
- package/build/factories/core/ignitor.js +12 -180
- package/build/factories/core/main.js +22 -11
- package/build/factories/core/test_utils.js +19 -43
- package/build/factories/encryption.js +2 -9
- package/build/factories/events.js +2 -9
- package/build/factories/hash.js +2 -9
- package/build/factories/http.js +2 -9
- package/build/factories/logger.js +2 -9
- package/build/factories/stubs.js +28 -91
- package/build/index.js +13 -46
- package/build/modules/ace/codemods.d.ts +109 -14
- package/build/modules/ace/codemods.js +222 -374
- package/build/modules/ace/main.d.ts +30 -0
- package/build/modules/ace/main.js +2 -11
- package/build/modules/app.d.ts +17 -0
- package/build/modules/app.js +4 -9
- package/build/modules/bodyparser/bodyparser_middleware.js +2 -14
- package/build/modules/bodyparser/main.js +4 -9
- package/build/modules/config.d.ts +17 -0
- package/build/modules/config.js +4 -9
- package/build/modules/container.js +4 -9
- package/build/modules/dumper/dumper.d.ts +5 -0
- package/build/modules/dumper/main.d.ts +21 -0
- package/build/modules/dumper/main.js +6 -11
- package/build/modules/dumper/plugins/edge.js +2 -62
- package/build/modules/encryption.d.ts +17 -0
- package/build/modules/encryption.js +4 -9
- package/build/modules/env/editor.js +2 -9
- package/build/modules/env/main.d.ts +19 -0
- package/build/modules/env/main.js +2 -9
- package/build/modules/events.js +4 -9
- package/build/modules/hash/drivers/argon.js +2 -9
- package/build/modules/hash/drivers/bcrypt.d.ts +11 -0
- package/build/modules/hash/drivers/bcrypt.js +2 -9
- package/build/modules/hash/drivers/scrypt.js +2 -9
- package/build/modules/hash/main.d.ts +18 -0
- package/build/modules/hash/main.js +6 -10
- package/build/modules/hash/phc_formatter.js +2 -9
- package/build/modules/health.js +2 -9
- package/build/modules/http/main.js +4 -15
- package/build/modules/http/url_builder_client.d.ts +1 -0
- package/build/modules/http/url_builder_client.js +2 -0
- package/build/modules/logger.d.ts +30 -0
- package/build/modules/logger.js +4 -9
- package/build/modules/repl.js +4 -9
- package/build/modules/transformers/main.js +4 -9
- package/build/providers/app_provider.d.ts +9 -21
- package/build/providers/app_provider.js +147 -363
- package/build/providers/edge_provider.js +97 -104
- package/build/providers/hash_provider.js +29 -91
- package/build/providers/repl_provider.js +61 -152
- package/build/providers/vinejs_provider.d.ts +1 -1
- package/build/providers/vinejs_provider.js +20 -66
- package/build/services/ace.js +2 -17
- package/build/services/app.js +2 -21
- package/build/services/config.js +2 -13
- package/build/services/dumper.js +5 -21
- package/build/services/emitter.js +2 -14
- package/build/services/encryption.js +2 -14
- package/build/services/hash.js +2 -14
- package/build/services/logger.js +2 -14
- package/build/services/repl.js +2 -14
- package/build/services/router.js +2 -14
- package/build/services/server.js +2 -14
- package/build/services/test_utils.js +2 -17
- package/build/services/url_builder.js +5 -17
- package/build/src/exceptions.js +2 -49
- package/build/src/helpers/assert.js +2 -55
- package/build/src/helpers/http.d.ts +20 -0
- package/build/src/helpers/http.js +2 -0
- package/build/src/helpers/is.js +3 -31
- package/build/src/helpers/main.d.ts +1 -5
- package/build/src/helpers/main.js +5 -56
- package/build/src/helpers/string.js +2 -60
- package/build/src/helpers/types.js +26 -135
- package/build/src/helpers/verification_token.js +2 -120
- package/build/src/test_utils/main.js +5 -77
- package/build/src/types.d.ts +1 -0
- package/build/src/types.js +0 -8
- package/build/src/utils.d.ts +1 -1
- package/build/src/vine.js +2 -97
- package/build/types/ace.js +2 -9
- package/build/types/app.js +2 -9
- package/build/types/bodyparser.js +2 -9
- package/build/types/common.js +2 -9
- package/build/types/container.js +2 -9
- package/build/types/encryption.js +2 -9
- package/build/types/events.js +2 -9
- package/build/types/hash.js +2 -9
- package/build/types/health.js +2 -9
- package/build/types/helpers.d.ts +20 -0
- package/build/types/helpers.js +0 -8
- package/build/types/http.js +2 -9
- package/build/types/logger.js +2 -9
- package/build/types/repl.js +2 -9
- package/build/types/transformers.js +2 -9
- package/package.json +88 -30
- package/build/modules/ace/commands.js +0 -157
- package/build/modules/ace/create_kernel.js +0 -91
- package/build/modules/ace/kernel.js +0 -40
- package/build/modules/dumper/define_config.js +0 -36
- package/build/modules/dumper/dumper.js +0 -256
- package/build/modules/dumper/errors.js +0 -119
- package/build/modules/hash/define_config.js +0 -125
- package/build/modules/http/request_validator.js +0 -100
- package/build/src/assembler_hooks/index_entities.js +0 -106
- package/build/src/cli_formatters/routes_list.js +0 -381
- package/build/src/config_provider.js +0 -71
- package/build/src/debug.js +0 -25
- package/build/src/ignitor/ace.js +0 -102
- package/build/src/ignitor/http.js +0 -146
- package/build/src/ignitor/main.js +0 -124
- package/build/src/ignitor/test.js +0 -66
- package/build/src/test_utils/http.js +0 -82
- package/build/src/utils.js +0 -104
- package/build/stubs/main.js +0 -9
- package/build/toolkit/commands/index_commands.js +0 -30
- package/build/toolkit/main.js +0 -27
|
@@ -1,57 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { t as stubsRoot } from "../../main-kn40V-hF.js";
|
|
2
|
+
import { f as BaseCommand, o as args } from "../../main-Cn_x9YY5.js";
|
|
3
|
+
import { t as __decorate } from "../../decorate-DM0Sx1ye.js";
|
|
4
|
+
var MakeView = class extends BaseCommand {
|
|
5
|
+
static commandName = "make:view";
|
|
6
|
+
static description = "Create a new Edge.js template file";
|
|
7
|
+
stubPath = "make/view/main.stub";
|
|
8
|
+
async run() {
|
|
9
|
+
await (await this.createCodemods()).makeUsingStub(stubsRoot, this.stubPath, {
|
|
10
|
+
flags: this.parsed.flags,
|
|
11
|
+
entity: this.app.generators.createEntity(this.name)
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Command to create a new Edge.js template file.
|
|
19
|
-
* Edge templates are used for rendering HTML views in your web application,
|
|
20
|
-
* supporting layouts, partials, components, and template inheritance.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```
|
|
24
|
-
* ace make:view home
|
|
25
|
-
* ace make:view users/profile
|
|
26
|
-
* ace make:view components/navbar
|
|
27
|
-
* ace make:view layouts/app
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export default class MakeView extends BaseCommand {
|
|
31
|
-
/**
|
|
32
|
-
* The command name
|
|
33
|
-
*/
|
|
34
|
-
static commandName = 'make:view';
|
|
35
|
-
/**
|
|
36
|
-
* The command description
|
|
37
|
-
*/
|
|
38
|
-
static description = 'Create a new Edge.js template file';
|
|
39
|
-
/**
|
|
40
|
-
* The stub template file to use for generating the Edge template
|
|
41
|
-
*/
|
|
42
|
-
stubPath = 'make/view/main.stub';
|
|
43
|
-
/**
|
|
44
|
-
* Execute the command to create a new Edge.js template file.
|
|
45
|
-
* Generates the template file in the views directory.
|
|
46
|
-
*/
|
|
47
|
-
async run() {
|
|
48
|
-
const codemods = await this.createCodemods();
|
|
49
|
-
await codemods.makeUsingStub(stubsRoot, this.stubPath, {
|
|
50
|
-
flags: this.parsed.flags,
|
|
51
|
-
entity: this.app.generators.createEntity(this.name),
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
__decorate([
|
|
56
|
-
args.string({ description: 'Name of the template' })
|
|
57
|
-
], MakeView.prototype, "name", void 0);
|
|
15
|
+
__decorate([args.string({ description: "Name of the template" })], MakeView.prototype, "name", void 0);
|
|
16
|
+
export { MakeView as default };
|
package/build/commands/repl.js
CHANGED
|
@@ -1,50 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* ace repl
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export default class ReplCommand extends BaseCommand {
|
|
22
|
-
/**
|
|
23
|
-
* The command name
|
|
24
|
-
*/
|
|
25
|
-
static commandName = 'repl';
|
|
26
|
-
/**
|
|
27
|
-
* The command description
|
|
28
|
-
*/
|
|
29
|
-
static description = 'Start a new REPL session';
|
|
30
|
-
/**
|
|
31
|
-
* Command options configuration.
|
|
32
|
-
* Requires the application to be started and keeps the process alive.
|
|
33
|
-
*/
|
|
34
|
-
static options = {
|
|
35
|
-
startApp: true,
|
|
36
|
-
staysAlive: true,
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Execute the command to start the REPL server.
|
|
40
|
-
* Creates a REPL instance from the container and sets up an exit handler
|
|
41
|
-
* that properly terminates the application when the REPL session ends.
|
|
42
|
-
*/
|
|
43
|
-
async run() {
|
|
44
|
-
const repl = await this.app.container.make('repl');
|
|
45
|
-
repl.start();
|
|
46
|
-
repl.server.on('exit', async () => {
|
|
47
|
-
await this.terminate();
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
import { f as BaseCommand } from "../main-Cn_x9YY5.js";
|
|
2
|
+
var ReplCommand = class extends BaseCommand {
|
|
3
|
+
static commandName = "repl";
|
|
4
|
+
static description = "Start a new REPL session";
|
|
5
|
+
static options = {
|
|
6
|
+
startApp: true,
|
|
7
|
+
staysAlive: true
|
|
8
|
+
};
|
|
9
|
+
async run() {
|
|
10
|
+
const repl = await this.app.container.make("repl");
|
|
11
|
+
repl.start();
|
|
12
|
+
repl.server.on("exit", async () => {
|
|
13
|
+
await this.terminate();
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export { ReplCommand as default };
|
package/build/commands/serve.js
CHANGED
|
@@ -1,157 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { t as importAssembler } from "../utils-CNQ4tlGM.js";
|
|
2
|
+
import { f as BaseCommand, l as flags } from "../main-Cn_x9YY5.js";
|
|
3
|
+
import { t as __decorate } from "../decorate-DM0Sx1ye.js";
|
|
4
|
+
var Serve = class extends BaseCommand {
|
|
5
|
+
static commandName = "serve";
|
|
6
|
+
static description = "Start the development HTTP server along with the file watcher to perform restarts on file change";
|
|
7
|
+
static help = [
|
|
8
|
+
"Start the development server with file watcher using the following command.",
|
|
9
|
+
"```",
|
|
10
|
+
"{{ binaryName }} serve --watch",
|
|
11
|
+
"```",
|
|
12
|
+
"",
|
|
13
|
+
"You can also start the server with HMR support using the following command.",
|
|
14
|
+
"```",
|
|
15
|
+
"{{ binaryName }} serve --hmr",
|
|
16
|
+
"```",
|
|
17
|
+
"",
|
|
18
|
+
"The assets bundler dev server runs automatically after detecting vite config or webpack config files",
|
|
19
|
+
"You may pass vite CLI args using the --assets-args command line flag.",
|
|
20
|
+
"```",
|
|
21
|
+
"{{ binaryName }} serve --assets-args=\"--debug --base=/public\"",
|
|
22
|
+
"```"
|
|
23
|
+
];
|
|
24
|
+
static options = { staysAlive: true };
|
|
25
|
+
#logMissingDevelopmentDependency(dependency) {
|
|
26
|
+
this.logger.error([
|
|
27
|
+
`Cannot find package "${dependency}"`,
|
|
28
|
+
"",
|
|
29
|
+
`The "${dependency}" package is a development dependency and therefore you should use the serve command during development only.`,
|
|
30
|
+
"",
|
|
31
|
+
"If you are running your application in production, then use \"node bin/server.js\" command to start the HTTP server"
|
|
32
|
+
].join("\n"));
|
|
33
|
+
}
|
|
34
|
+
async run() {
|
|
35
|
+
const assembler = await importAssembler(this.app);
|
|
36
|
+
if (!assembler) {
|
|
37
|
+
this.#logMissingDevelopmentDependency("@adonisjs/assembler");
|
|
38
|
+
this.exitCode = 1;
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (this.watch && this.hmr) {
|
|
42
|
+
this.logger.error("Cannot use --watch and --hmr flags together. Choose one of them");
|
|
43
|
+
this.exitCode = 1;
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
this.devServer = new assembler.DevServer(this.app.appRoot, {
|
|
47
|
+
hmr: this.hmr === true ? true : false,
|
|
48
|
+
clearScreen: this.clear === false ? false : true,
|
|
49
|
+
nodeArgs: this.parsed.nodeArgs,
|
|
50
|
+
scriptArgs: [],
|
|
51
|
+
metaFiles: this.app.rcFile.metaFiles,
|
|
52
|
+
hooks: this.app.rcFile.hooks
|
|
53
|
+
});
|
|
54
|
+
this.devServer.ui.logger = this.logger;
|
|
55
|
+
this.devServer.onClose((exitCode) => {
|
|
56
|
+
this.exitCode = exitCode;
|
|
57
|
+
this.terminate();
|
|
58
|
+
});
|
|
59
|
+
this.devServer.onError(() => {
|
|
60
|
+
this.exitCode = 1;
|
|
61
|
+
this.terminate();
|
|
62
|
+
});
|
|
63
|
+
if (this.watch) await this.devServer.startAndWatch({ poll: this.poll || false });
|
|
64
|
+
else await this.devServer.start();
|
|
65
|
+
}
|
|
14
66
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
*/
|
|
31
|
-
export default class Serve extends BaseCommand {
|
|
32
|
-
/**
|
|
33
|
-
* The command name
|
|
34
|
-
*/
|
|
35
|
-
static commandName = 'serve';
|
|
36
|
-
/**
|
|
37
|
-
* The command description
|
|
38
|
-
*/
|
|
39
|
-
static description = 'Start the development HTTP server along with the file watcher to perform restarts on file change';
|
|
40
|
-
/**
|
|
41
|
-
* Help text for the command
|
|
42
|
-
*/
|
|
43
|
-
static help = [
|
|
44
|
-
'Start the development server with file watcher using the following command.',
|
|
45
|
-
'```',
|
|
46
|
-
'{{ binaryName }} serve --watch',
|
|
47
|
-
'```',
|
|
48
|
-
'',
|
|
49
|
-
'You can also start the server with HMR support using the following command.',
|
|
50
|
-
'```',
|
|
51
|
-
'{{ binaryName }} serve --hmr',
|
|
52
|
-
'```',
|
|
53
|
-
'',
|
|
54
|
-
'The assets bundler dev server runs automatically after detecting vite config or webpack config files',
|
|
55
|
-
'You may pass vite CLI args using the --assets-args command line flag.',
|
|
56
|
-
'```',
|
|
57
|
-
'{{ binaryName }} serve --assets-args="--debug --base=/public"',
|
|
58
|
-
'```',
|
|
59
|
-
];
|
|
60
|
-
/**
|
|
61
|
-
* Command options configuration
|
|
62
|
-
*/
|
|
63
|
-
static options = {
|
|
64
|
-
staysAlive: true,
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Log a development dependency is missing
|
|
68
|
-
*
|
|
69
|
-
* @param dependency - The name of the missing dependency
|
|
70
|
-
*/
|
|
71
|
-
#logMissingDevelopmentDependency(dependency) {
|
|
72
|
-
this.logger.error([
|
|
73
|
-
`Cannot find package "${dependency}"`,
|
|
74
|
-
'',
|
|
75
|
-
`The "${dependency}" package is a development dependency and therefore you should use the serve command during development only.`,
|
|
76
|
-
'',
|
|
77
|
-
'If you are running your application in production, then use "node bin/server.js" command to start the HTTP server',
|
|
78
|
-
].join('\n'));
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Runs the HTTP server
|
|
82
|
-
*/
|
|
83
|
-
async run() {
|
|
84
|
-
const assembler = await importAssembler(this.app);
|
|
85
|
-
if (!assembler) {
|
|
86
|
-
this.#logMissingDevelopmentDependency('@adonisjs/assembler');
|
|
87
|
-
this.exitCode = 1;
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
if (this.watch && this.hmr) {
|
|
91
|
-
this.logger.error('Cannot use --watch and --hmr flags together. Choose one of them');
|
|
92
|
-
this.exitCode = 1;
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
this.devServer = new assembler.DevServer(this.app.appRoot, {
|
|
96
|
-
hmr: this.hmr === true ? true : false,
|
|
97
|
-
clearScreen: this.clear === false ? false : true,
|
|
98
|
-
nodeArgs: this.parsed.nodeArgs,
|
|
99
|
-
scriptArgs: [],
|
|
100
|
-
metaFiles: this.app.rcFile.metaFiles,
|
|
101
|
-
hooks: this.app.rcFile.hooks,
|
|
102
|
-
});
|
|
103
|
-
/**
|
|
104
|
-
* Share command logger with assembler, so that CLI flags like --no-ansi has
|
|
105
|
-
* similar impact for assembler logs as well.
|
|
106
|
-
*/
|
|
107
|
-
this.devServer.ui.logger = this.logger;
|
|
108
|
-
/**
|
|
109
|
-
* Exit command when the dev server is closed
|
|
110
|
-
*/
|
|
111
|
-
this.devServer.onClose((exitCode) => {
|
|
112
|
-
this.exitCode = exitCode;
|
|
113
|
-
this.terminate();
|
|
114
|
-
});
|
|
115
|
-
/**
|
|
116
|
-
* Exit command when the dev server crashes
|
|
117
|
-
*/
|
|
118
|
-
this.devServer.onError(() => {
|
|
119
|
-
this.exitCode = 1;
|
|
120
|
-
this.terminate();
|
|
121
|
-
});
|
|
122
|
-
const ts = await importTypeScript(this.app);
|
|
123
|
-
if (!ts) {
|
|
124
|
-
this.#logMissingDevelopmentDependency('typescript');
|
|
125
|
-
this.exitCode = 1;
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Start the development server
|
|
130
|
-
*/
|
|
131
|
-
if (this.watch) {
|
|
132
|
-
await this.devServer.startAndWatch(ts, { poll: this.poll || false });
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
await this.devServer.start(ts);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
__decorate([
|
|
140
|
-
flags.boolean({ description: 'Start the server with HMR support' })
|
|
141
|
-
], Serve.prototype, "hmr", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
flags.boolean({
|
|
144
|
-
description: 'Watch filesystem and restart the HTTP server on file change',
|
|
145
|
-
alias: 'w',
|
|
146
|
-
})
|
|
147
|
-
], Serve.prototype, "watch", void 0);
|
|
148
|
-
__decorate([
|
|
149
|
-
flags.boolean({ description: 'Use polling to detect filesystem changes', alias: 'p' })
|
|
150
|
-
], Serve.prototype, "poll", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
flags.boolean({
|
|
153
|
-
description: 'Clear the terminal for new logs after file change',
|
|
154
|
-
showNegatedVariantInHelp: true,
|
|
155
|
-
default: true,
|
|
156
|
-
})
|
|
157
|
-
], Serve.prototype, "clear", void 0);
|
|
67
|
+
__decorate([flags.boolean({ description: "Start the server with HMR support" })], Serve.prototype, "hmr", void 0);
|
|
68
|
+
__decorate([flags.boolean({
|
|
69
|
+
description: "Watch filesystem and restart the HTTP server on file change",
|
|
70
|
+
alias: "w"
|
|
71
|
+
})], Serve.prototype, "watch", void 0);
|
|
72
|
+
__decorate([flags.boolean({
|
|
73
|
+
description: "Use polling to detect filesystem changes",
|
|
74
|
+
alias: "p"
|
|
75
|
+
})], Serve.prototype, "poll", void 0);
|
|
76
|
+
__decorate([flags.boolean({
|
|
77
|
+
description: "Clear the terminal for new logs after file change",
|
|
78
|
+
showNegatedVariantInHelp: true,
|
|
79
|
+
default: true
|
|
80
|
+
})], Serve.prototype, "clear", void 0);
|
|
81
|
+
export { Serve as default };
|