@git.zone/tsdeploy 0.2.0 → 0.4.0
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_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.tsdeploy.d.ts +33 -1
- package/dist_ts/classes.tsdeploy.js +540 -11
- package/dist_ts/cli.js +60 -2
- package/dist_ts/plugins.d.ts +7 -1
- package/dist_ts/plugins.js +10 -2
- package/dist_ts/types.d.ts +80 -2
- package/package.json +4 -2
- package/readme.md +46 -8
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.tsdeploy.ts +626 -10
- package/ts/cli.ts +59 -1
- package/ts/plugins.ts +13 -1
- package/ts/types.ts +87 -2
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@git.zone/tsdeploy',
|
|
6
|
-
version: '0.
|
|
6
|
+
version: '0.4.0',
|
|
7
7
|
description: 'Cloudly and Onebox first deployment orchestration CLI for git.zone TypeScript tooling.'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxvQkFBb0I7SUFDMUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHdGQUF3RjtDQUN0RyxDQUFBIn0=
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
import type { ITsDeployDoctorResult, ITsDeployLinkOptions, ITsDeployPlan, ITsDeployProfile, ITsDeployProjectLink, ITsDeployPublicProfile, ITsDeploySaveProfileOptions, ITsDeployStatus, ITsDeployUserState } from './types.js';
|
|
1
|
+
import type { ITsDeployCommandRunOptions, ITsDeployCommandRunResult, ITsDeployDeployOptions, ITsDeployDeployResult, ITsDeployDoctorResult, ITsDeployLinkOptions, ITsDeployPlan, ITsDeployProfile, ITsDeployProjectLink, ITsDeployPublicProfile, ITsDeploySaveProfileOptions, ITsDeployStatus, ITsDeployUserState } from './types.js';
|
|
2
|
+
type TTypedRequestShape = {
|
|
3
|
+
method: string;
|
|
4
|
+
request: unknown;
|
|
5
|
+
response: unknown;
|
|
6
|
+
};
|
|
7
|
+
type TCloudlyRequest = <TRequest extends TTypedRequestShape>(originArg: string, methodArg: TRequest['method'], requestArg: TRequest['request']) => Promise<TRequest['response']>;
|
|
8
|
+
type TCommandRunner = (optionsArg: ITsDeployCommandRunOptions) => Promise<ITsDeployCommandRunResult>;
|
|
2
9
|
export interface ITsDeployOptions {
|
|
3
10
|
projectDir?: string;
|
|
4
11
|
profileStorePath?: string;
|
|
5
12
|
ephemeralProfileStore?: boolean;
|
|
13
|
+
env?: Record<string, string | undefined>;
|
|
14
|
+
commandRunner?: TCommandRunner;
|
|
15
|
+
cloudlyRequest?: TCloudlyRequest;
|
|
6
16
|
}
|
|
7
17
|
export declare const redactProfile: (profileArg: ITsDeployProfile) => ITsDeployPublicProfile;
|
|
8
18
|
export declare class TsDeploy {
|
|
9
19
|
readonly projectDir: string;
|
|
10
20
|
private readonly profileStore;
|
|
21
|
+
private readonly env;
|
|
22
|
+
private readonly commandRunner;
|
|
23
|
+
private readonly cloudlyRequest;
|
|
11
24
|
constructor(optionsArg?: ITsDeployOptions);
|
|
12
25
|
get projectLinkPath(): string;
|
|
13
26
|
private createProfileStore;
|
|
@@ -20,4 +33,23 @@ export declare class TsDeploy {
|
|
|
20
33
|
getStatus(): Promise<ITsDeployStatus>;
|
|
21
34
|
buildPlan(): Promise<ITsDeployPlan>;
|
|
22
35
|
doctor(): Promise<ITsDeployDoctorResult>;
|
|
36
|
+
deploy(optionsArg?: ITsDeployDeployOptions): Promise<ITsDeployDeployResult>;
|
|
37
|
+
private defaultCommandRunner;
|
|
38
|
+
private defaultCloudlyRequest;
|
|
39
|
+
private fireCloudlyRequest;
|
|
40
|
+
private resolveCloudlyIdentity;
|
|
41
|
+
private readProjectSmartconfig;
|
|
42
|
+
private readProjectPackageJson;
|
|
43
|
+
private resolveLocalDockerImage;
|
|
44
|
+
private resolveProjectCheckCommand;
|
|
45
|
+
private ensureCleanGitWorktree;
|
|
46
|
+
private resolveDockerBuildEnv;
|
|
47
|
+
private runCheckedCommand;
|
|
48
|
+
private collectSecretValues;
|
|
49
|
+
private redactText;
|
|
50
|
+
private extractDigest;
|
|
51
|
+
private getCloudlyDeployments;
|
|
52
|
+
private waitForHealthyDeployment;
|
|
53
|
+
private verifyUrl;
|
|
23
54
|
}
|
|
55
|
+
export {};
|