@vtj/local 0.9.30 → 0.10.0
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 +1259 -0
- package/dist/{plugin.d.ts → index.d.cts} +9 -6
- package/dist/index.d.mts +35 -0
- package/dist/index.d.ts +35 -1
- package/dist/index.mjs +1251 -1
- package/package.json +8 -8
- package/dist/controller.d.ts +0 -6
- package/dist/controller.mjs +0 -130
- package/dist/plugin.mjs +0 -321
- package/dist/repository/index.d.ts +0 -4
- package/dist/repository/index.mjs +0 -4
- package/dist/repository/json.d.ts +0 -9
- package/dist/repository/json.mjs +0 -52
- package/dist/repository/plugins.d.ts +0 -10
- package/dist/repository/plugins.mjs +0 -67
- package/dist/repository/static.d.ts +0 -17
- package/dist/repository/static.mjs +0 -93
- package/dist/repository/vue.d.ts +0 -8
- package/dist/repository/vue.mjs +0 -40
- package/dist/service.d.ts +0 -29
- package/dist/service.mjs +0 -253
- package/dist/shared.d.ts +0 -18
- package/dist/shared.mjs +0 -23
@@ -1,6 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
1
|
+
import { Plugin } from 'vite';
|
2
|
+
import { CopyPluginOption, StaticPluginOption } from '@vtj/cli';
|
3
|
+
|
4
|
+
interface DevToolsOptions {
|
4
5
|
baseURL: string;
|
5
6
|
copy: boolean;
|
6
7
|
server: boolean;
|
@@ -20,13 +21,15 @@ export interface DevToolsOptions {
|
|
20
21
|
materialDirs: string[];
|
21
22
|
hm?: string;
|
22
23
|
}
|
23
|
-
|
24
|
+
interface LinkOptions {
|
24
25
|
entry?: string;
|
25
26
|
href?: string;
|
26
27
|
serveOnly?: boolean;
|
27
28
|
}
|
28
|
-
|
29
|
+
declare function parsePresetPlugins(options: DevToolsOptions): {
|
29
30
|
copies: CopyPluginOption[];
|
30
31
|
staticDirs: StaticPluginOption[];
|
31
32
|
};
|
32
|
-
|
33
|
+
declare function createDevTools(options?: Partial<DevToolsOptions>): Plugin<any>[];
|
34
|
+
|
35
|
+
export { type DevToolsOptions, type LinkOptions, createDevTools, parsePresetPlugins };
|
package/dist/index.d.mts
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
import { Plugin } from 'vite';
|
2
|
+
import { CopyPluginOption, StaticPluginOption } from '@vtj/cli';
|
3
|
+
|
4
|
+
interface DevToolsOptions {
|
5
|
+
baseURL: string;
|
6
|
+
copy: boolean;
|
7
|
+
server: boolean;
|
8
|
+
staticBase: string;
|
9
|
+
staticDir: string;
|
10
|
+
link: boolean | string;
|
11
|
+
linkOptions: LinkOptions | null;
|
12
|
+
vtjDir: string;
|
13
|
+
packagesDir: string;
|
14
|
+
devMode: boolean;
|
15
|
+
uploader: string;
|
16
|
+
packageName: string;
|
17
|
+
nodeModulesDir: string;
|
18
|
+
presetPlugins: string[];
|
19
|
+
pluginNodeModulesDir?: string;
|
20
|
+
extensionDir: string;
|
21
|
+
materialDirs: string[];
|
22
|
+
hm?: string;
|
23
|
+
}
|
24
|
+
interface LinkOptions {
|
25
|
+
entry?: string;
|
26
|
+
href?: string;
|
27
|
+
serveOnly?: boolean;
|
28
|
+
}
|
29
|
+
declare function parsePresetPlugins(options: DevToolsOptions): {
|
30
|
+
copies: CopyPluginOption[];
|
31
|
+
staticDirs: StaticPluginOption[];
|
32
|
+
};
|
33
|
+
declare function createDevTools(options?: Partial<DevToolsOptions>): Plugin<any>[];
|
34
|
+
|
35
|
+
export { type DevToolsOptions, type LinkOptions, createDevTools, parsePresetPlugins };
|
package/dist/index.d.ts
CHANGED
@@ -1 +1,35 @@
|
|
1
|
-
|
1
|
+
import { Plugin } from 'vite';
|
2
|
+
import { CopyPluginOption, StaticPluginOption } from '@vtj/cli';
|
3
|
+
|
4
|
+
interface DevToolsOptions {
|
5
|
+
baseURL: string;
|
6
|
+
copy: boolean;
|
7
|
+
server: boolean;
|
8
|
+
staticBase: string;
|
9
|
+
staticDir: string;
|
10
|
+
link: boolean | string;
|
11
|
+
linkOptions: LinkOptions | null;
|
12
|
+
vtjDir: string;
|
13
|
+
packagesDir: string;
|
14
|
+
devMode: boolean;
|
15
|
+
uploader: string;
|
16
|
+
packageName: string;
|
17
|
+
nodeModulesDir: string;
|
18
|
+
presetPlugins: string[];
|
19
|
+
pluginNodeModulesDir?: string;
|
20
|
+
extensionDir: string;
|
21
|
+
materialDirs: string[];
|
22
|
+
hm?: string;
|
23
|
+
}
|
24
|
+
interface LinkOptions {
|
25
|
+
entry?: string;
|
26
|
+
href?: string;
|
27
|
+
serveOnly?: boolean;
|
28
|
+
}
|
29
|
+
declare function parsePresetPlugins(options: DevToolsOptions): {
|
30
|
+
copies: CopyPluginOption[];
|
31
|
+
staticDirs: StaticPluginOption[];
|
32
|
+
};
|
33
|
+
declare function createDevTools(options?: Partial<DevToolsOptions>): Plugin<any>[];
|
34
|
+
|
35
|
+
export { type DevToolsOptions, type LinkOptions, createDevTools, parsePresetPlugins };
|