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
publicstaticSYNC_TO_PREVIEW_APP_OPTION_NAME="Sync to Playground";
18
26
publicstaticMANUALLY_SETUP_OPTION_NAME="Skip Step and Configure Manually";
19
27
privatestaticBOTH_CLOUD_SETUP_AND_LOCAL_SETUP_OPTION_NAME="Configure for Both Local and Cloud Builds";
20
28
privatestaticCHOOSE_OPTIONS_MESSAGE="To continue, choose one of the following options: ";
@@ -23,6 +31,8 @@ export class PlatformEnvironmentRequirements implements IPlatformEnvironmentRequ
23
31
privatestaticMISSING_LOCAL_AND_CLOUD_SETUP_MESSAGE=`You are missing the ${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
32
privatestaticMISSING_LOCAL_BUT_CLOUD_SETUP_MESSAGE=`You have ${NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension installed, so you can execute cloud builds, but ${_.lowerFirst(PlatformEnvironmentRequirements.MISSING_LOCAL_SETUP_MESSAGE)}`;
25
33
privatestaticRUN_TNS_SETUP_MESSAGE='Run $ tns setup command to run the setup script to try to automatically configure your environment for local builds.';
34
+
privatestaticSYNC_TO_PREVIEW_APP_MESSAGE=`Select "Sync to Playground" to enjoy NativeScript without any local setup. All you need is a couple of companion apps installed on you devices.`;
35
+
privatestaticRUN_PREVIEW_COMMAND_MESSAGE=`Run $ tns preview command to enjoy NativeScript without any local setup.`;
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/'.`);
160
190
}
@@ -177,12 +207,14 @@ export class PlatformEnvironmentRequirements implements IPlatformEnvironmentRequ
`Select "Configure for Cloud Builds" to install the ${NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension and automatically configure your environment for cloud builds.`,
202
236
`Select "Configure for Local Builds" to run the setup script and automatically configure your environment for local builds.`,
203
237
`Select "Configure for Both Local and Cloud Builds" to automatically configure your environment for both options.`,
Copy file name to clipboardExpand all lines: test/services/platform-environment-requirements.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ import { EOL } from "os";
7
7
constplatform="android";
8
8
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.`;
9
9
constmanuallySetupErrorMessage=`To be able to build for ${platform}, verify 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 .`;
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 preview command to enjoy NativeScript without any local setup.${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 preview command to enjoy NativeScript without any local setup.${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 .`;
assert.deepEqual("To continue, choose one of the following options: ",promptForChoiceData[0].message);
99
-
assert.deepEqual(['Configure for Cloud Builds','Configure for Local Builds','Configure for Both Local and Cloud Builds','Skip Step and Configure Manually'],promptForChoiceData[0].choices);
99
+
assert.deepEqual(['Sync to Playground','Configure for Cloud Builds','Configure for Local Builds','Configure for Both Local and Cloud Builds','Skip Step and Configure Manually'],promptForChoiceData[0].choices);
100
100
});
101
101
it("should show prompt when environment is not configured and nativescript-cloud extension is installed",async()=>{
assert.deepEqual("To continue, choose one of the following options: ",promptForChoiceData[0].message);
109
-
assert.deepEqual(['Try Cloud Operation','Configure for Local Builds','Skip Step and Configure Manually'],promptForChoiceData[0].choices);
109
+
assert.deepEqual(['Sync to Playground','Try Cloud Operation','Configure for Local Builds','Skip Step and Configure Manually'],promptForChoiceData[0].choices);
110
110
});
111
111
it("should skip env chech when NS_SKIP_ENV_CHECK environment variable is passed",async()=>{
0 commit comments