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
Fixes the behaviour of getting started when nativescript-cloud is already installed.
Fixes messages when console is non-interactive.
Add `In case you have any issues, you can ask in our forum.` message when env is not configured after setup script.
Refactor unit tests
publicstaticCLOUD_BUILDS_OPTION_NAME="Configure for Cloud Builds";
15
-
publicstaticSETUP_SCRIPT_OPTION_NAME="Configure for Local Builds";
14
+
publicstaticCLOUD_SETUP_OPTION_NAME="Configure for Cloud Builds";
15
+
publicstaticLOCAL_SETUP_OPTION_NAME="Configure for Local Builds";
16
16
publicstaticMANUALLY_SETUP_OPTION_NAME="Skip Step and Configure Manually";
17
-
privatestaticBOTH_CLOUD_BUILDS_AND_SETUP_SCRIPT_OPTION_NAME="Configure for Both Local and Cloud Builds";
17
+
privatestaticBOTH_CLOUD_SETUP_AND_LOCAL_SETUP_OPTION_NAME="Configure for Both Local and Cloud Builds";
18
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. 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.';
+`Select "Configure for Cloud Builds" to install the ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension and automatically configure your environment for cloud builds.`+EOL
40
-
+`Select "Configure for Local Builds" to run the setup script and automatically configure your environment for local builds.`
41
-
+`Select "Configure for Both Local and Cloud Builds" to automatically configure your environment for both options.`
42
-
+`Select "Skip Step and Configure Manually" to disregard these options and install any required components manually.`);
return`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: `+EOL
return`${PlatformEnvironmentRequirements.MISSING_LOCAL_SETUP_MESSAGE} To continue, choose one of the following options: `+EOL
140
136
+"Run $ tns setup command to run the setup script to try to automatically configure your environment for local builds."+EOL
141
-
+`Run $ tns cloud setup command to install the ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension to configure your environment for cloud builds.`+EOL
142
-
+`Verify that your environment is configured according to the system requirements described at ${this.$staticConfig.SYS_REQUIREMENTS_LINK}.`
137
+
+`${this.getCloudBuildsMessage(platform)}`+EOL
138
+
+`Verify that your environment is configured according to the system requirements described at ${this.$staticConfig.SYS_REQUIREMENTS_LINK}.`;
143
139
}
144
140
145
-
return`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
147
-
+`${this.getCloudBuildsMessage(platform)}`+EOL
143
+
+`Run $ tns cloud setup command to install the ${constants.NATIVESCRIPT_CLOUD_EXTENSION_NAME} extension to configure your environment for cloud builds.`+EOL
148
144
+`Verify that your environment is configured according to the system requirements described at ${this.$staticConfig.SYS_REQUIREMENTS_LINK}.`;
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.`;
0 commit comments