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.
Files changed (49) hide show
  1. package/README.md +1 -0
  2. package/dist/index.d.ts +10 -21
  3. package/dist/index.js +516 -256
  4. package/package.json +8 -6
  5. package/dist/index.d.mts +0 -41
  6. package/dist/index.mjs +0 -435
  7. package/playground/__dist__/axios.min.js +0 -2
  8. package/playground/__dist__/chunks/gsap-CI3CqjtC.js +0 -23
  9. package/playground/__dist__/html2canvas@1.0.0-rc.4.js +0 -7007
  10. package/playground/__dist__/index.html +0 -14
  11. package/playground/__dist__/jweixin-1.6.2.js +0 -1
  12. package/playground/__dist__/vue.global.prod.js +0 -6
  13. package/playground/__dist__/wallpaper/Background - Build Expo Hall.jpg +0 -0
  14. package/playground/__dist__/wallpaper/Background - Build Keynote.jpg +0 -0
  15. package/playground/__dist__/wallpaper/Background - Build Stage.jpg +0 -0
  16. package/playground/__dist__/wallpaper/Background - Maddy Leger's Kitchen.jpg +0 -0
  17. package/playground/__dist__/wallpaper/Build 2020 - 8 bit.jpg +0 -0
  18. package/playground/__dist__/wallpaper/Build 2020 - Cityscape.jpg +0 -0
  19. package/playground/__dist__/wallpaper/Build 2020 - Triangles.jpg +0 -0
  20. package/playground/__dist__/wallpaper/Build 2020 - Truck.jpg +0 -0
  21. package/playground/__dist__/wallpaper/Build 2020 Attendee.jpg +0 -0
  22. package/playground/__dist__/wallpaper/Fluent Ball - Build 2020.jpg +0 -0
  23. package/playground/__dist__/wallpaper/Fluent Blocks - Build 2020.jpg +0 -0
  24. package/playground/__dist__/wallpaper/Fluent Ribbon - Build 2020.jpg +0 -0
  25. package/playground/__dist__/wallpaper/Fluent Spiral - Build 2020.jpg +0 -0
  26. package/playground/__dist__/wallpaper/Red Shirt Fan Club.jpg +0 -0
  27. package/playground/__dist__/wallpaper/Windows XP.jpg +0 -0
  28. package/playground/index.html +0 -14
  29. package/playground/public/axios.min.js +0 -2
  30. package/playground/public/chunks/gsap-CI3CqjtC.js +0 -23
  31. package/playground/public/html2canvas@1.0.0-rc.4.js +0 -7007
  32. package/playground/public/jweixin-1.6.2.js +0 -1
  33. package/playground/public/vue.global.prod.js +0 -6
  34. package/playground/public/wallpaper/Background - Build Expo Hall.jpg +0 -0
  35. package/playground/public/wallpaper/Background - Build Keynote.jpg +0 -0
  36. package/playground/public/wallpaper/Background - Build Stage.jpg +0 -0
  37. package/playground/public/wallpaper/Background - Maddy Leger's Kitchen.jpg +0 -0
  38. package/playground/public/wallpaper/Build 2020 - 8 bit.jpg +0 -0
  39. package/playground/public/wallpaper/Build 2020 - Cityscape.jpg +0 -0
  40. package/playground/public/wallpaper/Build 2020 - Triangles.jpg +0 -0
  41. package/playground/public/wallpaper/Build 2020 - Truck.jpg +0 -0
  42. package/playground/public/wallpaper/Build 2020 Attendee.jpg +0 -0
  43. package/playground/public/wallpaper/Fluent Ball - Build 2020.jpg +0 -0
  44. package/playground/public/wallpaper/Fluent Blocks - Build 2020.jpg +0 -0
  45. package/playground/public/wallpaper/Fluent Ribbon - Build 2020.jpg +0 -0
  46. package/playground/public/wallpaper/Fluent Spiral - Build 2020.jpg +0 -0
  47. package/playground/public/wallpaper/Red Shirt Fan Club.jpg +0 -0
  48. package/playground/public/wallpaper/Windows XP.jpg +0 -0
  49. package/playground/vite.config.ts +0 -54
package/README.md CHANGED
@@ -11,6 +11,7 @@
11
11
  - 自动备份远程文件
12
12
  - 连接重试机制
13
13
  - 选择性文件备份
14
+ - 当前版本仅支持 ESM(`import`),不再提供 CommonJS(`require`)入口
14
15
 
15
16
  ## 安装
16
17
 
package/dist/index.d.ts CHANGED
@@ -1,25 +1,10 @@
1
1
  import { Plugin } from 'vite';
2
2
 
3
- type vitePluginDeployFtpOption = ({
4
- uploadPath: string;
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 };