You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/services/platform-environment-requirements.ts
+43-30
Original file line number
Diff line number
Diff line change
@@ -15,10 +15,11 @@ export class PlatformEnvironmentRequirements implements IPlatformEnvironmentRequ
15
15
publicstaticLOCAL_SETUP_OPTION_NAME="Configure for Local Builds";
16
16
publicstaticMANUALLY_SETUP_OPTION_NAME="Skip Step and Configure Manually";
17
17
privatestaticBOTH_CLOUD_SETUP_AND_LOCAL_SETUP_OPTION_NAME="Configure for Both Local and Cloud Builds";
18
-
privatestaticNOT_CONFIGURED_ENV_MESSAGE="To continue, choose one of the following options: ";
19
-
privatestaticNOT_CONFIGURED_ENV_AFTER_SETUP_SCRIPT_MESSAGE="The setup script was not able to configure your environment for local builds. To execute local builds, you have to set up your environment manually. In case you have any issues, you can ask in our forum. To continue, choose one of the following options:";
20
-
privatestaticMISSING_LOCAL_AND_CLOUD_SETUP_MESSAGE=`You are missing the ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension and you will not be able to execute cloud builds. Your environment is not configured properly and you will not be able to execute local builds. To continue, choose one of the following options: `;
21
-
privatestaticMISSING_LOCAL_SETUP_MESSAGE='Your environment is not configured properly and you will not be able to execute local builds.';
18
+
privatestaticCHOOSE_OPTIONS_MESSAGE="To continue, choose one of the following options: ";
19
+
privatestaticNOT_CONFIGURED_ENV_AFTER_SETUP_SCRIPT_MESSAGE=`The setup script was not able to configure your environment for local builds. To execute local builds, you have to set up your environment manually. In case you have any questions, you can check our forum: 'http://forum.nativescript.org' and our public Slack channel: 'https://nativescriptcommunity.slack.com/'. ${PlatformEnvironmentRequirements.CHOOSE_OPTIONS_MESSAGE}`;
20
+
privatestaticMISSING_LOCAL_SETUP_MESSAGE="Your environment is not configured properly and you will not be able to execute local builds.";
21
+
privatestaticMISSING_LOCAL_AND_CLOUD_SETUP_MESSAGE=`You are missing the ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension and you will not be able to execute cloud builds. ${PlatformEnvironmentRequirements.MISSING_LOCAL_SETUP_MESSAGE}${PlatformEnvironmentRequirements.CHOOSE_OPTIONS_MESSAGE} `;
22
+
privatestaticRUN_TNS_SETUP_MESSAGE='Run $ tns setup command to run the setup script to try to automatically configure your environment for local builds.';
+"Run $ tns setup command to run the setup script to try to automatically configure your environment for local builds."+EOL
143
-
+`Run $ tns cloud setup command to install the ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension to configure your environment for cloud builds.`+EOL
144
-
+`Verify that your environment is configured according to the system requirements described at ${this.$staticConfig.SYS_REQUIREMENTS_LINK}.`;
`Run $ tns cloud setup command to install the ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension to configure your environment for cloud builds.`,
constmessage=`The ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension is installed and you can ${_.lowerFirst(this.getCloudBuildsMessage(platform))}`;
150
-
151
-
return`${message.bold}`+EOL
152
-
+`${PlatformEnvironmentRequirements.MISSING_LOCAL_SETUP_MESSAGE} To continue, choose one of the following options: `+EOL
153
-
+`Select "Configure for Local Builds" to run the setup script and automatically configure your environment for local builds.`+EOL
154
-
+`Select "Skip Step and Configure Manually" to disregard this option and install any required components manually.`;
+`Select "Configure for Cloud Builds" to install the ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension and automatically configure your environment for cloud builds.`+EOL
159
-
+`Select "Configure for Local Builds" to run the setup script and automatically configure your environment for local builds.`
160
-
+`Select "Configure for Both Local and Cloud Builds" to automatically configure your environment for both options.`
161
-
+`Select "Skip Step and Configure Manually" to disregard these options and install any required components manually.`;
151
+
constmessage=`The ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension is installed and you can ${_.lowerFirst(this.getCloudBuildsMessage(platform))}`;
`Select "Configure for Cloud Builds" to install the ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension and automatically configure your environment for cloud builds.`,
163
+
`Select "Configure for Local Builds" to run the setup script and automatically configure your environment for local builds.`,
164
+
`Select "Configure for Both Local and Cloud Builds" to automatically configure your environment for both options.`,
165
+
`Select "Configure for Both Local and Cloud Builds" to automatically configure your environment for both options.`
166
+
]);
162
167
}
163
168
164
169
privatepromptForChoice(): Promise<string>{
@@ -172,7 +177,15 @@ export class PlatformEnvironmentRequirements implements IPlatformEnvironmentRequ
constcloudBuildsErrorMessage=`In order to test your application use the $ tns login command to log in with your account and then $ tns cloud build command to build your app in the cloud.`;
8
9
constmanuallySetupErrorMessage=`To be able to build for ${platform}, verify that your environment is configured according to the system requirements described at `;
9
-
constnonInteractiveConsoleMessageWhenExtensionIsNotInstalled=`You are missing the nativescript-cloud extension and you will not be able to execute cloud builds. Your environment is not configured properly and you will not be able to execute local builds. To continue, choose one of the following options: \nRun $ tns setup command to run the setup script to try to automatically configure your environment for local builds.\nRun $ tns cloud setup command to install the nativescript-cloud extension to configure your environment for cloud builds.\nVerify that your environment is configured according to the system requirements described at `;
10
-
constnonInteractiveConsoleMessageWhenExtensionIsInstalled=`Your environment is not configured properly and you will not be able to execute local builds. To continue, choose one of the following options: \nRun $ tns setup command to run the setup script to try to automatically configure your environment for local builds.\nIn order to test your application use the $ tns login command to log in with your account and then $ tns cloud build command to build your app in the cloud.\nVerify that your environment is configured according to the system requirements described at .`;
10
+
constnonInteractiveConsoleMessageWhenExtensionIsNotInstalled=`You are missing the nativescript-cloud extension and you will not be able to execute cloud builds. Your environment is not configured properly and you will not be able to execute local builds. To continue, choose one of the following options: ${EOL}Run $ tns setup command to run the setup script to try to automatically configure your environment for local builds.${EOL}Run $ tns cloud setup command to install the nativescript-cloud extension to configure your environment for cloud builds.${EOL}Verify that your environment is configured according to the system requirements described at `;
11
+
constnonInteractiveConsoleMessageWhenExtensionIsInstalled=`Your environment is not configured properly and you will not be able to execute local builds. To continue, choose one of the following options: ${EOL}Run $ tns setup command to run the setup script to try to automatically configure your environment for local builds.${EOL}In order to test your application use the $ tns login command to log in with your account and then $ tns cloud build command to build your app in the cloud.${EOL}Verify that your environment is configured according to the system requirements described at .`;
0 commit comments