kirbyup 3.3.0 → 3.4.1
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 +1 -1
- package/bin/kirbyup.mjs +1 -1
- package/dist/client/config.d.ts +4 -4
- package/dist/client/config.js +7 -0
- package/dist/client/plugin.d.ts +7 -12
- package/dist/client/plugin.js +14 -0
- package/dist/node/cli-start.js +42 -0
- package/dist/node/cli.d.ts +1 -2
- package/dist/node/cli.js +8 -0
- package/dist/node/config.js +22 -0
- package/dist/node/errors.js +18 -0
- package/dist/node/index.d.ts +6 -5
- package/dist/node/index.js +175 -0
- package/dist/node/plugins/build-cleanup.js +21 -0
- package/dist/node/plugins/glob-import.js +35 -0
- package/dist/node/plugins/hmr.js +57 -0
- package/dist/node/plugins/utils.js +113 -0
- package/dist/node/types.d.ts +44 -0
- package/dist/node/utils.js +26 -0
- package/dist/package.js +6 -0
- package/package.json +30 -29
- package/dist/client/config.d.mts +0 -6
- package/dist/client/config.mjs +0 -5
- package/dist/client/plugin.d.mts +0 -12
- package/dist/client/plugin.mjs +0 -24
- package/dist/node/cli.d.mts +0 -2
- package/dist/node/cli.mjs +0 -58
- package/dist/node/index.d.mts +0 -7
- package/dist/node/index.mjs +0 -25
- package/dist/shared/kirbyup.BtejYnwg.mjs +0 -928
- package/dist/shared/kirbyup.DNMktHWN.d.mts +0 -43
- package/dist/shared/kirbyup.DNMktHWN.d.ts +0 -43
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { AliasOptions, InlineConfig } from 'vite';
|
|
2
|
-
|
|
3
|
-
interface BaseOptions {
|
|
4
|
-
cwd: string;
|
|
5
|
-
entry: string;
|
|
6
|
-
}
|
|
7
|
-
interface ServeOptions extends BaseOptions {
|
|
8
|
-
watch: false | string | string[];
|
|
9
|
-
port: number;
|
|
10
|
-
outDir?: string;
|
|
11
|
-
}
|
|
12
|
-
interface BuildOptions extends BaseOptions {
|
|
13
|
-
outDir: string;
|
|
14
|
-
watch: boolean | string | string[];
|
|
15
|
-
}
|
|
16
|
-
interface UserConfig {
|
|
17
|
-
/**
|
|
18
|
-
* Specifies an object or an array of objects, which defines aliases
|
|
19
|
-
* used to replace values in `import` statements.
|
|
20
|
-
* With either format, the order of the entries is important,
|
|
21
|
-
* in that the first defined rules are applied first.
|
|
22
|
-
*/
|
|
23
|
-
alias?: AliasOptions;
|
|
24
|
-
/**
|
|
25
|
-
* Extends Vite's configuration. Will be merged with kirbyup's
|
|
26
|
-
* default configuration. For example, you can define global constant replacements.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* export default defineConfig({
|
|
30
|
-
* vite: {
|
|
31
|
-
* define: {
|
|
32
|
-
* __TEST__: JSON.stringify(process.env.TEST === 'true'),
|
|
33
|
-
* },
|
|
34
|
-
* })
|
|
35
|
-
*/
|
|
36
|
-
vite?: InlineConfig;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Use `vite` instead.
|
|
39
|
-
*/
|
|
40
|
-
extendViteConfig?: InlineConfig;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type { BuildOptions as B, ServeOptions as S, UserConfig as U };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { AliasOptions, InlineConfig } from 'vite';
|
|
2
|
-
|
|
3
|
-
interface BaseOptions {
|
|
4
|
-
cwd: string;
|
|
5
|
-
entry: string;
|
|
6
|
-
}
|
|
7
|
-
interface ServeOptions extends BaseOptions {
|
|
8
|
-
watch: false | string | string[];
|
|
9
|
-
port: number;
|
|
10
|
-
outDir?: string;
|
|
11
|
-
}
|
|
12
|
-
interface BuildOptions extends BaseOptions {
|
|
13
|
-
outDir: string;
|
|
14
|
-
watch: boolean | string | string[];
|
|
15
|
-
}
|
|
16
|
-
interface UserConfig {
|
|
17
|
-
/**
|
|
18
|
-
* Specifies an object or an array of objects, which defines aliases
|
|
19
|
-
* used to replace values in `import` statements.
|
|
20
|
-
* With either format, the order of the entries is important,
|
|
21
|
-
* in that the first defined rules are applied first.
|
|
22
|
-
*/
|
|
23
|
-
alias?: AliasOptions;
|
|
24
|
-
/**
|
|
25
|
-
* Extends Vite's configuration. Will be merged with kirbyup's
|
|
26
|
-
* default configuration. For example, you can define global constant replacements.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* export default defineConfig({
|
|
30
|
-
* vite: {
|
|
31
|
-
* define: {
|
|
32
|
-
* __TEST__: JSON.stringify(process.env.TEST === 'true'),
|
|
33
|
-
* },
|
|
34
|
-
* })
|
|
35
|
-
*/
|
|
36
|
-
vite?: InlineConfig;
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Use `vite` instead.
|
|
39
|
-
*/
|
|
40
|
-
extendViteConfig?: InlineConfig;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type { BuildOptions as B, ServeOptions as S, UserConfig as U };
|