@kimesh/cli 0.2.7 → 0.2.8-nightly.20260126032211
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/{_shared-CEwpPT2B.js → _shared-D3uN5SoF.js} +6 -0
- package/dist/{build-Ce4Dm8mI.js → build-DeoCfEWa.js} +1 -1
- package/dist/commands/init.js +1 -3
- package/dist/{dev-o5sR0-kW.js → dev-GvlWAVQg.js} +5 -3
- package/dist/{generate-Dx64ract.js → generate-wsf4mquZ.js} +1 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.js +3 -3
- package/dist/{layer-D829AuwM.js → layer-CMtAhoLY.js} +2 -4
- package/dist/{main-CCPXvZyj.d.ts → main-CnFffgxE.d.ts} +1 -1
- package/dist/{main-DncTPs_e.js → main-Di3LTdeu.js} +10 -7
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/{prepare-DScUWnaY.js → prepare-VztJSQF3.js} +1 -1
- package/dist/{run-DCL2u7IK.js → run-CQnvUWbU.js} +1 -1
- package/dist/run.js +2 -2
- package/package.json +3 -3
package/dist/commands/init.js
CHANGED
|
@@ -55,9 +55,7 @@ var init_default = defineCommand({
|
|
|
55
55
|
consola.log(` ${pc.green("+")} ${dir}/`);
|
|
56
56
|
} else consola.log(` ${pc.dim("○")} ${dir}/ (exists)`);
|
|
57
57
|
}
|
|
58
|
-
const configContent = `
|
|
59
|
-
|
|
60
|
-
export default defineKmConfig({
|
|
58
|
+
const configContent = `export default defineKmConfig({
|
|
61
59
|
// Application name
|
|
62
60
|
name: '${getProjectName(root)}',
|
|
63
61
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { loadKit } from "./kit-BcEYldTS.js";
|
|
2
|
-
import { devArgs } from "./_shared-
|
|
2
|
+
import { devArgs } from "./_shared-D3uN5SoF.js";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
import consola from "consola";
|
|
5
5
|
import pc from "picocolors";
|
|
@@ -14,6 +14,8 @@ var dev_default = defineCommand({
|
|
|
14
14
|
args: devArgs,
|
|
15
15
|
async run({ args }) {
|
|
16
16
|
const root = resolve(args.root || process.cwd());
|
|
17
|
+
const verbose = args.verbose ?? false;
|
|
18
|
+
if (verbose) consola.level = 4;
|
|
17
19
|
const kit = await loadKit(root);
|
|
18
20
|
const { loadConfig, kimeshPlugin } = kit;
|
|
19
21
|
const kmConfig = await loadConfig({
|
|
@@ -23,8 +25,7 @@ var dev_default = defineCommand({
|
|
|
23
25
|
const enabledLayers = parseLayersArg(args.layers);
|
|
24
26
|
const excludedLayers = args["exclude-layers"] ? args["exclude-layers"].split(",").map((l) => l.trim()) : [];
|
|
25
27
|
consola.info(`Starting ${pc.cyan(kmConfig.name || "Kimesh")} dev server...`);
|
|
26
|
-
if (enabledLayers === "
|
|
27
|
-
else if (enabledLayers === "none") consola.info(`Layers: ${pc.yellow("none (host only)")}`);
|
|
28
|
+
if (enabledLayers === "none") consola.info(`Layers: ${pc.yellow("none (host only)")}`);
|
|
28
29
|
else if (Array.isArray(enabledLayers)) consola.info(`Layers: ${pc.cyan(enabledLayers.join(", "))}`);
|
|
29
30
|
if (excludedLayers.length > 0) consola.info(`Excluded: ${pc.yellow(excludedLayers.join(", "))}`);
|
|
30
31
|
const { createServer } = await import("vite");
|
|
@@ -36,6 +37,7 @@ var dev_default = defineCommand({
|
|
|
36
37
|
configFile: false,
|
|
37
38
|
plugins: [kimeshPlugin({
|
|
38
39
|
config: kmConfig,
|
|
40
|
+
debug: verbose,
|
|
39
41
|
layers: {
|
|
40
42
|
enabled: enabledLayers,
|
|
41
43
|
excluded: excludedLayers
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { main$1 as main, version$1 as version } from "./main-
|
|
1
|
+
import { main$1 as main, version$1 as version } from "./main-CnFffgxE.js";
|
|
2
2
|
import { run$1 as run } from "./run-DiuH8yNF.js";
|
|
3
3
|
import * as citty2 from "citty";
|
|
4
4
|
import * as consola0 from "consola";
|
|
@@ -38,6 +38,12 @@ declare const commands: {
|
|
|
38
38
|
alias: string;
|
|
39
39
|
description: string;
|
|
40
40
|
};
|
|
41
|
+
verbose: {
|
|
42
|
+
type: "boolean";
|
|
43
|
+
alias: string;
|
|
44
|
+
description: string;
|
|
45
|
+
default: false;
|
|
46
|
+
};
|
|
41
47
|
root: {
|
|
42
48
|
type: "string";
|
|
43
49
|
alias: string;
|
|
@@ -165,6 +171,12 @@ declare const commands: {
|
|
|
165
171
|
alias: string;
|
|
166
172
|
description: string;
|
|
167
173
|
};
|
|
174
|
+
verbose: {
|
|
175
|
+
type: "boolean";
|
|
176
|
+
alias: string;
|
|
177
|
+
description: string;
|
|
178
|
+
default: false;
|
|
179
|
+
};
|
|
168
180
|
root: {
|
|
169
181
|
type: "string";
|
|
170
182
|
alias: string;
|
|
@@ -289,6 +301,12 @@ declare const devArgs: {
|
|
|
289
301
|
alias: string;
|
|
290
302
|
description: string;
|
|
291
303
|
};
|
|
304
|
+
verbose: {
|
|
305
|
+
type: "boolean";
|
|
306
|
+
alias: string;
|
|
307
|
+
description: string;
|
|
308
|
+
default: false;
|
|
309
|
+
};
|
|
292
310
|
root: {
|
|
293
311
|
type: "string";
|
|
294
312
|
alias: string;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { commands, main, version } from "./main-
|
|
2
|
-
import { run } from "./run-
|
|
1
|
+
import { commands, main, version } from "./main-Di3LTdeu.js";
|
|
2
|
+
import { run } from "./run-CQnvUWbU.js";
|
|
3
3
|
import { clearKitCache, getKit, loadKit } from "./kit-BcEYldTS.js";
|
|
4
|
-
import { buildArgs, devArgs, prepareArgs, sharedArgs } from "./_shared-
|
|
4
|
+
import { buildArgs, devArgs, prepareArgs, sharedArgs } from "./_shared-D3uN5SoF.js";
|
|
5
5
|
import consola from "consola";
|
|
6
6
|
import pc from "picocolors";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { loadKit } from "./kit-BcEYldTS.js";
|
|
2
|
-
import { sharedArgs } from "./_shared-
|
|
2
|
+
import { sharedArgs } from "./_shared-D3uN5SoF.js";
|
|
3
3
|
import { defineCommand } from "citty";
|
|
4
4
|
import consola from "consola";
|
|
5
5
|
import pc from "picocolors";
|
|
@@ -145,9 +145,7 @@ var layer_default = defineCommand({
|
|
|
145
145
|
fs.mkdirSync(dirPath, { recursive: true });
|
|
146
146
|
consola.log(` ${pc.green("+")} ${dir || layerName}/`);
|
|
147
147
|
}
|
|
148
|
-
const configContent = `
|
|
149
|
-
|
|
150
|
-
export default defineKmConfig({
|
|
148
|
+
const configContent = `export default defineKmConfig({
|
|
151
149
|
name: '${layerName}',
|
|
152
150
|
|
|
153
151
|
// Base path for all routes in this layer
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
1
2
|
import { defineCommand } from "citty";
|
|
2
3
|
import consola from "consola";
|
|
3
4
|
import pc from "picocolors";
|
|
@@ -8,18 +9,20 @@ import pc from "picocolors";
|
|
|
8
9
|
* Commands are only imported when actually used
|
|
9
10
|
*/
|
|
10
11
|
const commands = {
|
|
11
|
-
dev: () => import("./dev-
|
|
12
|
-
build: () => import("./build-
|
|
13
|
-
generate: () => import("./generate-
|
|
14
|
-
prepare: () => import("./prepare-
|
|
15
|
-
layer: () => import("./layer-
|
|
12
|
+
dev: () => import("./dev-GvlWAVQg.js").then((m) => m.default),
|
|
13
|
+
build: () => import("./build-DeoCfEWa.js").then((m) => m.default),
|
|
14
|
+
generate: () => import("./generate-wsf4mquZ.js").then((m) => m.default),
|
|
15
|
+
prepare: () => import("./prepare-VztJSQF3.js").then((m) => m.default),
|
|
16
|
+
layer: () => import("./layer-CMtAhoLY.js").then((m) => m.default),
|
|
16
17
|
init: () => import("./commands/init.js").then((m) => m.default),
|
|
17
|
-
start: () => import("./dev-
|
|
18
|
+
start: () => import("./dev-GvlWAVQg.js").then((m) => m.default)
|
|
18
19
|
};
|
|
19
20
|
|
|
20
21
|
//#endregion
|
|
21
22
|
//#region src/main.ts
|
|
22
|
-
const
|
|
23
|
+
const require = createRequire(import.meta.url);
|
|
24
|
+
const pkg = require("../package.json");
|
|
25
|
+
const version = pkg.version;
|
|
23
26
|
/**
|
|
24
27
|
* Main CLI command definition
|
|
25
28
|
*/
|
package/dist/main.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { main$1 as main, version$1 as version } from "./main-
|
|
1
|
+
import { main$1 as main, version$1 as version } from "./main-CnFffgxE.js";
|
|
2
2
|
export { main, version };
|
package/dist/main.js
CHANGED
package/dist/run.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kimesh/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8-nightly.20260126032211",
|
|
4
4
|
"description": "Kimesh Framework CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"typecheck": "tsc --noEmit"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@kimesh/kit": "
|
|
40
|
+
"@kimesh/kit": "workspace:*",
|
|
41
41
|
"citty": "^0.1.6",
|
|
42
42
|
"consola": "^3.4.2",
|
|
43
43
|
"exsolve": "^1.0.8",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"typescript": "^5.8.2"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"vite": "^
|
|
52
|
+
"vite": "^8.0.0-beta.8"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"vite": {
|