sitevision-cli 1.0.0-beta.32 → 1.0.0-beta.33
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 +50 -0
- package/LICENSE +21 -0
- package/dist/cli.js +56 -35
- package/dist/commands/TaskScreen.js +32 -0
- package/dist/commands/build.js +6 -185
- package/dist/commands/deploy.js +85 -238
- package/dist/commands/dev.js +34 -37
- package/dist/commands/info.js +1 -1
- package/dist/commands/setup-signing.js +43 -28
- package/dist/commands/sign.js +9 -86
- package/dist/commands/use-finish.js +17 -0
- package/dist/commands/watch.js +0 -8
- package/dist/components/AuthLoginScreen.js +27 -12
- package/dist/shell/ConfigForm.js +90 -29
- package/dist/shell/Frame.js +4 -1
- package/dist/shell/Help.js +2 -1
- package/dist/shell/Settings.js +59 -6
- package/dist/shell/Shell.js +124 -41
- package/dist/shell/Tabs.js +8 -2
- package/dist/shell/actions.js +0 -0
- package/dist/utils/config.js +46 -3
- package/dist/utils/create-app.js +9 -2
- package/dist/utils/i18n.js +36 -13
- package/dist/utils/jsonc.js +2 -1
- package/dist/utils/keychain.js +44 -4
- package/dist/utils/oauth2-auth.js +35 -7
- package/dist/utils/password-prompt.js +23 -3
- package/dist/utils/process-runner.js +4 -2
- package/dist/utils/project-detection.js +84 -33
- package/dist/utils/session-cookie-auth.js +5 -4
- package/dist/utils/sitevision-api.js +21 -14
- package/dist/utils/sitevision-scripts-runner.js +32 -15
- package/dist/utils/tasks.js +130 -64
- package/dist/utils/version-check.js +3 -3
- package/dist/utils/webpack-runner.js +6 -5
- package/dist/utils/workspace.js +41 -3
- package/dist/utils/zip.js +18 -19
- package/package.json +24 -3
- package/readme.md +11 -4
- package/dist/app.d.ts +0 -6
- package/dist/app.js +0 -321
- package/dist/cli.d.ts +0 -2
- package/dist/commands/build.d.ts +0 -12
- package/dist/commands/deploy.d.ts +0 -17
- package/dist/commands/dev.d.ts +0 -14
- 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 -11
- package/dist/components/DevPropertiesForm.js +0 -246
- 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 -88
- 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/scaffold/inquirer-stub.d.ts +0 -6
- package/dist/scaffold/register.d.ts +0 -1
- package/dist/shell/AddonPicker.d.ts +0 -14
- package/dist/shell/Changelog.d.ts +0 -10
- package/dist/shell/CommandPalette.d.ts +0 -12
- package/dist/shell/ConfigForm.d.ts +0 -42
- package/dist/shell/Frame.d.ts +0 -59
- package/dist/shell/Help.d.ts +0 -9
- package/dist/shell/Popover.d.ts +0 -12
- package/dist/shell/Settings.d.ts +0 -6
- package/dist/shell/Shell.d.ts +0 -11
- package/dist/shell/Tabs.d.ts +0 -36
- package/dist/shell/actions.d.ts +0 -49
- package/dist/types/index.d.ts +0 -295
- package/dist/utils/branding.d.ts +0 -28
- package/dist/utils/config.d.ts +0 -27
- package/dist/utils/create-app.d.ts +0 -53
- package/dist/utils/environments.d.ts +0 -20
- package/dist/utils/i18n.d.ts +0 -12
- package/dist/utils/jsonc.d.ts +0 -19
- package/dist/utils/keychain.d.ts +0 -15
- package/dist/utils/oauth2-auth.d.ts +0 -64
- package/dist/utils/password-prompt.d.ts +0 -14
- package/dist/utils/process-runner.d.ts +0 -32
- package/dist/utils/project-detection.d.ts +0 -210
- package/dist/utils/session-cookie-auth.d.ts +0 -35
- 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 -155
- package/dist/utils/sitevision-scripts-runner.d.ts +0 -84
- package/dist/utils/tasks.d.ts +0 -61
- package/dist/utils/version-check.d.ts +0 -9
- package/dist/utils/webpack-runner.d.ts +0 -76
- package/dist/utils/workspace.d.ts +0 -17
- package/dist/utils/zip.d.ts +0 -71
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type ProjectInfo } from './project-detection.js';
|
|
2
|
-
import type { DevProperties } from '../types/index.js';
|
|
3
|
-
/**
|
|
4
|
-
* Find every Sitevision app below `root` (e.g. root/webapps/x, root/restapps/y).
|
|
5
|
-
* Depth-limited walk that skips dependency and output folders.
|
|
6
|
-
*/
|
|
7
|
-
export declare function discoverApps(root: string): ProjectInfo[];
|
|
8
|
-
/** Group label for an app: its parent folder relative to the workspace root. */
|
|
9
|
-
export declare function appGroup(root: string, appRoot: string): string;
|
|
10
|
-
/** Missing something nothing can deploy without. */
|
|
11
|
-
export declare function configIncomplete(dev?: Partial<DevProperties>): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* True when a workspace has apps but nothing usable to deploy with: neither the
|
|
14
|
-
* shared root config nor the apps themselves carry domain/site/username. The
|
|
15
|
-
* shell then opens on Workspace settings instead of the first app.
|
|
16
|
-
*/
|
|
17
|
-
export declare function needsOnboarding(root: string, apps: ProjectInfo[]): boolean;
|
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;
|