vite-plugin-deploy-ftp 1.2.1 → 2.0.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/README.md +1 -0
- package/dist/index.d.ts +10 -21
- package/dist/index.js +516 -256
- package/package.json +8 -6
- package/dist/index.d.mts +0 -41
- package/dist/index.mjs +0 -435
- package/playground/__dist__/axios.min.js +0 -2
- package/playground/__dist__/chunks/gsap-CI3CqjtC.js +0 -23
- package/playground/__dist__/html2canvas@1.0.0-rc.4.js +0 -7007
- package/playground/__dist__/index.html +0 -14
- package/playground/__dist__/jweixin-1.6.2.js +0 -1
- package/playground/__dist__/vue.global.prod.js +0 -6
- package/playground/__dist__/wallpaper/Background - Build Expo Hall.jpg +0 -0
- package/playground/__dist__/wallpaper/Background - Build Keynote.jpg +0 -0
- package/playground/__dist__/wallpaper/Background - Build Stage.jpg +0 -0
- package/playground/__dist__/wallpaper/Background - Maddy Leger's Kitchen.jpg +0 -0
- package/playground/__dist__/wallpaper/Build 2020 - 8 bit.jpg +0 -0
- package/playground/__dist__/wallpaper/Build 2020 - Cityscape.jpg +0 -0
- package/playground/__dist__/wallpaper/Build 2020 - Triangles.jpg +0 -0
- package/playground/__dist__/wallpaper/Build 2020 - Truck.jpg +0 -0
- package/playground/__dist__/wallpaper/Build 2020 Attendee.jpg +0 -0
- package/playground/__dist__/wallpaper/Fluent Ball - Build 2020.jpg +0 -0
- package/playground/__dist__/wallpaper/Fluent Blocks - Build 2020.jpg +0 -0
- package/playground/__dist__/wallpaper/Fluent Ribbon - Build 2020.jpg +0 -0
- package/playground/__dist__/wallpaper/Fluent Spiral - Build 2020.jpg +0 -0
- package/playground/__dist__/wallpaper/Red Shirt Fan Club.jpg +0 -0
- package/playground/__dist__/wallpaper/Windows XP.jpg +0 -0
- package/playground/index.html +0 -14
- package/playground/public/axios.min.js +0 -2
- package/playground/public/chunks/gsap-CI3CqjtC.js +0 -23
- package/playground/public/html2canvas@1.0.0-rc.4.js +0 -7007
- package/playground/public/jweixin-1.6.2.js +0 -1
- package/playground/public/vue.global.prod.js +0 -6
- package/playground/public/wallpaper/Background - Build Expo Hall.jpg +0 -0
- package/playground/public/wallpaper/Background - Build Keynote.jpg +0 -0
- package/playground/public/wallpaper/Background - Build Stage.jpg +0 -0
- package/playground/public/wallpaper/Background - Maddy Leger's Kitchen.jpg +0 -0
- package/playground/public/wallpaper/Build 2020 - 8 bit.jpg +0 -0
- package/playground/public/wallpaper/Build 2020 - Cityscape.jpg +0 -0
- package/playground/public/wallpaper/Build 2020 - Triangles.jpg +0 -0
- package/playground/public/wallpaper/Build 2020 - Truck.jpg +0 -0
- package/playground/public/wallpaper/Build 2020 Attendee.jpg +0 -0
- package/playground/public/wallpaper/Fluent Ball - Build 2020.jpg +0 -0
- package/playground/public/wallpaper/Fluent Blocks - Build 2020.jpg +0 -0
- package/playground/public/wallpaper/Fluent Ribbon - Build 2020.jpg +0 -0
- package/playground/public/wallpaper/Fluent Spiral - Build 2020.jpg +0 -0
- package/playground/public/wallpaper/Red Shirt Fan Club.jpg +0 -0
- package/playground/public/wallpaper/Windows XP.jpg +0 -0
- package/playground/vite.config.ts +0 -54
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
-
type vitePluginDeployFtpOption = ({
|
|
4
|
-
|
|
5
|
-
singleBackFiles?: string[];
|
|
6
|
-
singleBack?: boolean;
|
|
7
|
-
open?: boolean;
|
|
8
|
-
maxRetries?: number;
|
|
9
|
-
retryDelay?: number;
|
|
10
|
-
showBackFile?: boolean;
|
|
11
|
-
autoUpload?: boolean;
|
|
12
|
-
} & {
|
|
13
|
-
ftps: {
|
|
14
|
-
name: string;
|
|
15
|
-
host?: string;
|
|
16
|
-
port?: number;
|
|
17
|
-
user?: string;
|
|
18
|
-
password?: string;
|
|
19
|
-
alias?: string;
|
|
20
|
-
}[];
|
|
3
|
+
type vitePluginDeployFtpOption = (BaseOption & {
|
|
4
|
+
ftps: FtpConfig[];
|
|
21
5
|
defaultFtp?: string;
|
|
22
|
-
}) | (
|
|
6
|
+
}) | (BaseOption & FtpConfig);
|
|
7
|
+
interface BaseOption {
|
|
23
8
|
uploadPath: string;
|
|
24
9
|
singleBackFiles?: string[];
|
|
25
10
|
singleBack?: boolean;
|
|
@@ -28,14 +13,18 @@ type vitePluginDeployFtpOption = ({
|
|
|
28
13
|
retryDelay?: number;
|
|
29
14
|
showBackFile?: boolean;
|
|
30
15
|
autoUpload?: boolean;
|
|
31
|
-
|
|
16
|
+
fancy?: boolean;
|
|
17
|
+
failOnError?: boolean;
|
|
18
|
+
concurrency?: number;
|
|
19
|
+
}
|
|
20
|
+
interface FtpConfig {
|
|
32
21
|
name?: string;
|
|
33
22
|
host?: string;
|
|
34
23
|
port?: number;
|
|
35
24
|
user?: string;
|
|
36
25
|
password?: string;
|
|
37
26
|
alias?: string;
|
|
38
|
-
}
|
|
27
|
+
}
|
|
39
28
|
declare function vitePluginDeployFtp(option: vitePluginDeployFtpOption): Plugin;
|
|
40
29
|
|
|
41
30
|
export { vitePluginDeployFtp as default, type vitePluginDeployFtpOption };
|