@swell/cli 2.0.1-alpha.16 → 2.0.1-alpha.17
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/dist/app-command.d.ts +1 -1
- package/dist/app-command.js +8 -8
- package/dist/commands/app/dev.d.ts +18 -0
- package/dist/commands/app/dev.js +31 -0
- package/dist/commands/app/frontend/deploy.d.ts +17 -0
- package/dist/commands/app/frontend/deploy.js +44 -0
- package/dist/commands/app/frontend/dev.d.ts +21 -0
- package/dist/commands/app/frontend/dev.js +111 -0
- package/dist/commands/app/info.js +15 -8
- package/dist/commands/app/init.d.ts +12 -0
- package/dist/commands/app/init.js +34 -0
- package/dist/commands/app/install.d.ts +0 -3
- package/dist/commands/app/install.js +12 -20
- package/dist/commands/app/pull.d.ts +15 -0
- package/dist/commands/app/pull.js +50 -0
- package/dist/commands/app/push.d.ts +10 -13
- package/dist/commands/app/push.js +64 -135
- package/dist/commands/app/release.d.ts +13 -0
- package/dist/commands/app/release.js +150 -0
- package/dist/commands/app/version.d.ts +7 -6
- package/dist/commands/app/version.js +61 -40
- package/dist/commands/app/watch.d.ts +2 -4
- package/dist/commands/app/watch.js +3 -83
- package/dist/commands/create/app.d.ts +35 -11
- package/dist/commands/create/app.js +141 -138
- package/dist/commands/create/frontend.d.ts +12 -0
- package/dist/commands/create/frontend.js +41 -0
- package/dist/commands/create/function.d.ts +2 -2
- package/dist/commands/create/function.js +2 -2
- package/dist/commands/create/notification.d.ts +2 -2
- package/dist/commands/create/notification.js +2 -2
- package/dist/commands/login.js +6 -4
- package/dist/commands/logs.js +0 -1
- package/dist/commands/theme/dev.d.ts +23 -0
- package/dist/commands/theme/dev.js +167 -0
- package/dist/commands/theme/init.d.ts +9 -0
- package/dist/commands/theme/init.js +15 -0
- package/dist/commands/theme/pull.d.ts +20 -0
- package/dist/commands/theme/pull.js +65 -0
- package/dist/commands/theme/push.d.ts +19 -0
- package/dist/commands/theme/push.js +92 -0
- package/dist/create-app-command.d.ts +20 -0
- package/dist/create-app-command.js +254 -0
- package/dist/create-collection-command.d.ts +3 -3
- package/dist/create-collection-command.js +4 -4
- package/dist/{create-command.d.ts → create-config-command.d.ts} +1 -1
- package/dist/{create-command.js → create-config-command.js} +3 -3
- package/dist/lib/api.d.ts +3 -2
- package/dist/lib/api.js +47 -21
- package/dist/lib/app-config.d.ts +12 -5
- package/dist/lib/app-config.js +59 -24
- package/dist/lib/apps/app-config.d.ts +22 -8
- package/dist/lib/apps/app-config.js +202 -68
- package/dist/lib/apps/index.d.ts +93 -13
- package/dist/lib/apps/index.js +150 -50
- package/dist/lib/apps/paths.d.ts +14 -7
- package/dist/lib/apps/paths.js +73 -28
- package/dist/lib/config.d.ts +5 -1
- package/dist/lib/config.js +14 -0
- package/dist/lib/constants.d.ts +5 -0
- package/dist/lib/constants.js +20 -0
- package/dist/lib/create/content.d.ts +1 -1
- package/dist/lib/create/index.js +5 -1
- package/dist/lib/info.js +2 -2
- package/dist/lib/stores.d.ts +1 -1
- package/dist/lib/stores.js +3 -3
- package/dist/lib/style.d.ts +2 -0
- package/dist/lib/style.js +2 -0
- package/dist/push-app-command.d.ts +73 -0
- package/dist/push-app-command.js +765 -0
- package/dist/remote-app-command.d.ts +33 -7
- package/dist/remote-app-command.js +423 -151
- package/oclif.manifest.json +794 -81
- package/package.json +13 -2
- package/dist/commands/app/_pull.d.ts +0 -8
- package/dist/commands/app/_pull.js +0 -45
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { App, AppConfig, ConfigType, FrontendProjectType } from './lib/apps/index.js';
|
|
3
|
+
import { RemoteAppCommand } from './remote-app-command.js';
|
|
4
|
+
type WatchFileEvent = 'change' | 'deleted' | 'new';
|
|
5
|
+
export declare abstract class PushAppCommand extends RemoteAppCommand {
|
|
6
|
+
frontendPath: string;
|
|
7
|
+
watchingFiles: Array<string>;
|
|
8
|
+
watchingChangeQueue: Array<any>;
|
|
9
|
+
watchingChangeQueueRunning: boolean;
|
|
10
|
+
logWatchChanges: boolean;
|
|
11
|
+
onWatchChange?: ((appConfig?: AppConfig, result?: any) => void) | undefined;
|
|
12
|
+
exec(command: string, onOutput?: (string: string) => false | any): Promise<void>;
|
|
13
|
+
setWatchingFiles(): void;
|
|
14
|
+
watchForChanges({ logChanges, syncAll, onChange, }?: {
|
|
15
|
+
logChanges?: boolean | undefined;
|
|
16
|
+
syncAll?: boolean | undefined;
|
|
17
|
+
onChange?: (() => void) | undefined;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
watchListener: (eventType: string, filename: Buffer | null | string) => Promise<void>;
|
|
20
|
+
handleWatchFileChange(configFile: string, configType: ConfigType, event: WatchFileEvent): Promise<void>;
|
|
21
|
+
runWatchChangeQueue(): Promise<void>;
|
|
22
|
+
deployAppFrontend(force?: boolean, log?: boolean): Promise<void>;
|
|
23
|
+
getFrontendDeploymentHash(): string | undefined;
|
|
24
|
+
getFrontendProjectType(required?: boolean): FrontendProjectType | null;
|
|
25
|
+
ensureLoggedIn(): Promise<true | undefined>;
|
|
26
|
+
ensureAppExists(file?: string, shouldCreate?: boolean): Promise<boolean>;
|
|
27
|
+
private confirmRemoveInstalledApp;
|
|
28
|
+
resolveAppPath(appId?: string, targetPath?: string): string;
|
|
29
|
+
getAppStorefront(params?: {
|
|
30
|
+
storefront_id?: string;
|
|
31
|
+
type?: string;
|
|
32
|
+
}): Promise<any>;
|
|
33
|
+
getAllStorefronts(params?: {
|
|
34
|
+
app_id?: string;
|
|
35
|
+
theme_app_id?: string;
|
|
36
|
+
type?: string;
|
|
37
|
+
}): Promise<any>;
|
|
38
|
+
getAllAppStorefronts(params?: {
|
|
39
|
+
type?: string;
|
|
40
|
+
}): Promise<any>;
|
|
41
|
+
saveCurrentStorefront(): void;
|
|
42
|
+
getAppToPull(args: {
|
|
43
|
+
appId?: string;
|
|
44
|
+
targetPath?: string;
|
|
45
|
+
}, shouldChoose?: boolean): Promise<App | undefined>;
|
|
46
|
+
getExistingApp(appId: string): Promise<App>;
|
|
47
|
+
getStorefrontToPush(flags?: {
|
|
48
|
+
'storefront-id'?: string;
|
|
49
|
+
'storefront-select'?: boolean;
|
|
50
|
+
}): Promise<any>;
|
|
51
|
+
getStorefrontToPull(args?: {
|
|
52
|
+
appId?: string;
|
|
53
|
+
targetPath?: string;
|
|
54
|
+
}, flags?: {
|
|
55
|
+
'storefront-id'?: string;
|
|
56
|
+
'storefront-select'?: boolean;
|
|
57
|
+
}): Promise<any>;
|
|
58
|
+
chooseAppToPull(query?: any): Promise<App>;
|
|
59
|
+
createAppStorefront(hasOtherStorefronts?: boolean): Promise<any>;
|
|
60
|
+
logStorefrontConnected(): void;
|
|
61
|
+
logDashboardUrl(flags: {
|
|
62
|
+
[flag: string]: any;
|
|
63
|
+
}): void;
|
|
64
|
+
pushFilePath(relativePath: string, force?: boolean): Promise<void>;
|
|
65
|
+
pushFile(relativePath: string): Promise<void>;
|
|
66
|
+
deployFrontend(projectType: FrontendProjectType): Promise<string>;
|
|
67
|
+
buildFrontend(projectType: FrontendProjectType): Promise<void>;
|
|
68
|
+
wranglerDeployFrontend(projectType: FrontendProjectType): Promise<string>;
|
|
69
|
+
updateFrontendDeployment(currentStore: string, projectType: FrontendProjectType, deploymentUrl: string, deploymentHash: string): Promise<void>;
|
|
70
|
+
logAppFrontendUrl(): void;
|
|
71
|
+
logStorefrontFrontendUrl(storefront?: any, branchId?: string): void;
|
|
72
|
+
}
|
|
73
|
+
export {};
|