sitevision-cli 1.0.0-beta.9 → 1.0.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/CHANGELOG.md +143 -0
- package/LICENSE +21 -0
- package/dist/cli.js +194 -70
- package/dist/commands/TaskScreen.js +32 -0
- package/dist/commands/build.js +6 -185
- package/dist/commands/deploy.js +95 -212
- package/dist/commands/dev.js +87 -416
- package/dist/commands/info.js +1 -1
- package/dist/commands/setup-signing.js +50 -33
- package/dist/commands/sign.js +9 -86
- package/dist/commands/use-finish.js +17 -0
- package/dist/commands/watch.js +5 -31
- package/dist/components/AnimatedLogo.js +8 -2
- package/dist/components/AuthLoginScreen.js +33 -15
- package/dist/components/PasswordInput.js +2 -1
- package/dist/scaffold/inquirer-stub.js +119 -0
- package/dist/scaffold/register.js +15 -0
- package/dist/shell/AddonPicker.js +54 -0
- package/dist/shell/Changelog.js +50 -0
- package/dist/shell/CommandPalette.js +63 -0
- package/dist/shell/ConfigForm.js +703 -0
- package/dist/shell/Frame.js +138 -0
- package/dist/shell/Help.js +96 -0
- package/dist/shell/Popover.js +15 -0
- package/dist/shell/Settings.js +149 -0
- package/dist/shell/Shell.js +953 -0
- package/dist/shell/Tabs.js +96 -0
- package/dist/shell/actions.js +493 -0
- package/dist/utils/config.js +62 -2
- package/dist/utils/create-app.js +231 -0
- package/dist/utils/debug.js +32 -0
- package/dist/utils/environments.js +74 -0
- package/dist/utils/i18n.js +369 -0
- package/dist/utils/jsonc.js +2 -1
- package/dist/utils/keychain.js +54 -6
- package/dist/utils/oauth2-auth.js +146 -43
- package/dist/utils/password-prompt.js +37 -3
- package/dist/utils/process-runner.js +77 -38
- package/dist/utils/project-detection.js +457 -112
- package/dist/utils/session-cookie-auth.js +10 -6
- package/dist/utils/sitevision-api.js +134 -25
- package/dist/utils/sitevision-scripts-runner.js +50 -22
- package/dist/utils/tasks.js +510 -0
- package/dist/utils/version-check.js +3 -3
- package/dist/utils/webpack-runner.js +9 -5
- package/dist/utils/workspace.js +105 -0
- package/dist/utils/zip.js +18 -19
- package/package.json +29 -5
- package/readme.md +117 -141
- package/dist/app.d.ts +0 -6
- package/dist/app.js +0 -307
- package/dist/cli.d.ts +0 -2
- package/dist/commands/build.d.ts +0 -12
- package/dist/commands/deploy.d.ts +0 -16
- package/dist/commands/dev.d.ts +0 -16
- package/dist/commands/index.d.ts +0 -4
- package/dist/commands/info.d.ts +0 -2
- package/dist/commands/setup-signing.d.ts +0 -2
- package/dist/commands/sign.d.ts +0 -14
- package/dist/commands/types.d.ts +0 -18
- package/dist/commands/watch.d.ts +0 -2
- package/dist/components/AnimatedLogo.d.ts +0 -10
- package/dist/components/AuthLoginScreen.d.ts +0 -21
- package/dist/components/DevPropertiesForm.d.ts +0 -10
- package/dist/components/DevPropertiesForm.js +0 -210
- package/dist/components/InfoScreen.d.ts +0 -7
- package/dist/components/InfoScreen.js +0 -14
- package/dist/components/KeychainPasswordChoice.d.ts +0 -8
- package/dist/components/KeychainPasswordChoice.js +0 -30
- package/dist/components/MainMenu.d.ts +0 -7
- package/dist/components/MainMenu.js +0 -83
- package/dist/components/PasswordInput.d.ts +0 -10
- package/dist/components/ProcessOutput.d.ts +0 -6
- package/dist/components/ProcessOutput.js +0 -30
- package/dist/components/SetupFlow.d.ts +0 -8
- package/dist/components/SetupFlow.js +0 -233
- package/dist/components/SigningPropertiesForm.d.ts +0 -7
- package/dist/components/SigningPropertiesForm.js +0 -38
- package/dist/components/StatusIndicator.d.ts +0 -8
- package/dist/components/TextInput.d.ts +0 -10
- package/dist/components/TextInput.js +0 -29
- package/dist/components/WelcomeScreen.d.ts +0 -14
- package/dist/types/index.d.ts +0 -284
- package/dist/utils/branding.d.ts +0 -28
- package/dist/utils/config.d.ts +0 -17
- package/dist/utils/jsonc.d.ts +0 -19
- package/dist/utils/keychain.d.ts +0 -15
- package/dist/utils/oauth2-auth.d.ts +0 -27
- package/dist/utils/password-prompt.d.ts +0 -14
- package/dist/utils/process-runner.d.ts +0 -22
- package/dist/utils/project-detection.d.ts +0 -151
- package/dist/utils/session-cookie-auth.d.ts +0 -34
- package/dist/utils/signing-password.d.ts +0 -12
- package/dist/utils/signing-step.d.ts +0 -15
- package/dist/utils/signing-step.js +0 -16
- package/dist/utils/sitevision-api.d.ts +0 -112
- package/dist/utils/sitevision-scripts-runner.d.ts +0 -83
- package/dist/utils/version-check.d.ts +0 -9
- package/dist/utils/webpack-runner.d.ts +0 -76
- package/dist/utils/zip.d.ts +0 -71
package/dist/utils/zip.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zip Utilities
|
|
3
|
-
*
|
|
4
|
-
* Handles creating zip archives for Sitevision app distribution.
|
|
5
|
-
* Also handles webpack chunk organization.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Create a zip archive of a directory.
|
|
9
|
-
*
|
|
10
|
-
* In-house, dependency-free implementation: walks the directory, deflates each
|
|
11
|
-
* file with Node's built-in zlib, and assembles a standard ZIP container (local
|
|
12
|
-
* file headers + central directory + end-of-central-directory record). This
|
|
13
|
-
* removes the previous reliance on the external `zip`/`tar`/PowerShell binaries
|
|
14
|
-
* and behaves identically across macOS, Linux, and Windows.
|
|
15
|
-
*
|
|
16
|
-
* Mirrors `zip -r <out> .` run from inside `sourceDir`: archive paths are
|
|
17
|
-
* relative to `sourceDir`, use forward slashes, and directory entries are
|
|
18
|
-
* emitted so empty directories are preserved.
|
|
19
|
-
*
|
|
20
|
-
* @param sourceDir - Directory to zip
|
|
21
|
-
* @param outputPath - Path for the output zip file
|
|
22
|
-
* @returns Promise resolving to the output path
|
|
23
|
-
*/
|
|
24
|
-
export declare function createZip(sourceDir: string, outputPath: string): Promise<string>;
|
|
25
|
-
/**
|
|
26
|
-
* Create a zip of the build directory for deployment
|
|
27
|
-
*
|
|
28
|
-
* @param projectRoot - Project root directory
|
|
29
|
-
* @param manifest - App manifest for naming
|
|
30
|
-
* @returns Path to the created zip file
|
|
31
|
-
*/
|
|
32
|
-
export declare function createBuildZip(projectRoot: string, appId: string): Promise<string>;
|
|
33
|
-
/**
|
|
34
|
-
* Copy webpack chunks to the resource directory
|
|
35
|
-
*
|
|
36
|
-
* Webpack outputs chunk files (chunk-*.js) in the build directory.
|
|
37
|
-
* These need to be moved to a resource/ subdirectory for Sitevision.
|
|
38
|
-
*
|
|
39
|
-
* @param buildDir - The build directory containing webpack output
|
|
40
|
-
*/
|
|
41
|
-
export declare function copyChunksToResources(buildDir: string): void;
|
|
42
|
-
/**
|
|
43
|
-
* Copy static files to build directory
|
|
44
|
-
*
|
|
45
|
-
* @param projectRoot - Project root directory
|
|
46
|
-
*/
|
|
47
|
-
export declare function copyStaticToBuild(projectRoot: string): void;
|
|
48
|
-
/**
|
|
49
|
-
* Copy source files to build directory (for non-bundled apps)
|
|
50
|
-
*
|
|
51
|
-
* @param projectRoot - Project root directory
|
|
52
|
-
*/
|
|
53
|
-
export declare function copySrcToBuild(projectRoot: string): void;
|
|
54
|
-
/**
|
|
55
|
-
* Clean the build directory
|
|
56
|
-
*
|
|
57
|
-
* @param projectRoot - Project root directory
|
|
58
|
-
*/
|
|
59
|
-
export declare function cleanBuild(projectRoot: string): void;
|
|
60
|
-
/**
|
|
61
|
-
* Check if a zip file exists
|
|
62
|
-
*/
|
|
63
|
-
export declare function zipExists(zipPath: string): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Get zip file size in bytes
|
|
66
|
-
*/
|
|
67
|
-
export declare function getZipSize(zipPath: string): number;
|
|
68
|
-
/**
|
|
69
|
-
* Format file size for display
|
|
70
|
-
*/
|
|
71
|
-
export declare function formatFileSize(bytes: number): string;
|