@ereo/dev-inspector 0.1.6
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 +222 -0
- package/dist/devtools/CacheTab.d.ts +21 -0
- package/dist/devtools/CacheTab.d.ts.map +1 -0
- package/dist/devtools/DataPipelineTab.d.ts +24 -0
- package/dist/devtools/DataPipelineTab.d.ts.map +1 -0
- package/dist/devtools/DevToolsPanel.d.ts +27 -0
- package/dist/devtools/DevToolsPanel.d.ts.map +1 -0
- package/dist/devtools/IslandsTab.d.ts +21 -0
- package/dist/devtools/IslandsTab.d.ts.map +1 -0
- package/dist/devtools/RoutesTab.d.ts +21 -0
- package/dist/devtools/RoutesTab.d.ts.map +1 -0
- package/dist/devtools/index.d.ts +14 -0
- package/dist/devtools/index.d.ts.map +1 -0
- package/dist/devtools/plugin.d.ts +38 -0
- package/dist/devtools/plugin.d.ts.map +1 -0
- package/dist/devtools/types.d.ts +157 -0
- package/dist/devtools/types.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2538 -0
- package/dist/inspector.d.ts +37 -0
- package/dist/inspector.d.ts.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ereo/dev-inspector - Visual route inspector
|
|
3
|
+
*
|
|
4
|
+
* Provides a visual interface for exploring routes during development.
|
|
5
|
+
*/
|
|
6
|
+
import type { Plugin, Route } from '@ereo/core';
|
|
7
|
+
/** Inspector configuration */
|
|
8
|
+
export interface InspectorConfig {
|
|
9
|
+
/** Path to mount inspector (default: /__ereo) */
|
|
10
|
+
mountPath?: string;
|
|
11
|
+
/** Enable route testing */
|
|
12
|
+
enableTesting?: boolean;
|
|
13
|
+
/** Show loader data */
|
|
14
|
+
showLoaderData?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/** Route info for display */
|
|
17
|
+
export interface RouteInfo {
|
|
18
|
+
id: string;
|
|
19
|
+
path: string;
|
|
20
|
+
file: string;
|
|
21
|
+
renderMode: string;
|
|
22
|
+
islandCount: number;
|
|
23
|
+
hasLoader: boolean;
|
|
24
|
+
hasAction: boolean;
|
|
25
|
+
middlewareCount: number;
|
|
26
|
+
cacheTags?: string[];
|
|
27
|
+
authRequired?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** Generate HTML for the route inspector UI */
|
|
30
|
+
export declare function generateInspectorHTML(routes: RouteInfo[]): string;
|
|
31
|
+
/** Create route info from routes */
|
|
32
|
+
export declare function createRouteInfo(routes: Route[]): RouteInfo[];
|
|
33
|
+
/** Create the dev inspector plugin */
|
|
34
|
+
export declare function createDevInspector(config?: InspectorConfig): Plugin;
|
|
35
|
+
/** Format route tree for CLI display */
|
|
36
|
+
export declare function formatRouteTree(routes: RouteInfo[]): string;
|
|
37
|
+
//# sourceMappingURL=inspector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../src/inspector.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEhD,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC9B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,uBAAuB;IACvB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,6BAA6B;AAC7B,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,+CAA+C;AAC/C,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAuKjE;AAED,oCAAoC;AACpC,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,SAAS,EAAE,CAkB5D;AAED,sCAAsC;AACtC,wBAAgB,kBAAkB,CAAC,MAAM,GAAE,eAAoB,GAAG,MAAM,CAiCvE;AAED,wCAAwC;AACxC,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAiB3D"}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ereo/dev-inspector",
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": "Ereo Team",
|
|
6
|
+
"homepage": "https://ereo.dev",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/ereojs/ereo.git",
|
|
10
|
+
"directory": "packages/dev-inspector"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/ereojs/ereo/issues"
|
|
14
|
+
},
|
|
15
|
+
"description": "Visual route inspector for EreoJS framework development",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"import": "./dist/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target bun --external @ereo/core --external @ereo/router --external @ereo/data && bun run build:types",
|
|
30
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
31
|
+
"dev": "bun build ./src/index.ts --outdir ./dist --target bun --watch",
|
|
32
|
+
"test": "bun test",
|
|
33
|
+
"typecheck": "tsc --noEmit"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@ereo/core": "workspace:*",
|
|
37
|
+
"@ereo/router": "workspace:*",
|
|
38
|
+
"@ereo/data": "workspace:*"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/bun": "^1.1.0",
|
|
42
|
+
"typescript": "^5.4.0"
|
|
43
|
+
}
|
|
44
|
+
}
|