feat: init
This commit is contained in:
37
node_modules/@nuxt/cli/dist/dev-child-kKJfFeIz.mjs
generated
vendored
Normal file
37
node_modules/@nuxt/cli/dist/dev-child-kKJfFeIz.mjs
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import { a as legacyRootDirArgs, n as dotEnvArgs, o as logLevelArgs, r as envNameArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
||||
import process from "node:process";
|
||||
import { defineCommand } from "citty";
|
||||
import { isTest } from "std-env";
|
||||
import { resolve } from "pathe";
|
||||
|
||||
//#region ../nuxi/src/commands/dev-child.ts
|
||||
var dev_child_default = defineCommand({
|
||||
meta: {
|
||||
name: "_dev",
|
||||
description: "Run Nuxt development server (internal command to start child process)"
|
||||
},
|
||||
args: {
|
||||
...cwdArgs,
|
||||
...logLevelArgs,
|
||||
...envNameArgs,
|
||||
...dotEnvArgs,
|
||||
...legacyRootDirArgs,
|
||||
clear: {
|
||||
type: "boolean",
|
||||
description: "Clear console on restart",
|
||||
negativeDescription: "Disable clear console on restart"
|
||||
}
|
||||
},
|
||||
async run(ctx) {
|
||||
if (!process.send && !isTest) console.warn("`nuxi _dev` is an internal command and should not be used directly. Please use `nuxi dev` instead.");
|
||||
const cwd = resolve(ctx.args.cwd || ctx.args.rootDir);
|
||||
const { initialize } = await import("./dev-ChFC_-E8.mjs").then((n) => n.t);
|
||||
await initialize({
|
||||
cwd,
|
||||
args: ctx.args
|
||||
}, ctx);
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
export { dev_child_default as default };
|
||||
Reference in New Issue
Block a user