@evjs/cli 0.2.2 → 0.2.4
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/README.md +3 -3
- package/dist/index.d.ts +5 -2
- package/dist/index.js +2 -2
- package/dist/inspect-command.js +1 -1
- package/dist/inspect.d.ts +1 -1
- package/dist/inspect.js +15 -9
- package/dist/load-config.d.ts +1 -1
- package/dist/load-config.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -39,9 +39,9 @@ Uses the default bundler adapter directly (no temp config files):
|
|
|
39
39
|
Runs the production build through `@evjs/ev` with `NODE_ENV=production`:
|
|
40
40
|
- `dist/client/` — optimized client assets with content hashes.
|
|
41
41
|
- `dist/server/main.[hash].js` — server bundle.
|
|
42
|
-
- `dist/client/manifest.json` —
|
|
43
|
-
- `dist/server/manifest.json` —
|
|
44
|
-
- `dist/build-output.json` —
|
|
42
|
+
- `dist/client/manifest.json` — lightweight client deployment metadata.
|
|
43
|
+
- `dist/server/manifest.json` — lightweight server entry and route metadata.
|
|
44
|
+
- `dist/build-output.json` — canonical deployment metadata for tooling and adapters.
|
|
45
45
|
|
|
46
46
|
### `ev inspect`
|
|
47
47
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { utoopackAdapter } from "@evjs/bundler-utoopack";
|
|
2
|
-
import { type BuildOptions, type BundlerAdapter, type
|
|
3
|
-
|
|
2
|
+
import { type BuildOptions, type BundlerAdapter, type DevOptions } from "@evjs/ev/_internal/build";
|
|
3
|
+
import type { Config } from "@evjs/ev/config";
|
|
4
|
+
export type { BuildOptions, BundlerAdapter, DevOptions, } from "@evjs/ev/_internal/build";
|
|
5
|
+
export { CONFIG_DEFAULTS, type Config, defineConfig, type EvConfig, type ResolvedConfig, type ResolvedEvConfig, resolveConfig, } from "@evjs/ev/config";
|
|
6
|
+
export type { BuildResult, BundlerCtx, ClientManifest, EvBuildResult, EvBundlerCtx, EvDocument, EvPlugin, EvPluginConfigContext, EvPluginContext, EvPluginHooks, Plugin, PluginContext, PluginHooks, ServerManifest, } from "@evjs/ev/plugin";
|
|
4
7
|
export { loadConfig } from "./load-config.js";
|
|
5
8
|
export type DefaultBundlerConfig = typeof utoopackAdapter extends BundlerAdapter<infer TBundlerCfg> ? TBundlerCfg : never;
|
|
6
9
|
export declare function dev<TBundlerCfg = DefaultBundlerConfig>(userConfig?: Config<TBundlerCfg>, options?: DevOptions<TBundlerCfg>): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { utoopackAdapter } from "@evjs/bundler-utoopack";
|
|
2
|
-
import { build as frameworkBuild, dev as frameworkDev, } from "@evjs/ev";
|
|
3
|
-
export { CONFIG_DEFAULTS, defineConfig, resolveConfig, } from "@evjs/ev";
|
|
2
|
+
import { build as frameworkBuild, dev as frameworkDev, } from "@evjs/ev/_internal/build";
|
|
3
|
+
export { CONFIG_DEFAULTS, defineConfig, resolveConfig, } from "@evjs/ev/config";
|
|
4
4
|
export { loadConfig } from "./load-config.js";
|
|
5
5
|
const defaultBundler = utoopackAdapter;
|
|
6
6
|
export async function dev(userConfig, options) {
|
package/dist/inspect-command.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inspectFrameworkBuild } from "@evjs/ev";
|
|
1
|
+
import { inspectFrameworkBuild } from "@evjs/ev/_internal/build";
|
|
2
2
|
import { formatInspectJson, formatInspectText, hasInspectErrors, } from "./inspect.js";
|
|
3
3
|
import { loadConfig } from "./load-config.js";
|
|
4
4
|
export async function runInspectCommand(options = {}) {
|
package/dist/inspect.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InspectFrameworkBuildResult } from "@evjs/ev";
|
|
1
|
+
import type { InspectFrameworkBuildResult } from "@evjs/ev/_internal/build";
|
|
2
2
|
export declare function hasInspectErrors(result: InspectFrameworkBuildResult): boolean;
|
|
3
3
|
export declare function formatInspectJson(result: InspectFrameworkBuildResult): string;
|
|
4
4
|
export declare function formatInspectText(result: InspectFrameworkBuildResult): string;
|
package/dist/inspect.js
CHANGED
|
@@ -16,7 +16,7 @@ export function formatInspectText(result) {
|
|
|
16
16
|
lines.push(` dir: ${result.routing.dir}`);
|
|
17
17
|
lines.push(` html: ${result.routing.html}`);
|
|
18
18
|
lines.push(` mount: ${result.routing.mount}`);
|
|
19
|
-
lines.push(` layout: ${
|
|
19
|
+
lines.push(` conventions.layout: ${formatLayoutConvention(result.routing.conventions?.layout)}`);
|
|
20
20
|
if (result.routing.rootModule) {
|
|
21
21
|
lines.push(` rootModule: ${result.routing.rootModule}`);
|
|
22
22
|
}
|
|
@@ -57,14 +57,13 @@ export function formatInspectText(result) {
|
|
|
57
57
|
return `${route.path} [${route.methods.join(", ")}] (${route.module})`;
|
|
58
58
|
});
|
|
59
59
|
lines.push("Runtime");
|
|
60
|
-
lines.push(`
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
60
|
+
lines.push(` output.client: ${result.output.client}`);
|
|
61
|
+
lines.push(` output.server: ${result.output.server}`);
|
|
62
|
+
lines.push(` server.basePath: ${result.runtime.server.basePath}`);
|
|
63
|
+
lines.push(` server.fn: ${result.runtime.server.fn}`);
|
|
64
|
+
lines.push(` server.ppr: ${result.runtime.server.ppr}`);
|
|
65
|
+
if (result.runtime.server.rsc) {
|
|
66
|
+
lines.push(` server.rsc: ${result.runtime.server.rsc}`);
|
|
68
67
|
}
|
|
69
68
|
if (result.runtime.transport?.baseUrl) {
|
|
70
69
|
lines.push(` transport.baseUrl: ${result.runtime.transport.baseUrl}`);
|
|
@@ -114,3 +113,10 @@ function formatDiagnostic(diagnostic) {
|
|
|
114
113
|
function formatValue(value) {
|
|
115
114
|
return typeof value === "string" ? value : JSON.stringify(value);
|
|
116
115
|
}
|
|
116
|
+
function formatLayoutConvention(value) {
|
|
117
|
+
if (value === true)
|
|
118
|
+
return "auto";
|
|
119
|
+
if (value === false || value === undefined)
|
|
120
|
+
return "disabled";
|
|
121
|
+
return formatValue(value);
|
|
122
|
+
}
|
package/dist/load-config.d.ts
CHANGED
package/dist/load-config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { loadConfigFile } from "@evjs/ev/build
|
|
3
|
+
import { loadConfigFile } from "@evjs/ev/_internal/build";
|
|
4
4
|
export const CONFIG_FILES = ["ev.config.ts", "ev.config.js", "ev.config.mjs"];
|
|
5
5
|
/**
|
|
6
6
|
* Load evjs config from the project root.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evjs/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Command-line wrapper for the evjs framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"check-types": "tsc --noEmit"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@evjs/bundler-utoopack": "0.2.
|
|
32
|
-
"@evjs/ev": "0.2.
|
|
31
|
+
"@evjs/bundler-utoopack": "0.2.4",
|
|
32
|
+
"@evjs/ev": "0.2.4",
|
|
33
33
|
"@logtape/logtape": "^2.0.4",
|
|
34
34
|
"commander": "^12.1.0"
|
|
35
35
|
},
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"@types/node": "^22.19.15",
|
|
38
38
|
"typescript": "^6.0.2"
|
|
39
39
|
},
|
|
40
|
-
"homepage": "https://github.com/
|
|
40
|
+
"homepage": "https://github.com/afx-team/evjs#readme",
|
|
41
41
|
"bugs": {
|
|
42
|
-
"url": "https://github.com/
|
|
42
|
+
"url": "https://github.com/afx-team/evjs/issues"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
45
45
|
"type": "git",
|
|
46
|
-
"url": "git+https://github.com/
|
|
46
|
+
"url": "git+https://github.com/afx-team/evjs.git"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"evjs",
|