@vitejs/devtools 0.0.0-alpha.1 → 0.0.0-alpha.3
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/{bin.mjs → bin.js} +1 -1
- package/dist/cli.js +99 -0
- package/dist/client/inject.d.ts +4 -0
- package/dist/client/inject.js +33 -0
- package/dist/client/standalone/assets/index-C0WqLnSL.js +7 -0
- package/dist/client/standalone/assets/index-DLsPMQDX.css +1 -0
- package/dist/client/standalone/index.html +14 -0
- package/dist/client/webcomponents.d.ts +45 -0
- package/dist/client/webcomponents.js +807 -0
- package/dist/core-uTAXYiA1.js +6650 -0
- package/dist/dirs-B7dOX6eI.js +9 -0
- package/dist/dirs.d.ts +5 -0
- package/dist/dirs.js +3 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +4 -0
- package/dist/plugins-DDjui9Ga.js +1314 -0
- package/package.json +48 -57
- package/dist/cli-B_fm1Ing.mjs +0 -1039
- package/dist/cli.d.mts +0 -1
- package/dist/cli.mjs +0 -3
- package/dist/dirs-6LDFDMFM.mjs +0 -7
- package/dist/dirs.d.mts +0 -4
- package/dist/dirs.mjs +0 -3
- package/dist/functions-BdbZxtmk.mjs +0 -3
- package/dist/functions-d6vvbndK.mjs +0 -234
- package/dist/index.d.mts +0 -13
- package/dist/index.mjs +0 -7
- package/dist/nitro.json +0 -15
- package/dist/node/cli.d.mts +0 -1
- package/dist/node/cli.mjs +0 -3
- package/dist/public/200.html +0 -16
- package/dist/public/404.html +0 -16
- package/dist/public/_nuxt/B4lqwDon.js +0 -1
- package/dist/public/_nuxt/BMB3EEfo.js +0 -1
- package/dist/public/_nuxt/BYYDnj5Q.js +0 -1
- package/dist/public/_nuxt/BeSFnMzD.js +0 -1
- package/dist/public/_nuxt/BfzgVO01.js +0 -1
- package/dist/public/_nuxt/BpyJ-U40.js +0 -1
- package/dist/public/_nuxt/BxkFQq1F.js +0 -1
- package/dist/public/_nuxt/C1DPtPHu.js +0 -1
- package/dist/public/_nuxt/C8oXVTvZ.js +0 -1
- package/dist/public/_nuxt/CWPvh8od.js +0 -1
- package/dist/public/_nuxt/CiwsH4Q6.js +0 -33
- package/dist/public/_nuxt/CsnZqsGp.js +0 -16
- package/dist/public/_nuxt/CzEHI6hC.js +0 -1
- package/dist/public/_nuxt/D-iXojuv.js +0 -1
- package/dist/public/_nuxt/DHpfOFMA.js +0 -1
- package/dist/public/_nuxt/DsbJux3u.js +0 -1
- package/dist/public/_nuxt/builds/latest.json +0 -1
- package/dist/public/_nuxt/builds/meta/3597016d-955b-44d8-83dd-f083d7311779.json +0 -1
- package/dist/public/_nuxt/diff.worker-9IK9E-UB.js +0 -10
- package/dist/public/_nuxt/entry.BHghYYEP.css +0 -1
- package/dist/public/_nuxt/error-404.7Y6KY23b.css +0 -1
- package/dist/public/_nuxt/error-500.CaUb23JJ.css +0 -1
- package/dist/public/_nuxt/graph.BGBTj9Q7.css +0 -1
- package/dist/public/dot-grid-dark.png +0 -0
- package/dist/public/dot-grid-light.png +0 -0
- package/dist/public/favicon.svg +0 -15
- package/dist/public/fonts/dmmono-612bc94f.woff2 +0 -0
- package/dist/public/fonts/dmmono-cbe07c46.woff2 +0 -0
- package/dist/public/fonts/dmsans-b28079ff.woff2 +0 -0
- package/dist/public/fonts/dmsans-b4f1d45c.woff2 +0 -0
- package/dist/public/index.html +0 -16
- package/dist/public/vite-devtools.svg +0 -17
- /package/{LICENSE.md → LICENSE} +0 -0
- /package/dist/{cli-C3YoliaZ.d.mts → cli.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
|
|
4
|
+
//#region src/dirs.ts
|
|
5
|
+
const dirDist = fileURLToPath(new URL("../dist", import.meta.url));
|
|
6
|
+
const dirClientStandalone = join(dirDist, "client/standalone");
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { dirClientStandalone, dirDist };
|
package/dist/dirs.d.ts
ADDED
package/dist/dirs.js
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DevToolsNodeContext } from "@vitejs/devtools-kit";
|
|
2
|
+
import "@vitejs/devtools-vite";
|
|
3
|
+
import { Plugin, ResolvedConfig, ViteDevServer } from "vite";
|
|
4
|
+
import * as h30 from "h3";
|
|
5
|
+
import * as birpc0 from "birpc";
|
|
6
|
+
|
|
7
|
+
//#region src/node/context.d.ts
|
|
8
|
+
declare function createDevToolsContext(viteConfig: ResolvedConfig, viteServer?: ViteDevServer): Promise<DevToolsNodeContext>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/node/plugins/index.d.ts
|
|
11
|
+
interface DevToolsOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Include the Vite builtin devtools UI.
|
|
14
|
+
*
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
builtinDevTools?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare function DevTools(options?: DevToolsOptions): Plugin[];
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/node/ws.d.ts
|
|
22
|
+
interface CreateWsServerOptions {
|
|
23
|
+
cwd: string;
|
|
24
|
+
portWebSocket?: number;
|
|
25
|
+
base?: string;
|
|
26
|
+
context: DevToolsNodeContext;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/node/server.d.ts
|
|
30
|
+
declare function createDevToolsMiddleware(options: CreateWsServerOptions): Promise<{
|
|
31
|
+
h3: h30.App;
|
|
32
|
+
middleware: h30.NodeListener;
|
|
33
|
+
rpc: birpc0.BirpcGroup<any, any>;
|
|
34
|
+
}>;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { DevTools, createDevToolsContext, createDevToolsMiddleware };
|
package/dist/index.js
ADDED