@nuxt/devtools-kit 1.6.4 → 2.0.0-beta.2
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/index.cjs +3 -3
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +3 -3
- package/dist/shared/{devtools-kit.c8a8b7e8.d.cts → devtools-kit.ozceKZpq.d.cts} +35 -3
- package/dist/shared/{devtools-kit.c8a8b7e8.d.mts → devtools-kit.ozceKZpq.d.mts} +35 -3
- package/dist/shared/{devtools-kit.c8a8b7e8.d.ts → devtools-kit.ozceKZpq.d.ts} +35 -3
- package/dist/types.d.cts +3 -2
- package/dist/types.d.mts +3 -2
- package/dist/types.d.ts +3 -2
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -28,7 +28,7 @@ function startSubprocess(execaOptions, tabOptions, nuxt = kit.useNuxt()) {
|
|
|
28
28
|
FORCE_COLOR: "true",
|
|
29
29
|
...execaOptions.env,
|
|
30
30
|
// Force disable Nuxi CLI override
|
|
31
|
-
__CLI_ARGV__:
|
|
31
|
+
__CLI_ARGV__: undefined
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
);
|
|
@@ -77,8 +77,8 @@ function startSubprocess(execaOptions, tabOptions, nuxt = kit.useNuxt()) {
|
|
|
77
77
|
}
|
|
78
78
|
function register() {
|
|
79
79
|
nuxt.callHook("devtools:terminal:register", {
|
|
80
|
-
onActionRestart: tabOptions.restartable === false ?
|
|
81
|
-
onActionTerminate: tabOptions.terminatable === false ?
|
|
80
|
+
onActionRestart: tabOptions.restartable === false ? undefined : restart,
|
|
81
|
+
onActionTerminate: tabOptions.terminatable === false ? undefined : terminate,
|
|
82
82
|
isTerminated: false,
|
|
83
83
|
...tabOptions
|
|
84
84
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as execa from 'execa';
|
|
2
2
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
3
3
|
import { BirpcGroup } from 'birpc';
|
|
4
|
-
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.ozceKZpq.cjs';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'unimport';
|
|
@@ -9,6 +9,7 @@ import 'vite-plugin-vue-inspector';
|
|
|
9
9
|
import 'vue-router';
|
|
10
10
|
import 'nitropack';
|
|
11
11
|
import 'unstorage';
|
|
12
|
+
import 'vite';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Hooks to extend a custom tab in devtools.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as execa from 'execa';
|
|
2
2
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
3
3
|
import { BirpcGroup } from 'birpc';
|
|
4
|
-
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.ozceKZpq.mjs';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'unimport';
|
|
@@ -9,6 +9,7 @@ import 'vite-plugin-vue-inspector';
|
|
|
9
9
|
import 'vue-router';
|
|
10
10
|
import 'nitropack';
|
|
11
11
|
import 'unstorage';
|
|
12
|
+
import 'vite';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Hooks to extend a custom tab in devtools.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as execa from 'execa';
|
|
2
2
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
3
3
|
import { BirpcGroup } from 'birpc';
|
|
4
|
-
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.
|
|
4
|
+
import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.ozceKZpq.js';
|
|
5
5
|
import 'vue';
|
|
6
6
|
import 'nuxt/schema';
|
|
7
7
|
import 'unimport';
|
|
@@ -9,6 +9,7 @@ import 'vite-plugin-vue-inspector';
|
|
|
9
9
|
import 'vue-router';
|
|
10
10
|
import 'nitropack';
|
|
11
11
|
import 'unstorage';
|
|
12
|
+
import 'vite';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Hooks to extend a custom tab in devtools.
|
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ function startSubprocess(execaOptions, tabOptions, nuxt = useNuxt()) {
|
|
|
26
26
|
FORCE_COLOR: "true",
|
|
27
27
|
...execaOptions.env,
|
|
28
28
|
// Force disable Nuxi CLI override
|
|
29
|
-
__CLI_ARGV__:
|
|
29
|
+
__CLI_ARGV__: undefined
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
);
|
|
@@ -75,8 +75,8 @@ function startSubprocess(execaOptions, tabOptions, nuxt = useNuxt()) {
|
|
|
75
75
|
}
|
|
76
76
|
function register() {
|
|
77
77
|
nuxt.callHook("devtools:terminal:register", {
|
|
78
|
-
onActionRestart: tabOptions.restartable === false ?
|
|
79
|
-
onActionTerminate: tabOptions.terminatable === false ?
|
|
78
|
+
onActionRestart: tabOptions.restartable === false ? undefined : restart,
|
|
79
|
+
onActionTerminate: tabOptions.terminatable === false ? undefined : terminate,
|
|
80
80
|
isTerminated: false,
|
|
81
81
|
...tabOptions
|
|
82
82
|
});
|
|
@@ -4,12 +4,13 @@ import { Component, NuxtOptions, NuxtPage, NuxtLayout, NuxtApp, Nuxt } from 'nux
|
|
|
4
4
|
import { Import, UnimportMeta } from 'unimport';
|
|
5
5
|
import { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector';
|
|
6
6
|
import { RouteRecordNormalized } from 'vue-router';
|
|
7
|
-
import { StorageMounts } from 'nitropack';
|
|
7
|
+
import { StorageMounts, Nitro } from 'nitropack';
|
|
8
8
|
import { StorageValue } from 'unstorage';
|
|
9
|
+
import { ResolvedConfig } from 'vite';
|
|
9
10
|
import { NuxtAnalyzeMeta } from '@nuxt/schema';
|
|
10
11
|
import { Options } from 'execa';
|
|
11
12
|
|
|
12
|
-
type TabCategory = 'pinned' | 'app' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
|
|
13
|
+
type TabCategory = 'pinned' | 'app' | 'vue-devtools' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
|
|
13
14
|
|
|
14
15
|
interface ModuleCustomTab {
|
|
15
16
|
/**
|
|
@@ -237,6 +238,7 @@ interface InstalledModuleInfo {
|
|
|
237
238
|
isUninstallable: boolean;
|
|
238
239
|
info?: ModuleStaticInfo;
|
|
239
240
|
entryPath?: string;
|
|
241
|
+
timings?: Record<string, number | undefined>;
|
|
240
242
|
meta?: {
|
|
241
243
|
name?: string;
|
|
242
244
|
};
|
|
@@ -330,7 +332,14 @@ interface ComponentWithRelationships {
|
|
|
330
332
|
dependencies?: string[];
|
|
331
333
|
dependents?: string[];
|
|
332
334
|
}
|
|
335
|
+
interface CodeServerOptions {
|
|
336
|
+
codeBinary: string;
|
|
337
|
+
launchArg: string;
|
|
338
|
+
licenseTermsArg: string;
|
|
339
|
+
connectionTokenArg: string;
|
|
340
|
+
}
|
|
333
341
|
|
|
342
|
+
type CodeServerType = 'ms-code-cli' | 'ms-code-server' | 'coder-code-server';
|
|
334
343
|
interface ModuleOptions {
|
|
335
344
|
/**
|
|
336
345
|
* Enable DevTools
|
|
@@ -465,6 +474,19 @@ interface VSCodeIntegrationOptions {
|
|
|
465
474
|
* Options for VS Code tunnel
|
|
466
475
|
*/
|
|
467
476
|
tunnel?: VSCodeTunnelOptions;
|
|
477
|
+
/**
|
|
478
|
+
* Determines which binary and arguments to use for VS Code.
|
|
479
|
+
*
|
|
480
|
+
* By default, uses the MS Code Server (ms-code-server).
|
|
481
|
+
* Can alternatively use the open source Coder code-server (coder-code-server),
|
|
482
|
+
* or the MS VS Code CLI (ms-code-cli)
|
|
483
|
+
* @default 'ms-code-server'
|
|
484
|
+
*/
|
|
485
|
+
codeServer?: CodeServerType;
|
|
486
|
+
/**
|
|
487
|
+
* Host address to listen on. Unspecified by default.
|
|
488
|
+
*/
|
|
489
|
+
host?: string;
|
|
468
490
|
}
|
|
469
491
|
interface VSCodeTunnelOptions {
|
|
470
492
|
/**
|
|
@@ -477,6 +499,7 @@ interface VSCodeTunnelOptions {
|
|
|
477
499
|
interface NuxtDevToolsOptions {
|
|
478
500
|
behavior: {
|
|
479
501
|
telemetry: boolean | null;
|
|
502
|
+
openInEditor: string | undefined;
|
|
480
503
|
};
|
|
481
504
|
ui: {
|
|
482
505
|
componentsGraphShowGlobalComponents: boolean;
|
|
@@ -578,6 +601,7 @@ type GetWizardArgs<T extends WizardActions> = WizardFunctions[T] extends (nuxt:
|
|
|
578
601
|
|
|
579
602
|
interface ServerFunctions {
|
|
580
603
|
getServerConfig: () => NuxtOptions;
|
|
604
|
+
getServerData: (token: string) => Promise<NuxtServerData>;
|
|
581
605
|
getServerRuntimeConfig: () => Record<string, any>;
|
|
582
606
|
getModuleOptions: () => ModuleOptions;
|
|
583
607
|
getComponents: () => Component[];
|
|
@@ -640,6 +664,14 @@ interface ClientFunctions {
|
|
|
640
664
|
code?: number;
|
|
641
665
|
}) => void;
|
|
642
666
|
}
|
|
667
|
+
interface NuxtServerData {
|
|
668
|
+
nuxt: NuxtOptions;
|
|
669
|
+
nitro?: Nitro['options'];
|
|
670
|
+
vite: {
|
|
671
|
+
server?: ResolvedConfig;
|
|
672
|
+
client?: ResolvedConfig;
|
|
673
|
+
};
|
|
674
|
+
}
|
|
643
675
|
type ClientUpdateEvent = keyof ServerFunctions;
|
|
644
676
|
|
|
645
677
|
/**
|
|
@@ -738,4 +770,4 @@ declare module '@nuxt/schema' {
|
|
|
738
770
|
}
|
|
739
771
|
}
|
|
740
772
|
|
|
741
|
-
export type {
|
|
773
|
+
export type { CodeServerType as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStaticInfo as D, ModuleCompatibility as E, ModuleStats as F, CompatibilityStatus as G, HookInfo as H, ImageMeta as I, ModuleType as J, MaintainerInfo as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, GitHubContributor as O, PluginMetric as P, AssetType as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, AssetInfo as U, VueInspectorData as V, AssetEntry as W, CodeSnippet as X, ComponentRelationship as Y, ComponentWithRelationships as Z, CodeServerOptions as _, VueInspectorClient as a, ModuleOptions as a0, ModuleGlobalOptions as a1, VSCodeIntegrationOptions as a2, VSCodeTunnelOptions as a3, NuxtDevToolsOptions as a4, NuxtServerData as a5, ClientUpdateEvent as a6, NuxtDevtoolsServerContext as a7, InstallModuleReturn as a8, TerminalBase as a9, TerminalAction as aa, TerminalInfo as ab, WizardFunctions as ac, WizardActions as ad, GetWizardArgs as ae, ServerFunctions as b, AnalyzeBuildsInfo as c, TabCategory as d, ModuleLaunchView as e, ModuleIframeView as f, ModuleVNodeView as g, ModuleLaunchAction as h, ModuleView as i, ModuleIframeTabLazyOptions as j, ModuleBuiltinTab as k, ModuleTabInfo as l, CategorizedTabs as m, PackageUpdateInfo as n, PackageManagerName as o, NpmCommandType as p, NpmCommandOptions as q, AutoImportsWithMetadata as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, ServerTaskInfo as w, ScannedNitroTasks as x, PluginInfoWithMetic as y, InstalledModuleInfo as z };
|
|
@@ -4,12 +4,13 @@ import { Component, NuxtOptions, NuxtPage, NuxtLayout, NuxtApp, Nuxt } from 'nux
|
|
|
4
4
|
import { Import, UnimportMeta } from 'unimport';
|
|
5
5
|
import { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector';
|
|
6
6
|
import { RouteRecordNormalized } from 'vue-router';
|
|
7
|
-
import { StorageMounts } from 'nitropack';
|
|
7
|
+
import { StorageMounts, Nitro } from 'nitropack';
|
|
8
8
|
import { StorageValue } from 'unstorage';
|
|
9
|
+
import { ResolvedConfig } from 'vite';
|
|
9
10
|
import { NuxtAnalyzeMeta } from '@nuxt/schema';
|
|
10
11
|
import { Options } from 'execa';
|
|
11
12
|
|
|
12
|
-
type TabCategory = 'pinned' | 'app' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
|
|
13
|
+
type TabCategory = 'pinned' | 'app' | 'vue-devtools' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
|
|
13
14
|
|
|
14
15
|
interface ModuleCustomTab {
|
|
15
16
|
/**
|
|
@@ -237,6 +238,7 @@ interface InstalledModuleInfo {
|
|
|
237
238
|
isUninstallable: boolean;
|
|
238
239
|
info?: ModuleStaticInfo;
|
|
239
240
|
entryPath?: string;
|
|
241
|
+
timings?: Record<string, number | undefined>;
|
|
240
242
|
meta?: {
|
|
241
243
|
name?: string;
|
|
242
244
|
};
|
|
@@ -330,7 +332,14 @@ interface ComponentWithRelationships {
|
|
|
330
332
|
dependencies?: string[];
|
|
331
333
|
dependents?: string[];
|
|
332
334
|
}
|
|
335
|
+
interface CodeServerOptions {
|
|
336
|
+
codeBinary: string;
|
|
337
|
+
launchArg: string;
|
|
338
|
+
licenseTermsArg: string;
|
|
339
|
+
connectionTokenArg: string;
|
|
340
|
+
}
|
|
333
341
|
|
|
342
|
+
type CodeServerType = 'ms-code-cli' | 'ms-code-server' | 'coder-code-server';
|
|
334
343
|
interface ModuleOptions {
|
|
335
344
|
/**
|
|
336
345
|
* Enable DevTools
|
|
@@ -465,6 +474,19 @@ interface VSCodeIntegrationOptions {
|
|
|
465
474
|
* Options for VS Code tunnel
|
|
466
475
|
*/
|
|
467
476
|
tunnel?: VSCodeTunnelOptions;
|
|
477
|
+
/**
|
|
478
|
+
* Determines which binary and arguments to use for VS Code.
|
|
479
|
+
*
|
|
480
|
+
* By default, uses the MS Code Server (ms-code-server).
|
|
481
|
+
* Can alternatively use the open source Coder code-server (coder-code-server),
|
|
482
|
+
* or the MS VS Code CLI (ms-code-cli)
|
|
483
|
+
* @default 'ms-code-server'
|
|
484
|
+
*/
|
|
485
|
+
codeServer?: CodeServerType;
|
|
486
|
+
/**
|
|
487
|
+
* Host address to listen on. Unspecified by default.
|
|
488
|
+
*/
|
|
489
|
+
host?: string;
|
|
468
490
|
}
|
|
469
491
|
interface VSCodeTunnelOptions {
|
|
470
492
|
/**
|
|
@@ -477,6 +499,7 @@ interface VSCodeTunnelOptions {
|
|
|
477
499
|
interface NuxtDevToolsOptions {
|
|
478
500
|
behavior: {
|
|
479
501
|
telemetry: boolean | null;
|
|
502
|
+
openInEditor: string | undefined;
|
|
480
503
|
};
|
|
481
504
|
ui: {
|
|
482
505
|
componentsGraphShowGlobalComponents: boolean;
|
|
@@ -578,6 +601,7 @@ type GetWizardArgs<T extends WizardActions> = WizardFunctions[T] extends (nuxt:
|
|
|
578
601
|
|
|
579
602
|
interface ServerFunctions {
|
|
580
603
|
getServerConfig: () => NuxtOptions;
|
|
604
|
+
getServerData: (token: string) => Promise<NuxtServerData>;
|
|
581
605
|
getServerRuntimeConfig: () => Record<string, any>;
|
|
582
606
|
getModuleOptions: () => ModuleOptions;
|
|
583
607
|
getComponents: () => Component[];
|
|
@@ -640,6 +664,14 @@ interface ClientFunctions {
|
|
|
640
664
|
code?: number;
|
|
641
665
|
}) => void;
|
|
642
666
|
}
|
|
667
|
+
interface NuxtServerData {
|
|
668
|
+
nuxt: NuxtOptions;
|
|
669
|
+
nitro?: Nitro['options'];
|
|
670
|
+
vite: {
|
|
671
|
+
server?: ResolvedConfig;
|
|
672
|
+
client?: ResolvedConfig;
|
|
673
|
+
};
|
|
674
|
+
}
|
|
643
675
|
type ClientUpdateEvent = keyof ServerFunctions;
|
|
644
676
|
|
|
645
677
|
/**
|
|
@@ -738,4 +770,4 @@ declare module '@nuxt/schema' {
|
|
|
738
770
|
}
|
|
739
771
|
}
|
|
740
772
|
|
|
741
|
-
export type {
|
|
773
|
+
export type { CodeServerType as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStaticInfo as D, ModuleCompatibility as E, ModuleStats as F, CompatibilityStatus as G, HookInfo as H, ImageMeta as I, ModuleType as J, MaintainerInfo as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, GitHubContributor as O, PluginMetric as P, AssetType as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, AssetInfo as U, VueInspectorData as V, AssetEntry as W, CodeSnippet as X, ComponentRelationship as Y, ComponentWithRelationships as Z, CodeServerOptions as _, VueInspectorClient as a, ModuleOptions as a0, ModuleGlobalOptions as a1, VSCodeIntegrationOptions as a2, VSCodeTunnelOptions as a3, NuxtDevToolsOptions as a4, NuxtServerData as a5, ClientUpdateEvent as a6, NuxtDevtoolsServerContext as a7, InstallModuleReturn as a8, TerminalBase as a9, TerminalAction as aa, TerminalInfo as ab, WizardFunctions as ac, WizardActions as ad, GetWizardArgs as ae, ServerFunctions as b, AnalyzeBuildsInfo as c, TabCategory as d, ModuleLaunchView as e, ModuleIframeView as f, ModuleVNodeView as g, ModuleLaunchAction as h, ModuleView as i, ModuleIframeTabLazyOptions as j, ModuleBuiltinTab as k, ModuleTabInfo as l, CategorizedTabs as m, PackageUpdateInfo as n, PackageManagerName as o, NpmCommandType as p, NpmCommandOptions as q, AutoImportsWithMetadata as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, ServerTaskInfo as w, ScannedNitroTasks as x, PluginInfoWithMetic as y, InstalledModuleInfo as z };
|
|
@@ -4,12 +4,13 @@ import { Component, NuxtOptions, NuxtPage, NuxtLayout, NuxtApp, Nuxt } from 'nux
|
|
|
4
4
|
import { Import, UnimportMeta } from 'unimport';
|
|
5
5
|
import { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector';
|
|
6
6
|
import { RouteRecordNormalized } from 'vue-router';
|
|
7
|
-
import { StorageMounts } from 'nitropack';
|
|
7
|
+
import { StorageMounts, Nitro } from 'nitropack';
|
|
8
8
|
import { StorageValue } from 'unstorage';
|
|
9
|
+
import { ResolvedConfig } from 'vite';
|
|
9
10
|
import { NuxtAnalyzeMeta } from '@nuxt/schema';
|
|
10
11
|
import { Options } from 'execa';
|
|
11
12
|
|
|
12
|
-
type TabCategory = 'pinned' | 'app' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
|
|
13
|
+
type TabCategory = 'pinned' | 'app' | 'vue-devtools' | 'analyze' | 'server' | 'modules' | 'documentation' | 'advanced';
|
|
13
14
|
|
|
14
15
|
interface ModuleCustomTab {
|
|
15
16
|
/**
|
|
@@ -237,6 +238,7 @@ interface InstalledModuleInfo {
|
|
|
237
238
|
isUninstallable: boolean;
|
|
238
239
|
info?: ModuleStaticInfo;
|
|
239
240
|
entryPath?: string;
|
|
241
|
+
timings?: Record<string, number | undefined>;
|
|
240
242
|
meta?: {
|
|
241
243
|
name?: string;
|
|
242
244
|
};
|
|
@@ -330,7 +332,14 @@ interface ComponentWithRelationships {
|
|
|
330
332
|
dependencies?: string[];
|
|
331
333
|
dependents?: string[];
|
|
332
334
|
}
|
|
335
|
+
interface CodeServerOptions {
|
|
336
|
+
codeBinary: string;
|
|
337
|
+
launchArg: string;
|
|
338
|
+
licenseTermsArg: string;
|
|
339
|
+
connectionTokenArg: string;
|
|
340
|
+
}
|
|
333
341
|
|
|
342
|
+
type CodeServerType = 'ms-code-cli' | 'ms-code-server' | 'coder-code-server';
|
|
334
343
|
interface ModuleOptions {
|
|
335
344
|
/**
|
|
336
345
|
* Enable DevTools
|
|
@@ -465,6 +474,19 @@ interface VSCodeIntegrationOptions {
|
|
|
465
474
|
* Options for VS Code tunnel
|
|
466
475
|
*/
|
|
467
476
|
tunnel?: VSCodeTunnelOptions;
|
|
477
|
+
/**
|
|
478
|
+
* Determines which binary and arguments to use for VS Code.
|
|
479
|
+
*
|
|
480
|
+
* By default, uses the MS Code Server (ms-code-server).
|
|
481
|
+
* Can alternatively use the open source Coder code-server (coder-code-server),
|
|
482
|
+
* or the MS VS Code CLI (ms-code-cli)
|
|
483
|
+
* @default 'ms-code-server'
|
|
484
|
+
*/
|
|
485
|
+
codeServer?: CodeServerType;
|
|
486
|
+
/**
|
|
487
|
+
* Host address to listen on. Unspecified by default.
|
|
488
|
+
*/
|
|
489
|
+
host?: string;
|
|
468
490
|
}
|
|
469
491
|
interface VSCodeTunnelOptions {
|
|
470
492
|
/**
|
|
@@ -477,6 +499,7 @@ interface VSCodeTunnelOptions {
|
|
|
477
499
|
interface NuxtDevToolsOptions {
|
|
478
500
|
behavior: {
|
|
479
501
|
telemetry: boolean | null;
|
|
502
|
+
openInEditor: string | undefined;
|
|
480
503
|
};
|
|
481
504
|
ui: {
|
|
482
505
|
componentsGraphShowGlobalComponents: boolean;
|
|
@@ -578,6 +601,7 @@ type GetWizardArgs<T extends WizardActions> = WizardFunctions[T] extends (nuxt:
|
|
|
578
601
|
|
|
579
602
|
interface ServerFunctions {
|
|
580
603
|
getServerConfig: () => NuxtOptions;
|
|
604
|
+
getServerData: (token: string) => Promise<NuxtServerData>;
|
|
581
605
|
getServerRuntimeConfig: () => Record<string, any>;
|
|
582
606
|
getModuleOptions: () => ModuleOptions;
|
|
583
607
|
getComponents: () => Component[];
|
|
@@ -640,6 +664,14 @@ interface ClientFunctions {
|
|
|
640
664
|
code?: number;
|
|
641
665
|
}) => void;
|
|
642
666
|
}
|
|
667
|
+
interface NuxtServerData {
|
|
668
|
+
nuxt: NuxtOptions;
|
|
669
|
+
nitro?: Nitro['options'];
|
|
670
|
+
vite: {
|
|
671
|
+
server?: ResolvedConfig;
|
|
672
|
+
client?: ResolvedConfig;
|
|
673
|
+
};
|
|
674
|
+
}
|
|
643
675
|
type ClientUpdateEvent = keyof ServerFunctions;
|
|
644
676
|
|
|
645
677
|
/**
|
|
@@ -738,4 +770,4 @@ declare module '@nuxt/schema' {
|
|
|
738
770
|
}
|
|
739
771
|
}
|
|
740
772
|
|
|
741
|
-
export type {
|
|
773
|
+
export type { CodeServerType as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStaticInfo as D, ModuleCompatibility as E, ModuleStats as F, CompatibilityStatus as G, HookInfo as H, ImageMeta as I, ModuleType as J, MaintainerInfo as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, GitHubContributor as O, PluginMetric as P, AssetType as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, AssetInfo as U, VueInspectorData as V, AssetEntry as W, CodeSnippet as X, ComponentRelationship as Y, ComponentWithRelationships as Z, CodeServerOptions as _, VueInspectorClient as a, ModuleOptions as a0, ModuleGlobalOptions as a1, VSCodeIntegrationOptions as a2, VSCodeTunnelOptions as a3, NuxtDevToolsOptions as a4, NuxtServerData as a5, ClientUpdateEvent as a6, NuxtDevtoolsServerContext as a7, InstallModuleReturn as a8, TerminalBase as a9, TerminalAction as aa, TerminalInfo as ab, WizardFunctions as ac, WizardActions as ad, GetWizardArgs as ae, ServerFunctions as b, AnalyzeBuildsInfo as c, TabCategory as d, ModuleLaunchView as e, ModuleIframeView as f, ModuleVNodeView as g, ModuleLaunchAction as h, ModuleView as i, ModuleIframeTabLazyOptions as j, ModuleBuiltinTab as k, ModuleTabInfo as l, CategorizedTabs as m, PackageUpdateInfo as n, PackageManagerName as o, NpmCommandType as p, NpmCommandOptions as q, AutoImportsWithMetadata as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, ServerTaskInfo as w, ScannedNitroTasks as x, PluginInfoWithMetic as y, InstalledModuleInfo as z };
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.
|
|
2
|
-
export { A as AnalyzeBuildMeta, c as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, r as AutoImportsWithMetadata, B as BasicModuleInfo, m as CategorizedTabs,
|
|
1
|
+
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.ozceKZpq.cjs';
|
|
2
|
+
export { A as AnalyzeBuildMeta, c as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, r as AutoImportsWithMetadata, B as BasicModuleInfo, m as CategorizedTabs, a6 as ClientUpdateEvent, _ as CodeServerOptions, $ as CodeServerType, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, ae as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a8 as InstallModuleReturn, z as InstalledModuleInfo, K as MaintainerInfo, k as ModuleBuiltinTab, E as ModuleCompatibility, M as ModuleCustomTab, a1 as ModuleGlobalOptions, j as ModuleIframeTabLazyOptions, f as ModuleIframeView, h as ModuleLaunchAction, e as ModuleLaunchView, a0 as ModuleOptions, D as ModuleStaticInfo, F as ModuleStats, l as ModuleTabInfo, J as ModuleType, g as ModuleVNodeView, i as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a4 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a7 as NuxtDevtoolsServerContext, a5 as NuxtServerData, o as PackageManagerName, n as PackageUpdateInfo, v as Payload, y as PluginInfoWithMetic, R as RouteInfo, x as ScannedNitroTasks, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, d as TabCategory, aa as TerminalAction, a9 as TerminalBase, ab as TerminalInfo, T as TerminalState, a2 as VSCodeIntegrationOptions, a3 as VSCodeTunnelOptions, ad as WizardActions, ac as WizardFunctions } from './shared/devtools-kit.ozceKZpq.cjs';
|
|
3
3
|
import { BirpcReturn } from 'birpc';
|
|
4
4
|
import { Hookable } from 'hookable';
|
|
5
5
|
import { NuxtApp } from 'nuxt/app';
|
|
@@ -13,6 +13,7 @@ import 'vite-plugin-vue-inspector';
|
|
|
13
13
|
import 'vue-router';
|
|
14
14
|
import 'nitropack';
|
|
15
15
|
import 'unstorage';
|
|
16
|
+
import 'vite';
|
|
16
17
|
import '@nuxt/schema';
|
|
17
18
|
import 'execa';
|
|
18
19
|
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.
|
|
2
|
-
export { A as AnalyzeBuildMeta, c as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, r as AutoImportsWithMetadata, B as BasicModuleInfo, m as CategorizedTabs,
|
|
1
|
+
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.ozceKZpq.mjs';
|
|
2
|
+
export { A as AnalyzeBuildMeta, c as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, r as AutoImportsWithMetadata, B as BasicModuleInfo, m as CategorizedTabs, a6 as ClientUpdateEvent, _ as CodeServerOptions, $ as CodeServerType, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, ae as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a8 as InstallModuleReturn, z as InstalledModuleInfo, K as MaintainerInfo, k as ModuleBuiltinTab, E as ModuleCompatibility, M as ModuleCustomTab, a1 as ModuleGlobalOptions, j as ModuleIframeTabLazyOptions, f as ModuleIframeView, h as ModuleLaunchAction, e as ModuleLaunchView, a0 as ModuleOptions, D as ModuleStaticInfo, F as ModuleStats, l as ModuleTabInfo, J as ModuleType, g as ModuleVNodeView, i as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a4 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a7 as NuxtDevtoolsServerContext, a5 as NuxtServerData, o as PackageManagerName, n as PackageUpdateInfo, v as Payload, y as PluginInfoWithMetic, R as RouteInfo, x as ScannedNitroTasks, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, d as TabCategory, aa as TerminalAction, a9 as TerminalBase, ab as TerminalInfo, T as TerminalState, a2 as VSCodeIntegrationOptions, a3 as VSCodeTunnelOptions, ad as WizardActions, ac as WizardFunctions } from './shared/devtools-kit.ozceKZpq.mjs';
|
|
3
3
|
import { BirpcReturn } from 'birpc';
|
|
4
4
|
import { Hookable } from 'hookable';
|
|
5
5
|
import { NuxtApp } from 'nuxt/app';
|
|
@@ -13,6 +13,7 @@ import 'vite-plugin-vue-inspector';
|
|
|
13
13
|
import 'vue-router';
|
|
14
14
|
import 'nitropack';
|
|
15
15
|
import 'unstorage';
|
|
16
|
+
import 'vite';
|
|
16
17
|
import '@nuxt/schema';
|
|
17
18
|
import 'execa';
|
|
18
19
|
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.
|
|
2
|
-
export { A as AnalyzeBuildMeta, c as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, r as AutoImportsWithMetadata, B as BasicModuleInfo, m as CategorizedTabs,
|
|
1
|
+
import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.ozceKZpq.js';
|
|
2
|
+
export { A as AnalyzeBuildMeta, c as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, r as AutoImportsWithMetadata, B as BasicModuleInfo, m as CategorizedTabs, a6 as ClientUpdateEvent, _ as CodeServerOptions, $ as CodeServerType, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, ae as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a8 as InstallModuleReturn, z as InstalledModuleInfo, K as MaintainerInfo, k as ModuleBuiltinTab, E as ModuleCompatibility, M as ModuleCustomTab, a1 as ModuleGlobalOptions, j as ModuleIframeTabLazyOptions, f as ModuleIframeView, h as ModuleLaunchAction, e as ModuleLaunchView, a0 as ModuleOptions, D as ModuleStaticInfo, F as ModuleStats, l as ModuleTabInfo, J as ModuleType, g as ModuleVNodeView, i as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a4 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a7 as NuxtDevtoolsServerContext, a5 as NuxtServerData, o as PackageManagerName, n as PackageUpdateInfo, v as Payload, y as PluginInfoWithMetic, R as RouteInfo, x as ScannedNitroTasks, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, d as TabCategory, aa as TerminalAction, a9 as TerminalBase, ab as TerminalInfo, T as TerminalState, a2 as VSCodeIntegrationOptions, a3 as VSCodeTunnelOptions, ad as WizardActions, ac as WizardFunctions } from './shared/devtools-kit.ozceKZpq.js';
|
|
3
3
|
import { BirpcReturn } from 'birpc';
|
|
4
4
|
import { Hookable } from 'hookable';
|
|
5
5
|
import { NuxtApp } from 'nuxt/app';
|
|
@@ -13,6 +13,7 @@ import 'vite-plugin-vue-inspector';
|
|
|
13
13
|
import 'vue-router';
|
|
14
14
|
import 'nitropack';
|
|
15
15
|
import 'unstorage';
|
|
16
|
+
import 'vite';
|
|
16
17
|
import '@nuxt/schema';
|
|
17
18
|
import 'execa';
|
|
18
19
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0-beta.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://devtools.nuxt.com/module/utils-kit",
|
|
7
7
|
"repository": {
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"vite": "
|
|
41
|
+
"vite": ">=6.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@nuxt/kit": "^3.
|
|
45
|
-
"@nuxt/schema": "^3.
|
|
44
|
+
"@nuxt/kit": "^3.15.1",
|
|
45
|
+
"@nuxt/schema": "^3.15.1",
|
|
46
46
|
"execa": "^7.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"birpc": "^0.
|
|
50
|
-
"error-stack-parser-es": "^0.
|
|
49
|
+
"birpc": "^2.0.19",
|
|
50
|
+
"error-stack-parser-es": "^1.0.5",
|
|
51
51
|
"hookable": "^5.5.3",
|
|
52
|
-
"unbuild": "^
|
|
53
|
-
"unimport": "^3.14.
|
|
54
|
-
"vite-plugin-vue-inspector": "5.1
|
|
52
|
+
"unbuild": "^3.3.1",
|
|
53
|
+
"unimport": "^3.14.6",
|
|
54
|
+
"vite-plugin-vue-inspector": "^5.3.1",
|
|
55
55
|
"vue-router": "^4.5.0"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|