@jay-framework/wix-deploy 0.24.2 → 0.24.4
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/index.d.ts +1 -52
- package/dist/index.js +1 -1275
- package/dist/tools.d.ts +53 -0
- package/dist/tools.js +1277 -0
- package/package.json +14 -9
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { JayHtmlValidatorFn } from '@jay-framework/compiler-shared';
|
|
2
|
+
import * as _jay_framework_fullstack_component from '@jay-framework/fullstack-component';
|
|
3
|
+
import { ConsoleContext } from '@jay-framework/fullstack-component';
|
|
4
|
+
import { WixClientService } from '@jay-framework/wix-server-client';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* wix-deploy setup hook
|
|
8
|
+
*
|
|
9
|
+
* Runs after wix-server-client setup. Reads wix.config.json to populate
|
|
10
|
+
* clientId and siteId in config/.wix.yaml (if they're still placeholders),
|
|
11
|
+
* then validates the data collection exists.
|
|
12
|
+
*/
|
|
13
|
+
interface SetupContext {
|
|
14
|
+
configDir: string;
|
|
15
|
+
projectRoot: string;
|
|
16
|
+
initError?: Error;
|
|
17
|
+
}
|
|
18
|
+
interface SetupResult {
|
|
19
|
+
status: 'configured' | 'needs-config' | 'error';
|
|
20
|
+
message?: string;
|
|
21
|
+
configCreated?: string[];
|
|
22
|
+
}
|
|
23
|
+
declare function setupWixDeploy(ctx: SetupContext): Promise<SetupResult>;
|
|
24
|
+
|
|
25
|
+
declare const validate: JayHtmlValidatorFn;
|
|
26
|
+
|
|
27
|
+
interface BuildEntryInput {
|
|
28
|
+
collectionId?: string;
|
|
29
|
+
staticBaseUrl?: string;
|
|
30
|
+
excludePlugins?: string;
|
|
31
|
+
}
|
|
32
|
+
declare const buildEntry: _jay_framework_fullstack_component.JayCliCommand<BuildEntryInput> & _jay_framework_fullstack_component.JayCliCommandDefinition<BuildEntryInput, [ConsoleContext]>;
|
|
33
|
+
|
|
34
|
+
interface UploadBackendInput {
|
|
35
|
+
collectionId?: string;
|
|
36
|
+
dryRun?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const uploadBackend: _jay_framework_fullstack_component.JayCliCommand<UploadBackendInput> & _jay_framework_fullstack_component.JayCliCommandDefinition<UploadBackendInput, [WixClientService, ConsoleContext]>;
|
|
39
|
+
|
|
40
|
+
interface DeployBaasInput {
|
|
41
|
+
dryRun?: boolean;
|
|
42
|
+
}
|
|
43
|
+
declare const deployBaas: _jay_framework_fullstack_component.JayCliCommand<DeployBaasInput> & _jay_framework_fullstack_component.JayCliCommandDefinition<DeployBaasInput, [ConsoleContext]>;
|
|
44
|
+
|
|
45
|
+
interface DeployInput {
|
|
46
|
+
collectionId?: string;
|
|
47
|
+
staticBaseUrl?: string;
|
|
48
|
+
excludePlugins?: string;
|
|
49
|
+
dryRun?: boolean;
|
|
50
|
+
}
|
|
51
|
+
declare const deploy: _jay_framework_fullstack_component.JayCliCommand<DeployInput> & _jay_framework_fullstack_component.JayCliCommandDefinition<DeployInput, [WixClientService, ConsoleContext]>;
|
|
52
|
+
|
|
53
|
+
export { buildEntry, deploy, deployBaas, setupWixDeploy, uploadBackend, validate };
|