@commercetools-frontend/application-cli 1.8.0 → 2.0.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/README.md +3 -3
- package/cli/dist/commercetools-frontend-application-cli-cli.cjs.d.ts +1 -1
- package/cli/dist/commercetools-frontend-application-cli-cli.cjs.dev.js +298 -142
- package/cli/dist/commercetools-frontend-application-cli-cli.cjs.prod.js +298 -142
- package/cli/dist/commercetools-frontend-application-cli-cli.esm.js +293 -138
- package/dist/commercetools-frontend-application-cli.cjs.d.ts +1 -1
- package/dist/declarations/src/index.d.ts +1 -1
- package/dist/declarations/src/types.d.ts +23 -5
- package/package.json +9 -10
- package/cli/dist/commercetools-frontend-application-cli-cli.cjs.d.ts.map +0 -1
- package/dist/commercetools-frontend-application-cli.cjs.d.ts.map +0 -1
|
@@ -20,8 +20,23 @@ type TPaths = {
|
|
|
20
20
|
dotenvPath?: string;
|
|
21
21
|
assetsPath: string;
|
|
22
22
|
};
|
|
23
|
+
export type TStorageProviderTag = 'gs' | 's3';
|
|
24
|
+
export interface IStorageProvider {
|
|
25
|
+
getTag(): TStorageProviderTag;
|
|
26
|
+
getProtocol(): string;
|
|
27
|
+
getPublicBaseUrl(): string;
|
|
28
|
+
getCdnUrl(config: TApplicationAssetsBucketConfig): string;
|
|
29
|
+
getAssetsBucketUrl(config: TApplicationAssetsBucketConfig): string;
|
|
30
|
+
getApplicationIndexBucketUrl(config: TApplicationIndexBucketConfig): string;
|
|
31
|
+
}
|
|
32
|
+
export interface IUploadScriptsGenerator {
|
|
33
|
+
getProductionBundlesUploadScript(config: TCreateApplicationAssetsUploadScript): string;
|
|
34
|
+
getApplicationIndexUploadScript(config: TCreateApplicationIndexUploadScript): string;
|
|
35
|
+
}
|
|
23
36
|
export type TCompileEnvApplicationIndexes = {
|
|
24
37
|
cliFlags: TCompileDeploymentsFlags;
|
|
38
|
+
storageProvider: IStorageProvider;
|
|
39
|
+
uploadScriptsGenerator: IUploadScriptsGenerator;
|
|
25
40
|
paths: TPaths;
|
|
26
41
|
bucketRegion: string;
|
|
27
42
|
cloudEnvironment: string;
|
|
@@ -29,24 +44,26 @@ export type TCompileEnvApplicationIndexes = {
|
|
|
29
44
|
};
|
|
30
45
|
export type TCompileApplicationAssets = {
|
|
31
46
|
cliFlags: TCompileDeploymentsFlags;
|
|
47
|
+
storageProvider: IStorageProvider;
|
|
48
|
+
uploadScriptsGenerator: IUploadScriptsGenerator;
|
|
32
49
|
paths: TPaths;
|
|
33
50
|
bucketRegion: string;
|
|
34
51
|
};
|
|
35
52
|
type TBucketRegion = string;
|
|
36
|
-
export type
|
|
37
|
-
export type TExpandedBucketEnvironmentConfig = {
|
|
53
|
+
export type TBucketEnvironmentConfig = {
|
|
38
54
|
cloudEnvironment: string;
|
|
39
55
|
bucketEnvironment: string;
|
|
56
|
+
storageProviders: TStorageProviderTag[];
|
|
40
57
|
};
|
|
41
|
-
export type
|
|
42
|
-
export type TGoogleStorageBucketsConfig = {
|
|
58
|
+
export type TStorageBucketsConfig = {
|
|
43
59
|
[key: TBucketRegion]: TBucketEnvironmentConfig[];
|
|
44
60
|
};
|
|
45
61
|
export type TCosmiconfigResult = {
|
|
46
|
-
config:
|
|
62
|
+
config: TStorageBucketsConfig;
|
|
47
63
|
};
|
|
48
64
|
export type TCreateApplicationIndexUploadScript = {
|
|
49
65
|
packageManagerName: string;
|
|
66
|
+
storageProvider: IStorageProvider;
|
|
50
67
|
bucketUrl: string;
|
|
51
68
|
cdnUrl: string;
|
|
52
69
|
bucketEnvironment: string;
|
|
@@ -55,6 +72,7 @@ export type TCreateApplicationIndexUploadScript = {
|
|
|
55
72
|
applicationIndexOutFile: string;
|
|
56
73
|
};
|
|
57
74
|
export type TCreateApplicationAssetsUploadScript = {
|
|
75
|
+
storageProvider: IStorageProvider;
|
|
58
76
|
bucketUrl: string;
|
|
59
77
|
assetsPath: string;
|
|
60
78
|
skipMenu: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Internal CLI to manage Merchant Center application deployments across various environments.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commercetools",
|
|
@@ -22,26 +22,25 @@
|
|
|
22
22
|
"@babel/core": "^7.22.11",
|
|
23
23
|
"@babel/runtime": "^7.21.0",
|
|
24
24
|
"@babel/runtime-corejs3": "^7.21.0",
|
|
25
|
-
"@commercetools-frontend/application-config": "22.
|
|
26
|
-
"@commercetools-frontend/constants": "22.
|
|
27
|
-
"@commercetools-frontend/l10n": "22.
|
|
25
|
+
"@commercetools-frontend/application-config": "22.16.0",
|
|
26
|
+
"@commercetools-frontend/constants": "22.16.0",
|
|
27
|
+
"@commercetools-frontend/l10n": "22.16.0",
|
|
28
28
|
"@manypkg/find-root": "2.2.1",
|
|
29
29
|
"cac": "^6.7.14",
|
|
30
|
-
"cosmiconfig": "
|
|
31
|
-
"dotenv": "16.3.
|
|
30
|
+
"cosmiconfig": "9.0.0",
|
|
31
|
+
"dotenv": "16.3.2",
|
|
32
32
|
"execa": "5.1.1",
|
|
33
33
|
"jsonschema": "^1.4.1",
|
|
34
|
-
"listr2": "
|
|
34
|
+
"listr2": "8.0.1",
|
|
35
35
|
"node-fetch": "2.7.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@tsconfig/node20": "20.1.2",
|
|
39
|
-
"@types/node": "20.
|
|
40
|
-
"@types/node-fetch": "2.6.2",
|
|
39
|
+
"@types/node": "20.11.5",
|
|
41
40
|
"typescript": "5.2.2"
|
|
42
41
|
},
|
|
43
42
|
"engines": {
|
|
44
|
-
"node": ">=
|
|
43
|
+
"node": ">=18",
|
|
45
44
|
"npm": ">=6"
|
|
46
45
|
},
|
|
47
46
|
"publishConfig": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commercetools-frontend-application-cli-cli.cjs.d.ts","sourceRoot":"","sources":["../../dist/declarations/src/cli.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commercetools-frontend-application-cli.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|