@vercube/devkit 0.0.1-beta.6 → 0.0.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -39,6 +39,7 @@ const node_querystring = __toESM(require("node:querystring"));
39
39
  const node_url = __toESM(require("node:url"));
40
40
  const consola = __toESM(require("consola"));
41
41
  const node_child_process = __toESM(require("node:child_process"));
42
+ const node_tty = __toESM(require("node:tty"));
42
43
 
43
44
  //#region packages/devkit/src/Common/App.ts
44
45
  async function createVercube() {
@@ -2762,18 +2763,18 @@ pp$8.parseForStatement = function(node) {
2762
2763
  }
2763
2764
  var isLet = this.isLet();
2764
2765
  if (this.type === types$1._var || this.type === types$1._const || isLet) {
2765
- var init$1 = this.startNode(), kind = isLet ? "let" : this.value;
2766
+ var init$1$1 = this.startNode(), kind = isLet ? "let" : this.value;
2766
2767
  this.next();
2767
- this.parseVar(init$1, true, kind);
2768
- this.finishNode(init$1, "VariableDeclaration");
2769
- if ((this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && init$1.declarations.length === 1) {
2768
+ this.parseVar(init$1$1, true, kind);
2769
+ this.finishNode(init$1$1, "VariableDeclaration");
2770
+ if ((this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && init$1$1.declarations.length === 1) {
2770
2771
  if (this.options.ecmaVersion >= 9) if (this.type === types$1._in) {
2771
2772
  if (awaitAt > -1) this.unexpected(awaitAt);
2772
2773
  } else node.await = awaitAt > -1;
2773
- return this.parseForIn(node, init$1);
2774
+ return this.parseForIn(node, init$1$1);
2774
2775
  }
2775
2776
  if (awaitAt > -1) this.unexpected(awaitAt);
2776
- return this.parseFor(node, init$1);
2777
+ return this.parseFor(node, init$1$1);
2777
2778
  }
2778
2779
  var startsWithLet = this.isContextual("let"), isForOf = false;
2779
2780
  var containsEsc = this.containsEsc;
@@ -2953,8 +2954,8 @@ pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {
2953
2954
  if (createNewLexicalScope) this.exitScope();
2954
2955
  return this.finishNode(node, "BlockStatement");
2955
2956
  };
2956
- pp$8.parseFor = function(node, init$1) {
2957
- node.init = init$1;
2957
+ pp$8.parseFor = function(node, init$2) {
2958
+ node.init = init$2;
2958
2959
  this.expect(types$1.semi);
2959
2960
  node.test = this.type === types$1.semi ? null : this.parseExpression();
2960
2961
  this.expect(types$1.semi);
@@ -2965,11 +2966,11 @@ pp$8.parseFor = function(node, init$1) {
2965
2966
  this.labels.pop();
2966
2967
  return this.finishNode(node, "ForStatement");
2967
2968
  };
2968
- pp$8.parseForIn = function(node, init$1) {
2969
+ pp$8.parseForIn = function(node, init$2) {
2969
2970
  var isForIn = this.type === types$1._in;
2970
2971
  this.next();
2971
- if (init$1.type === "VariableDeclaration" && init$1.declarations[0].init != null && (!isForIn || this.options.ecmaVersion < 8 || this.strict || init$1.kind !== "var" || init$1.declarations[0].id.type !== "Identifier")) this.raise(init$1.start, (isForIn ? "for-in" : "for-of") + " loop variable declaration may not have an initializer");
2972
- node.left = init$1;
2972
+ if (init$2.type === "VariableDeclaration" && init$2.declarations[0].init != null && (!isForIn || this.options.ecmaVersion < 8 || this.strict || init$2.kind !== "var" || init$2.declarations[0].id.type !== "Identifier")) this.raise(init$2.start, (isForIn ? "for-in" : "for-of") + " loop variable declaration may not have an initializer");
2973
+ node.left = init$2;
2973
2974
  node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();
2974
2975
  this.expect(types$1.parenR);
2975
2976
  node.body = this.parseStatement("for");
@@ -8699,8 +8700,8 @@ var require_utils = __commonJS({ "node_modules/.pnpm/picomatch@4.0.2/node_module
8699
8700
  exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
8700
8701
  exports.isWindows = () => {
8701
8702
  if (typeof navigator !== "undefined" && navigator.platform) {
8702
- const platform = navigator.platform.toLowerCase();
8703
- return platform === "win32" || platform === "windows";
8703
+ const platform$1 = navigator.platform.toLowerCase();
8704
+ return platform$1 === "win32" || platform$1 === "windows";
8704
8705
  }
8705
8706
  if (typeof process !== "undefined" && process.platform) return process.platform === "win32";
8706
8707
  return false;
@@ -10375,7 +10376,7 @@ var require_common = __commonJS({ "node_modules/.pnpm/debug@4.4.0/node_modules/d
10375
10376
  * This is the common logic for both the Node.js and web browser
10376
10377
  * implementations of `debug()`.
10377
10378
  */
10378
- function setup(env$1) {
10379
+ function setup(env$2) {
10379
10380
  createDebug.debug = createDebug;
10380
10381
  createDebug.default = createDebug;
10381
10382
  createDebug.coerce = coerce;
@@ -10384,8 +10385,8 @@ var require_common = __commonJS({ "node_modules/.pnpm/debug@4.4.0/node_modules/d
10384
10385
  createDebug.enabled = enabled;
10385
10386
  createDebug.humanize = require_ms();
10386
10387
  createDebug.destroy = destroy;
10387
- Object.keys(env$1).forEach((key) => {
10388
- createDebug[key] = env$1[key];
10388
+ Object.keys(env$2).forEach((key) => {
10389
+ createDebug[key] = env$2[key];
10389
10390
  });
10390
10391
  /**
10391
10392
  * The currently active debug mode names, and names to skip.
@@ -10773,10 +10774,10 @@ var require_browser = __commonJS({ "node_modules/.pnpm/debug@4.4.0/node_modules/
10773
10774
  //#endregion
10774
10775
  //#region node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
10775
10776
  var require_has_flag = __commonJS({ "node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
10776
- module.exports = (flag, argv = process.argv) => {
10777
+ module.exports = (flag, argv$1 = process.argv) => {
10777
10778
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
10778
- const position = argv.indexOf(prefix + flag);
10779
- const terminatorPosition = argv.indexOf("--");
10779
+ const position = argv$1.indexOf(prefix + flag);
10780
+ const terminatorPosition = argv$1.indexOf("--");
10780
10781
  return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
10781
10782
  };
10782
10783
  } });
@@ -10787,15 +10788,15 @@ var require_supports_color = __commonJS({ "node_modules/.pnpm/supports-color@8.1
10787
10788
  const os = require("os");
10788
10789
  const tty$1 = require("tty");
10789
10790
  const hasFlag = require_has_flag();
10790
- const { env } = process;
10791
+ const { env: env$1 } = process;
10791
10792
  let flagForceColor;
10792
10793
  if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
10793
10794
  else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
10794
10795
  function envForceColor() {
10795
- if ("FORCE_COLOR" in env) {
10796
- if (env.FORCE_COLOR === "true") return 1;
10797
- if (env.FORCE_COLOR === "false") return 0;
10798
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
10796
+ if ("FORCE_COLOR" in env$1) {
10797
+ if (env$1.FORCE_COLOR === "true") return 1;
10798
+ if (env$1.FORCE_COLOR === "false") return 0;
10799
+ return env$1.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env$1.FORCE_COLOR, 10), 3);
10799
10800
  }
10800
10801
  }
10801
10802
  function translateLevel(level) {
@@ -10818,13 +10819,13 @@ var require_supports_color = __commonJS({ "node_modules/.pnpm/supports-color@8.1
10818
10819
  }
10819
10820
  if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
10820
10821
  const min = forceColor || 0;
10821
- if (env.TERM === "dumb") return min;
10822
+ if (env$1.TERM === "dumb") return min;
10822
10823
  if (process.platform === "win32") {
10823
10824
  const osRelease = os.release().split(".");
10824
10825
  if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
10825
10826
  return 1;
10826
10827
  }
10827
- if ("CI" in env) {
10828
+ if ("CI" in env$1) {
10828
10829
  if ([
10829
10830
  "TRAVIS",
10830
10831
  "CIRCLECI",
@@ -10833,21 +10834,21 @@ var require_supports_color = __commonJS({ "node_modules/.pnpm/supports-color@8.1
10833
10834
  "GITHUB_ACTIONS",
10834
10835
  "BUILDKITE",
10835
10836
  "DRONE"
10836
- ].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
10837
+ ].some((sign) => sign in env$1) || env$1.CI_NAME === "codeship") return 1;
10837
10838
  return min;
10838
10839
  }
10839
- if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
10840
- if (env.COLORTERM === "truecolor") return 3;
10841
- if ("TERM_PROGRAM" in env) {
10842
- const version$1 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
10843
- switch (env.TERM_PROGRAM) {
10840
+ if ("TEAMCITY_VERSION" in env$1) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env$1.TEAMCITY_VERSION) ? 1 : 0;
10841
+ if (env$1.COLORTERM === "truecolor") return 3;
10842
+ if ("TERM_PROGRAM" in env$1) {
10843
+ const version$1 = Number.parseInt((env$1.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
10844
+ switch (env$1.TERM_PROGRAM) {
10844
10845
  case "iTerm.app": return version$1 >= 3 ? 3 : 2;
10845
10846
  case "Apple_Terminal": return 2;
10846
10847
  }
10847
10848
  }
10848
- if (/-256(color)?$/i.test(env.TERM)) return 2;
10849
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
10850
- if ("COLORTERM" in env) return 1;
10849
+ if (/-256(color)?$/i.test(env$1.TERM)) return 2;
10850
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env$1.TERM)) return 1;
10851
+ if ("COLORTERM" in env$1) return 1;
10851
10852
  return min;
10852
10853
  }
10853
10854
  function getSupportLevel(stream, options = {}) {
@@ -10875,7 +10876,7 @@ var require_node = __commonJS({ "node_modules/.pnpm/debug@4.4.0/node_modules/deb
10875
10876
  /**
10876
10877
  * This is the Node.js implementation of `debug()`.
10877
10878
  */
10878
- exports.init = init;
10879
+ exports.init = init$1;
10879
10880
  exports.log = log;
10880
10881
  exports.formatArgs = formatArgs;
10881
10882
  exports.save = save;
@@ -11049,7 +11050,7 @@ var require_node = __commonJS({ "node_modules/.pnpm/debug@4.4.0/node_modules/deb
11049
11050
  * Create a new `inspectOpts` object in case `useColors` is set
11050
11051
  * differently for a particular `debug` instance.
11051
11052
  */
11052
- function init(debug$1) {
11053
+ function init$1(debug$1) {
11053
11054
  debug$1.inspectOpts = {};
11054
11055
  const keys = Object.keys(exports.inspectOpts);
11055
11056
  for (let i$1 = 0; i$1 < keys.length; i$1++) debug$1.inspectOpts[keys[i$1]] = exports.inspectOpts[keys[i$1]];
@@ -11583,6 +11584,77 @@ async function watch(app) {
11583
11584
  await watcher(app);
11584
11585
  }
11585
11586
 
11587
+ //#endregion
11588
+ //#region node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs
11589
+ const { env = {}, argv = [], platform = "" } = typeof process === "undefined" ? {} : process;
11590
+ const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
11591
+ const isForced = "FORCE_COLOR" in env || argv.includes("--color");
11592
+ const isWindows = platform === "win32";
11593
+ const isDumbTerminal = env.TERM === "dumb";
11594
+ const isCompatibleTerminal = node_tty && node_tty.isatty && node_tty.isatty(1) && env.TERM && !isDumbTerminal;
11595
+ const isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
11596
+ const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
11597
+ function replaceClose(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
11598
+ return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
11599
+ }
11600
+ function clearBleed(index, string, open, close, replace) {
11601
+ return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
11602
+ }
11603
+ function filterEmpty(open, close, replace = open, at = open.length + 1) {
11604
+ return (string) => string || !(string === "" || string === void 0) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
11605
+ }
11606
+ function init(open, close, replace) {
11607
+ return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
11608
+ }
11609
+ const colorDefs = {
11610
+ reset: init(0, 0),
11611
+ bold: init(1, 22, "\x1B[22m\x1B[1m"),
11612
+ dim: init(2, 22, "\x1B[22m\x1B[2m"),
11613
+ italic: init(3, 23),
11614
+ underline: init(4, 24),
11615
+ inverse: init(7, 27),
11616
+ hidden: init(8, 28),
11617
+ strikethrough: init(9, 29),
11618
+ black: init(30, 39),
11619
+ red: init(31, 39),
11620
+ green: init(32, 39),
11621
+ yellow: init(33, 39),
11622
+ blue: init(34, 39),
11623
+ magenta: init(35, 39),
11624
+ cyan: init(36, 39),
11625
+ white: init(37, 39),
11626
+ gray: init(90, 39),
11627
+ bgBlack: init(40, 49),
11628
+ bgRed: init(41, 49),
11629
+ bgGreen: init(42, 49),
11630
+ bgYellow: init(43, 49),
11631
+ bgBlue: init(44, 49),
11632
+ bgMagenta: init(45, 49),
11633
+ bgCyan: init(46, 49),
11634
+ bgWhite: init(47, 49),
11635
+ blackBright: init(90, 39),
11636
+ redBright: init(91, 39),
11637
+ greenBright: init(92, 39),
11638
+ yellowBright: init(93, 39),
11639
+ blueBright: init(94, 39),
11640
+ magentaBright: init(95, 39),
11641
+ cyanBright: init(96, 39),
11642
+ whiteBright: init(97, 39),
11643
+ bgBlackBright: init(100, 49),
11644
+ bgRedBright: init(101, 49),
11645
+ bgGreenBright: init(102, 49),
11646
+ bgYellowBright: init(103, 49),
11647
+ bgBlueBright: init(104, 49),
11648
+ bgMagentaBright: init(105, 49),
11649
+ bgCyanBright: init(106, 49),
11650
+ bgWhiteBright: init(107, 49)
11651
+ };
11652
+ function createColors(useColor = isColorSupported) {
11653
+ return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
11654
+ }
11655
+ const colors = createColors();
11656
+ const ansiRegex = [String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`, String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");
11657
+
11586
11658
  //#endregion
11587
11659
  //#region packages/devkit/src/Server/DevServer.ts
11588
11660
  function createDevServer(app) {
@@ -11610,6 +11682,7 @@ function createDevServer(app) {
11610
11682
  tag: "worker",
11611
11683
  message: "Worker reloaded successfully"
11612
11684
  });
11685
+ consola.default.log(`\n${colors.green("➜")} App listening on port ${colors.bold(app.config.server?.port ?? 3e3)}`);
11613
11686
  }).catch((error) => {
11614
11687
  consola.default.error({
11615
11688
  tag: "worker",
package/dist/index.mjs CHANGED
@@ -13,6 +13,7 @@ import * as querystring from "node:querystring";
13
13
  import { fileURLToPath } from "node:url";
14
14
  import consola from "consola";
15
15
  import { fork } from "node:child_process";
16
+ import * as tty from "node:tty";
16
17
 
17
18
  //#region rolldown:runtime
18
19
  var __create = Object.create;
@@ -3133,22 +3134,22 @@ pp$8.parseForStatement = function(node) {
3133
3134
  var containsEsc = this.containsEsc;
3134
3135
  var refDestructuringErrors = new DestructuringErrors();
3135
3136
  var initPos = this.start;
3136
- var init = awaitAt > -1 ? this.parseExprSubscripts(refDestructuringErrors, "await") : this.parseExpression(true, refDestructuringErrors);
3137
+ var init$2 = awaitAt > -1 ? this.parseExprSubscripts(refDestructuringErrors, "await") : this.parseExpression(true, refDestructuringErrors);
3137
3138
  if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
3138
3139
  if (awaitAt > -1) {
3139
3140
  if (this.type === types$1._in) this.unexpected(awaitAt);
3140
3141
  node.await = true;
3141
3142
  } else if (isForOf && this.options.ecmaVersion >= 8) {
3142
- if (init.start === initPos && !containsEsc && init.type === "Identifier" && init.name === "async") this.unexpected();
3143
+ if (init$2.start === initPos && !containsEsc && init$2.type === "Identifier" && init$2.name === "async") this.unexpected();
3143
3144
  else if (this.options.ecmaVersion >= 9) node.await = false;
3144
3145
  }
3145
- if (startsWithLet && isForOf) this.raise(init.start, "The left-hand side of a for-of loop may not start with 'let'.");
3146
- this.toAssignable(init, false, refDestructuringErrors);
3147
- this.checkLValPattern(init);
3148
- return this.parseForIn(node, init);
3146
+ if (startsWithLet && isForOf) this.raise(init$2.start, "The left-hand side of a for-of loop may not start with 'let'.");
3147
+ this.toAssignable(init$2, false, refDestructuringErrors);
3148
+ this.checkLValPattern(init$2);
3149
+ return this.parseForIn(node, init$2);
3149
3150
  } else this.checkExpressionErrors(refDestructuringErrors, true);
3150
3151
  if (awaitAt > -1) this.unexpected(awaitAt);
3151
- return this.parseFor(node, init);
3152
+ return this.parseFor(node, init$2);
3152
3153
  };
3153
3154
  pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {
3154
3155
  this.next();
@@ -3307,8 +3308,8 @@ pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {
3307
3308
  if (createNewLexicalScope) this.exitScope();
3308
3309
  return this.finishNode(node, "BlockStatement");
3309
3310
  };
3310
- pp$8.parseFor = function(node, init) {
3311
- node.init = init;
3311
+ pp$8.parseFor = function(node, init$1) {
3312
+ node.init = init$1;
3312
3313
  this.expect(types$1.semi);
3313
3314
  node.test = this.type === types$1.semi ? null : this.parseExpression();
3314
3315
  this.expect(types$1.semi);
@@ -3319,11 +3320,11 @@ pp$8.parseFor = function(node, init) {
3319
3320
  this.labels.pop();
3320
3321
  return this.finishNode(node, "ForStatement");
3321
3322
  };
3322
- pp$8.parseForIn = function(node, init) {
3323
+ pp$8.parseForIn = function(node, init$1) {
3323
3324
  var isForIn = this.type === types$1._in;
3324
3325
  this.next();
3325
- if (init.type === "VariableDeclaration" && init.declarations[0].init != null && (!isForIn || this.options.ecmaVersion < 8 || this.strict || init.kind !== "var" || init.declarations[0].id.type !== "Identifier")) this.raise(init.start, (isForIn ? "for-in" : "for-of") + " loop variable declaration may not have an initializer");
3326
- node.left = init;
3326
+ if (init$1.type === "VariableDeclaration" && init$1.declarations[0].init != null && (!isForIn || this.options.ecmaVersion < 8 || this.strict || init$1.kind !== "var" || init$1.declarations[0].id.type !== "Identifier")) this.raise(init$1.start, (isForIn ? "for-in" : "for-of") + " loop variable declaration may not have an initializer");
3327
+ node.left = init$1;
3327
3328
  node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();
3328
3329
  this.expect(types$1.parenR);
3329
3330
  node.body = this.parseStatement("for");
@@ -9053,8 +9054,8 @@ var require_utils = __commonJS({ "node_modules/.pnpm/picomatch@4.0.2/node_module
9053
9054
  exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
9054
9055
  exports.isWindows = () => {
9055
9056
  if (typeof navigator !== "undefined" && navigator.platform) {
9056
- const platform = navigator.platform.toLowerCase();
9057
- return platform === "win32" || platform === "windows";
9057
+ const platform$1 = navigator.platform.toLowerCase();
9058
+ return platform$1 === "win32" || platform$1 === "windows";
9058
9059
  }
9059
9060
  if (typeof process !== "undefined" && process.platform) return process.platform === "win32";
9060
9061
  return false;
@@ -10729,7 +10730,7 @@ var require_common = __commonJS({ "node_modules/.pnpm/debug@4.4.0/node_modules/d
10729
10730
  * This is the common logic for both the Node.js and web browser
10730
10731
  * implementations of `debug()`.
10731
10732
  */
10732
- function setup(env) {
10733
+ function setup(env$1) {
10733
10734
  createDebug.debug = createDebug;
10734
10735
  createDebug.default = createDebug;
10735
10736
  createDebug.coerce = coerce;
@@ -10738,8 +10739,8 @@ var require_common = __commonJS({ "node_modules/.pnpm/debug@4.4.0/node_modules/d
10738
10739
  createDebug.enabled = enabled;
10739
10740
  createDebug.humanize = require_ms();
10740
10741
  createDebug.destroy = destroy;
10741
- Object.keys(env).forEach((key) => {
10742
- createDebug[key] = env[key];
10742
+ Object.keys(env$1).forEach((key) => {
10743
+ createDebug[key] = env$1[key];
10743
10744
  });
10744
10745
  /**
10745
10746
  * The currently active debug mode names, and names to skip.
@@ -11624,6 +11625,77 @@ async function watch(app) {
11624
11625
  await watcher(app);
11625
11626
  }
11626
11627
 
11628
+ //#endregion
11629
+ //#region node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs
11630
+ const { env = {}, argv = [], platform = "" } = typeof process === "undefined" ? {} : process;
11631
+ const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
11632
+ const isForced = "FORCE_COLOR" in env || argv.includes("--color");
11633
+ const isWindows = platform === "win32";
11634
+ const isDumbTerminal = env.TERM === "dumb";
11635
+ const isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal;
11636
+ const isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
11637
+ const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
11638
+ function replaceClose(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
11639
+ return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
11640
+ }
11641
+ function clearBleed(index, string, open, close, replace) {
11642
+ return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
11643
+ }
11644
+ function filterEmpty(open, close, replace = open, at = open.length + 1) {
11645
+ return (string) => string || !(string === "" || string === void 0) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
11646
+ }
11647
+ function init(open, close, replace) {
11648
+ return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
11649
+ }
11650
+ const colorDefs = {
11651
+ reset: init(0, 0),
11652
+ bold: init(1, 22, "\x1B[22m\x1B[1m"),
11653
+ dim: init(2, 22, "\x1B[22m\x1B[2m"),
11654
+ italic: init(3, 23),
11655
+ underline: init(4, 24),
11656
+ inverse: init(7, 27),
11657
+ hidden: init(8, 28),
11658
+ strikethrough: init(9, 29),
11659
+ black: init(30, 39),
11660
+ red: init(31, 39),
11661
+ green: init(32, 39),
11662
+ yellow: init(33, 39),
11663
+ blue: init(34, 39),
11664
+ magenta: init(35, 39),
11665
+ cyan: init(36, 39),
11666
+ white: init(37, 39),
11667
+ gray: init(90, 39),
11668
+ bgBlack: init(40, 49),
11669
+ bgRed: init(41, 49),
11670
+ bgGreen: init(42, 49),
11671
+ bgYellow: init(43, 49),
11672
+ bgBlue: init(44, 49),
11673
+ bgMagenta: init(45, 49),
11674
+ bgCyan: init(46, 49),
11675
+ bgWhite: init(47, 49),
11676
+ blackBright: init(90, 39),
11677
+ redBright: init(91, 39),
11678
+ greenBright: init(92, 39),
11679
+ yellowBright: init(93, 39),
11680
+ blueBright: init(94, 39),
11681
+ magentaBright: init(95, 39),
11682
+ cyanBright: init(96, 39),
11683
+ whiteBright: init(97, 39),
11684
+ bgBlackBright: init(100, 49),
11685
+ bgRedBright: init(101, 49),
11686
+ bgGreenBright: init(102, 49),
11687
+ bgYellowBright: init(103, 49),
11688
+ bgBlueBright: init(104, 49),
11689
+ bgMagentaBright: init(105, 49),
11690
+ bgCyanBright: init(106, 49),
11691
+ bgWhiteBright: init(107, 49)
11692
+ };
11693
+ function createColors(useColor = isColorSupported) {
11694
+ return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
11695
+ }
11696
+ const colors = createColors();
11697
+ const ansiRegex = [String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`, String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");
11698
+
11627
11699
  //#endregion
11628
11700
  //#region packages/devkit/src/Server/DevServer.ts
11629
11701
  function createDevServer(app) {
@@ -11651,6 +11723,7 @@ function createDevServer(app) {
11651
11723
  tag: "worker",
11652
11724
  message: "Worker reloaded successfully"
11653
11725
  });
11726
+ consola.log(`\n${colors.green("➜")} App listening on port ${colors.bold(app.config.server?.port ?? 3e3)}`);
11654
11727
  }).catch((error) => {
11655
11728
  consola.error({
11656
11729
  tag: "worker",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/devkit",
3
- "version": "0.0.1-beta.6",
3
+ "version": "0.0.1-beta.7",
4
4
  "description": "Devkit module for Vercube framework",
5
5
  "repository": "@vercube/devkit",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "oxc-transform": "0.63.0",
30
30
  "pathe": "2.0.3",
31
31
  "rolldown": "1.0.0-beta.7",
32
- "@vercube/core": "0.0.1-beta.6"
32
+ "@vercube/core": "0.0.1-beta.7"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"