@forge/cli-shared 6.11.0-next.9 → 6.11.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/CHANGELOG.md +105 -0
- package/out/graphql/app-environment-graphql-client.d.ts +1 -0
- package/out/graphql/app-environment-graphql-client.d.ts.map +1 -1
- package/out/graphql/graphql-types.d.ts +895 -10
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/graphql/graphql-types.js +106 -26
- package/out/ui/text.d.ts +17 -6
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +33 -22
- package/package.json +4 -4
package/out/ui/text.js
CHANGED
|
@@ -502,6 +502,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
502
502
|
option: {
|
|
503
503
|
version1: '1st version to compare',
|
|
504
504
|
version2: '2nd version to compare',
|
|
505
|
+
environment1: '1st environment to compare',
|
|
506
|
+
environment2: '2nd environment to compare',
|
|
505
507
|
outFile: 'specify a file to output the results'
|
|
506
508
|
},
|
|
507
509
|
desc: `returns the details of two versions of the app for comparison. Details include:\n${itemList([
|
|
@@ -519,9 +521,13 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
519
521
|
start: 'Comparing app versions...',
|
|
520
522
|
end: 'Comparing app versions...',
|
|
521
523
|
details: {
|
|
522
|
-
banner: (
|
|
523
|
-
const
|
|
524
|
-
|
|
524
|
+
banner: (input) => {
|
|
525
|
+
const env1Display = exports.Text.env.displayEnvironment(input.env1Key, input.env1Type);
|
|
526
|
+
const env2Display = input.env2Key && input.env2Type ? exports.Text.env.displayEnvironment(input.env2Key, input.env2Type) : '';
|
|
527
|
+
if (env2Display) {
|
|
528
|
+
return `${log_symbols_1.default.info} Comparison between app versions [${chalk_1.default.bold(input.version1)} in ${env1Display}] and [${chalk_1.default.bold(input.version2)} in ${env2Display}] is shown below:`;
|
|
529
|
+
}
|
|
530
|
+
return `${log_symbols_1.default.info} Comparison between app versions [${chalk_1.default.bold(input.version1)} and ${chalk_1.default.bold(input.version2)}] in [${env1Display}] is shown below:`;
|
|
525
531
|
}
|
|
526
532
|
}
|
|
527
533
|
},
|
|
@@ -704,17 +710,17 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
704
710
|
},
|
|
705
711
|
build: {
|
|
706
712
|
cmd: {
|
|
707
|
-
desc: 'build your app',
|
|
713
|
+
desc: '[Preview] build your app',
|
|
708
714
|
startNotice: `Building your app. \n${ctrlC}\n`,
|
|
709
715
|
start: 'Building your app...',
|
|
710
|
-
success: (buildTag) => `Build successful with build tag: ${buildTag}`
|
|
716
|
+
success: (buildTag) => `[Preview] Build successful with build tag: ${buildTag}`
|
|
711
717
|
},
|
|
712
718
|
buildTag: {
|
|
713
|
-
description: 'specify a custom build tag for build',
|
|
719
|
+
description: '[Preview] specify a custom build tag for build',
|
|
714
720
|
error: {
|
|
715
721
|
invalidBuildTag: (maxLength) => `Invalid build tag; tag must be ${maxLength} characters or less.`,
|
|
716
722
|
emptyBuildTag: 'Invalid build tag; tag cannot be empty.',
|
|
717
|
-
invalidBuildTagFormat: 'Invalid build tag;
|
|
723
|
+
invalidBuildTagFormat: 'Invalid build tag; tags are case-insensitive and must start with a letter or number and can only contain alphanumeric characters, underscores, hyphens, and periods.'
|
|
718
724
|
}
|
|
719
725
|
},
|
|
720
726
|
taskLint: {
|
|
@@ -726,18 +732,11 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
726
732
|
},
|
|
727
733
|
list: {
|
|
728
734
|
cmd: {
|
|
729
|
-
desc: 'list
|
|
735
|
+
desc: '[Preview] list builds for your app'
|
|
730
736
|
},
|
|
731
|
-
limit:
|
|
732
|
-
listingBuilds: 'Showing
|
|
737
|
+
limit: (defaultLimit) => `Specify the number of builds to show (default is ${defaultLimit})`,
|
|
738
|
+
listingBuilds: '[Preview] Showing builds for your app:',
|
|
733
739
|
noBuildsFound: 'No builds found.',
|
|
734
|
-
expires: (hours) => {
|
|
735
|
-
if (hours <= 24)
|
|
736
|
-
return chalk_1.default.red('in 24 hours');
|
|
737
|
-
if (hours <= 48)
|
|
738
|
-
return chalk_1.default.yellow('in 48 hours');
|
|
739
|
-
return `in ${Math.floor(hours / 24)} days`;
|
|
740
|
-
},
|
|
741
740
|
error: {
|
|
742
741
|
invalidLimit: 'Invalid limit; limit can only contain positive integers.'
|
|
743
742
|
}
|
|
@@ -749,10 +748,19 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
749
748
|
deploy: {
|
|
750
749
|
cmd: {
|
|
751
750
|
desc: 'deploy your app to an environment',
|
|
752
|
-
start1: (envKey, envType) =>
|
|
753
|
-
|
|
751
|
+
start1: (envKey, envType, buildTag) => {
|
|
752
|
+
const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
|
|
753
|
+
return `Deploying your app${buildTagText} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.\n${ctrlC}\n`;
|
|
754
|
+
},
|
|
755
|
+
start2: (appName, envKey, envType, buildTag) => {
|
|
756
|
+
const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
|
|
757
|
+
return `Deploying ${appName}${buildTagText} to ${exports.Text.env.displayEnvironment(envKey, envType)}...`;
|
|
758
|
+
},
|
|
754
759
|
success: 'Deployed\n',
|
|
755
|
-
successDetails: (appName, envKey, envType) =>
|
|
760
|
+
successDetails: (appName, envKey, envType, buildTag) => {
|
|
761
|
+
const buildTagText = buildTag ? ` using build with tag ${buildTag}` : '';
|
|
762
|
+
return `Deployed ${appName}${buildTagText} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.`;
|
|
763
|
+
},
|
|
756
764
|
distributePageLink: (appId) => `To install on a site that you're an admin of, run ${forge('install')}.\n` +
|
|
757
765
|
'To install on any other site, generate an installation link in the developer console and share it with the site admin: ' +
|
|
758
766
|
`https://developer.atlassian.com/console/myapps/${appId}/manage/distribution`
|
|
@@ -767,6 +775,9 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
767
775
|
hasNoAppInstallationsForEnv: {
|
|
768
776
|
hasNoAppInstallationsForEnvError: log_color_1.LogColor.error(`Error: The deployment failed due to errors while trying to determine if the app has any installations for the deployed environment.`)
|
|
769
777
|
},
|
|
778
|
+
environmentKey: {
|
|
779
|
+
missingEnvironmentKeyError: log_color_1.LogColor.error('Environment must be specified when deploying your app.')
|
|
780
|
+
},
|
|
770
781
|
majorVersion: {
|
|
771
782
|
description: 'specify a major version to update (Preview)',
|
|
772
783
|
warning: (majorVersion) => `${chalk_1.default.bold('Warning:')} You\'re about to deploy changes to major version ${majorVersion} of your app. All sites using version ${majorVersion} will automatically apply these changes.\n`,
|
|
@@ -774,7 +785,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
774
785
|
invalidMajorVersionError: 'Invalid major version number'
|
|
775
786
|
},
|
|
776
787
|
buildTag: {
|
|
777
|
-
description: 'specify a build tag to deploy (from forge build)'
|
|
788
|
+
description: '[Preview] specify a build tag to deploy (from forge build)'
|
|
778
789
|
},
|
|
779
790
|
connectKeyChange: {
|
|
780
791
|
continueChange: `Do you wish to continue with changing the Connect key?`,
|
|
@@ -843,7 +854,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
843
854
|
installConfirmation: (product, site) => `Installing your app onto ${product} on ${site}.\n${ctrlC}\n`,
|
|
844
855
|
bannerSite: `\nInstalling your app onto an Atlassian site.\n${ctrlC}\n`,
|
|
845
856
|
bannerWorkspace: `\nInstalling your app onto the selected workspace.\n${ctrlC}\n`,
|
|
846
|
-
devAppInstallWarning: `${chalk_1.default.bold('WARNING:')} You are about to
|
|
857
|
+
devAppInstallWarning: `${chalk_1.default.bold('WARNING:')} You are about to install a development app to a production site. If you do not intend to test your app, we strongly recommend that you deploy your app to production and install the production version instead.`,
|
|
847
858
|
devAppInstallConfirm: `Are you sure you want to proceed?`,
|
|
848
859
|
optionConfirmScopes: 'skip confirmation of scopes for the app before installing or upgrading the app',
|
|
849
860
|
optionUpgrade: 'upgrade an existing installation',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "6.11.0
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"generate-graphql-types": "graphql-codegen --config src/graphql/codegen.yml"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@forge/manifest": "9.3.0
|
|
16
|
-
"@forge/util": "1.4.
|
|
17
|
-
"@forge/i18n": "0.0.
|
|
15
|
+
"@forge/manifest": "9.3.0",
|
|
16
|
+
"@forge/util": "1.4.9",
|
|
17
|
+
"@forge/i18n": "0.0.6",
|
|
18
18
|
"@sentry/node": "7.106.0",
|
|
19
19
|
"adm-zip": "^0.5.10",
|
|
20
20
|
"array.prototype.flatmap": "^1.3.2",
|