@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 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` — browser-safe public manifest.
43
- - `dist/server/manifest.json` — derived server bundle metadata.
44
- - `dist/build-output.json` — private complete BuildOutput handoff for tooling and debugging.
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 Config, type DevOptions } from "@evjs/ev";
3
- export { type BuildOptions, type BuildResult, type BundlerAdapter, type BundlerCtx, type ClientManifest, CONFIG_DEFAULTS, type Config, type DevOptions, defineConfig, type EvBuildResult, type EvBundlerCtx, type EvConfig, type EvDocument, type EvPlugin, type EvPluginConfigContext, type EvPluginContext, type EvPluginHooks, type Plugin, type PluginContext, type PluginHooks, type ResolvedConfig, type ResolvedEvConfig, resolveConfig, type ServerManifest, } from "@evjs/ev";
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) {
@@ -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: ${formatValue(result.routing.layout ?? "auto")}`);
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(` serverEnabled: ${String(result.runtime.serverEnabled)}`);
61
- if (result.runtime.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}`);
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
+ }
@@ -1,4 +1,4 @@
1
- import type { Config, DefaultBundlerConfig } from "@evjs/ev";
1
+ import type { Config, DefaultBundlerConfig } from "@evjs/ev/config";
2
2
  export declare const CONFIG_FILES: string[];
3
3
  /**
4
4
  * Load evjs config from the project root.
@@ -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-tools";
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.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.2",
32
- "@evjs/ev": "0.2.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/evaijs/evjs#readme",
40
+ "homepage": "https://github.com/afx-team/evjs#readme",
41
41
  "bugs": {
42
- "url": "https://github.com/evaijs/evjs/issues"
42
+ "url": "https://github.com/afx-team/evjs/issues"
43
43
  },
44
44
  "repository": {
45
45
  "type": "git",
46
- "url": "git+https://github.com/evaijs/evjs.git"
46
+ "url": "git+https://github.com/afx-team/evjs.git"
47
47
  },
48
48
  "keywords": [
49
49
  "evjs",