@swell/cli 2.0.1-alpha.9 → 2.0.2
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 +9 -9
- package/dist/commands/app/dev.d.ts +16 -0
- package/dist/commands/app/dev.js +28 -0
- package/dist/commands/app/frontend/deploy.d.ts +15 -0
- package/dist/commands/app/frontend/deploy.js +41 -0
- package/dist/commands/app/frontend/dev.d.ts +19 -0
- package/dist/commands/app/frontend/dev.js +108 -0
- package/dist/commands/app/info.js +14 -9
- package/dist/commands/app/init.d.ts +12 -0
- package/dist/commands/app/init.js +34 -0
- package/dist/commands/app/install.d.ts +4 -4
- package/dist/commands/app/install.js +36 -42
- package/dist/commands/app/pull.d.ts +15 -0
- package/dist/commands/app/pull.js +50 -0
- package/dist/commands/app/push.d.ts +11 -14
- package/dist/commands/app/push.js +64 -138
- package/dist/commands/app/release.d.ts +13 -0
- package/dist/commands/app/release.js +148 -0
- package/dist/commands/app/version.d.ts +5 -4
- package/dist/commands/app/version.js +63 -42
- 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 +143 -137
- package/dist/commands/create/content.d.ts +2 -2
- package/dist/commands/create/content.js +10 -10
- package/dist/commands/create/frontend.d.ts +12 -0
- package/dist/commands/create/frontend.js +38 -0
- package/dist/commands/create/function.d.ts +3 -3
- package/dist/commands/create/function.js +22 -22
- package/dist/commands/create/model.d.ts +2 -2
- package/dist/commands/create/model.js +11 -11
- package/dist/commands/create/notification.d.ts +4 -4
- package/dist/commands/create/notification.js +38 -40
- package/dist/commands/env.d.ts +12 -0
- package/dist/commands/env.js +31 -0
- package/dist/commands/login.d.ts +1 -1
- package/dist/commands/login.js +18 -24
- package/dist/commands/logs.js +0 -1
- package/dist/commands/theme/dev.d.ts +21 -0
- package/dist/commands/theme/dev.js +164 -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 +89 -0
- package/dist/create-app-command.d.ts +20 -0
- package/dist/create-app-command.js +253 -0
- package/dist/create-collection-command.d.ts +9 -9
- package/dist/create-collection-command.js +23 -23
- package/dist/{create-command.d.ts → create-config-command.d.ts} +1 -1
- package/dist/{create-command.js → create-config-command.js} +7 -7
- package/dist/env/local.d.ts +8 -0
- package/dist/env/local.js +7 -0
- package/dist/env/production.d.ts +8 -0
- package/dist/env/production.js +7 -0
- package/dist/env/review.d.ts +8 -0
- package/dist/env/review.js +7 -0
- package/dist/env/staging.d.ts +8 -0
- package/dist/env/staging.js +7 -0
- package/dist/lib/api.d.ts +4 -2
- package/dist/lib/api.js +50 -21
- package/dist/lib/app-config.d.ts +13 -5
- package/dist/lib/app-config.js +62 -24
- package/dist/lib/apps/app-config.d.ts +17 -3
- package/dist/lib/apps/app-config.js +194 -66
- package/dist/lib/apps/index.d.ts +93 -12
- package/dist/lib/apps/index.js +155 -50
- package/dist/lib/apps/paths.d.ts +14 -7
- package/dist/lib/apps/paths.js +73 -28
- package/dist/lib/bundle.js +15 -3
- package/dist/lib/config.d.ts +9 -2
- package/dist/lib/config.js +49 -1
- package/dist/lib/constants.d.ts +5 -0
- package/dist/lib/constants.js +24 -6
- package/dist/lib/create/content.d.ts +2 -2
- package/dist/lib/create/content.js +1 -1
- package/dist/lib/create/function.d.ts +2 -2
- package/dist/lib/create/function.js +2 -2
- package/dist/lib/create/index.d.ts +1 -1
- package/dist/lib/create/index.js +11 -7
- package/dist/lib/create/model.d.ts +2 -2
- package/dist/lib/create/notification.d.ts +2 -2
- package/dist/lib/info.js +2 -2
- package/dist/lib/logs/index.js +1 -1
- package/dist/lib/sessions.js +2 -2
- package/dist/lib/stores.d.ts +9 -4
- package/dist/lib/stores.js +13 -8
- package/dist/lib/style.d.ts +2 -0
- package/dist/lib/style.js +2 -0
- package/dist/lib/swell-function-wrapper.d.ts +40 -1
- package/dist/lib/swell-function-wrapper.js +107 -22
- package/dist/push-app-command.d.ts +73 -0
- package/dist/push-app-command.js +743 -0
- package/dist/remote-app-command.d.ts +37 -11
- package/dist/remote-app-command.js +432 -169
- package/oclif.manifest.json +872 -123
- package/package.json +14 -1
- package/dist/commands/app/_pull.d.ts +0 -8
- package/dist/commands/app/_pull.js +0 -45
|
@@ -5,25 +5,53 @@ import { App, AppConfig, AppVersion } from './lib/apps/index.js';
|
|
|
5
5
|
* configurations.
|
|
6
6
|
*/
|
|
7
7
|
export declare abstract class RemoteAppCommand extends AppCommand {
|
|
8
|
+
static delayOrientation: boolean;
|
|
8
9
|
static orientation: AppCommandOrientation;
|
|
9
10
|
app: App;
|
|
11
|
+
appCreated: boolean;
|
|
12
|
+
appType: string;
|
|
13
|
+
storefront?: any;
|
|
14
|
+
themeSyncApp?: boolean;
|
|
15
|
+
appFrontendUrl(storeId: string, installedAppId: string): string;
|
|
16
|
+
cleanRemoteConfigs(remoteConfigs: AppConfig[], deleteDeprecated?: boolean): Promise<AppConfig[]>;
|
|
10
17
|
dashboardUrl(flags?: {
|
|
11
18
|
[flag: string]: any;
|
|
12
19
|
}, storeId?: string): string;
|
|
13
|
-
|
|
20
|
+
deleteConfig(configId: string, filePath?: string, appConfigId?: string): Promise<any>;
|
|
14
21
|
protected getApp(id?: string): Promise<App>;
|
|
15
|
-
protected getAppWithConfig(id?: string
|
|
16
|
-
|
|
22
|
+
protected getAppWithConfig(id?: string): Promise<App>;
|
|
23
|
+
getConfigData(configId: string): Promise<any>;
|
|
24
|
+
protected getCreateUpdateApp(updateApp?: App | null): Promise<App>;
|
|
25
|
+
protected getInstalledApp(): Promise<any>;
|
|
26
|
+
protected getLocalAppConfigs(): AppConfig[];
|
|
27
|
+
protected getVersion(version?: null | string | undefined): Promise<AppVersion>;
|
|
28
|
+
protected getVersions(version?: null | string | undefined): Promise<AppVersion[]>;
|
|
17
29
|
protected handleRequestErrors(request: () => any, spinnerError?: () => void): Promise<any>;
|
|
18
30
|
init(): Promise<void>;
|
|
19
|
-
protected
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
protected installApp(version: string, spinner?: any): Promise<any>;
|
|
32
|
+
isConfigDeprecated(config: AppConfig): boolean;
|
|
33
|
+
localFrontendUrl(storeId: string, sessionId: string): string;
|
|
34
|
+
logOrientation(): Promise<void>;
|
|
35
|
+
postConfigData(configJson: any): Promise<any>;
|
|
36
|
+
protected pullAppConfigs(force?: boolean, confirmRemove?: boolean): Promise<{
|
|
37
|
+
pulled: string[];
|
|
38
|
+
removed: string[];
|
|
39
|
+
}>;
|
|
40
|
+
pullAppJsonAndRemoteConfigs(): Promise<AppConfig[]>;
|
|
41
|
+
protected pullRemoteFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
42
|
+
protected pushAppConfigs(force?: boolean): Promise<{
|
|
43
|
+
pushed: string[];
|
|
25
44
|
removed: string[];
|
|
26
45
|
}>;
|
|
46
|
+
protected pushRemoteFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
47
|
+
protected removeLocalFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
48
|
+
protected removeRemoteFile(config: AppConfig, log?: boolean): Promise<any>;
|
|
49
|
+
protected showErrors(errors: any, spinnerError?: () => void): void;
|
|
50
|
+
storefrontFrontendUrl(storeId: string, storefront?: any, branchId?: string, preview?: boolean): string;
|
|
51
|
+
protected swellRcPath(): string;
|
|
52
|
+
protected timestampStyled(): string;
|
|
53
|
+
protected updateInstalledApp(version: string, spinner?: any): Promise<void>;
|
|
54
|
+
protected updateVersion(version: string, body: any, spinner?: any): Promise<void>;
|
|
27
55
|
/**
|
|
28
56
|
* Reads the .swellrc file and sets up the remote app configuration.
|
|
29
57
|
*
|
|
@@ -31,6 +59,4 @@ export declare abstract class RemoteAppCommand extends AppCommand {
|
|
|
31
59
|
*/
|
|
32
60
|
private initApp;
|
|
33
61
|
private showOrientation;
|
|
34
|
-
protected getVersions(version?: string | undefined | null): Promise<AppVersion[]>;
|
|
35
|
-
protected swellRcPath(): string;
|
|
36
62
|
}
|