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
* Fix unit test
* Show message that user can use forum or slack when manually setup is selected
* Fix message when nativescript-cloud extension is installed
Copy file name to clipboardExpand all lines: lib/services/platform-environment-requirements.ts
+20-27
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ export class PlatformEnvironmentRequirements implements IPlatformEnvironmentRequ
21
21
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}`;
22
22
privatestaticMISSING_LOCAL_SETUP_MESSAGE="Your environment is not configured properly and you will not be able to execute local builds.";
23
23
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} `;
24
+
privatestaticMISSING_LOCAL_BUT_CLOUD_SETUP_MESSAGE=`You have ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension installed but ${_.lowerFirst(PlatformEnvironmentRequirements.MISSING_LOCAL_SETUP_MESSAGE)}`;
24
25
privatestaticRUN_TNS_SETUP_MESSAGE='Run $ tns setup command to run the setup script to try to automatically configure your environment for local builds.';
return`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.`;
@@ -124,19 +121,19 @@ export class PlatformEnvironmentRequirements implements IPlatformEnvironmentRequ
124
121
return`Use the $ tns login command to log in with your account and then $ ${cloudCommandName.toLowerCase()}${platform.toLowerCase()} command.`;
this.fail(`To be able to build for ${platform}, verify that your environment is configured according to the system requirements described at ${this.$staticConfig.SYS_REQUIREMENTS_LINK}`);
this.fail(`To be able to ${platform ? `build for ${platform}` : 'build'}, verify that your environment is configured according to the system requirements described at ${this.$staticConfig.SYS_REQUIREMENTS_LINK}. In case you have any questions, you can check our forum: 'http://forum.nativescript.org' and our public Slack channel: 'https://nativescriptcommunity.slack.com/'.`);
constmessage=`The ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension is installed and you can ${_.lowerFirst(this.getCloudBuildsMessage(platform))}`;
0 commit comments