nativescript 6.8.1-rc.1 → 6.8.1

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/PublicAPI.md CHANGED
@@ -4,7 +4,7 @@ Public API
4
4
  This document describes all methods that can be invoked when NativeScript CLI is required as library, i.e.
5
5
 
6
6
  ```JavaScript
7
- const ns = require("nativescript");
7
+ const tns = require("nativescript");
8
8
  ```
9
9
 
10
10
  # Contents
@@ -1 +1 @@
1
- {"karma":"5.1.1","karma-nativescript-launcher":"0.4.0","karma-webpack":"3.0.5","mocha":"8.1.0","karma-mocha":"2.0.1","karma-chai":"0.1.0","karma-jasmine":"3.3.1","karma-qunit":"4.1.1","@types/karma-chai":"0.1.2","@types/mocha":"8.0.1","@types/jasmine":"3.5.12","@types/qunit":"2.9.1"}
1
+ {"karma":"5.1.1","karma-nativescript-launcher":"0.4.0","karma-webpack":"3.0.5","mocha":"8.0.1","karma-mocha":"2.0.1","karma-chai":"0.1.0","karma-jasmine":"3.3.1","karma-qunit":"4.1.1","@types/karma-chai":"0.1.2","@types/mocha":"8.0.0","@types/jasmine":"3.5.11","@types/qunit":"2.9.1"}
@@ -53,7 +53,7 @@ The following dependencies will be updated if needed:
53
53
  * @angular-devkit/build-angular
54
54
  * rxjs
55
55
  * zone.js
56
- * @nativescript/unit-test-runner
56
+ * nativescript-unit-test-runner
57
57
  * karma-webpack
58
58
  * karma-jasmine
59
59
  * karma-mocha
@@ -7,7 +7,7 @@ position: 21
7
7
 
8
8
  ### Description
9
9
 
10
- Configures your project for unit testing with a selected framework. This operation installs the @nativescript/unit-test-runner npm module and its dependencies and creates a `tests` folder in the `app` directory.
10
+ Configures your project for unit testing with a selected framework. This operation installs the nativescript-unit-test-runner npm module and its dependencies and creates a `tests` folder in the `app` directory.
11
11
 
12
12
  ### Commands
13
13
 
@@ -227,7 +227,7 @@ can skip this prompt next time using the --template option, or the --ng, --react
227
227
  const { projectDir } = this.createdProjectData;
228
228
  const relativePath = path.relative(process.cwd(), projectDir);
229
229
  this.$logger.printMarkdown(`Now you can navigate to your project with \`$ cd ${relativePath}\``);
230
- this.$logger.printMarkdown(`After that you can preview it on device by executing \`$ ns preview\``);
230
+ this.$logger.printMarkdown(`After that you can preview it on device by executing \`$ tns preview\``);
231
231
  });
232
232
  }
233
233
  }
@@ -33,7 +33,7 @@ class ListPlatformsCommand {
33
33
  else {
34
34
  const formattedPlatformsList = helpers.formatListOfNames(this.$platformCommandHelper.getAvailablePlatforms(this.$projectData), "and");
35
35
  this.$logger.info("Available platforms for this OS: ", formattedPlatformsList);
36
- this.$logger.info("No installed platforms found. Use $ ns platform add");
36
+ this.$logger.info("No installed platforms found. Use $ tns platform add");
37
37
  }
38
38
  });
39
39
  }
@@ -24,7 +24,7 @@ class MigrateCommand {
24
24
  platforms: [this.$devicePlatformsConstants.Android, this.$devicePlatformsConstants.iOS]
25
25
  });
26
26
  if (!shouldMigrateResult) {
27
- this.$logger.printMarkdown('__Project is compatible with NativeScript "v6.0.0". To get the latest NativeScript packages execute "ns update".__');
27
+ this.$logger.printMarkdown('__Project is compatible with NativeScript "v6.0.0". To get the latest NativeScript packages execute "tns update".__');
28
28
  return;
29
29
  }
30
30
  yield this.$migrateController.migrate({
@@ -43,7 +43,7 @@ class PostInstallCliCommand {
43
43
  this.$logger.info("You have successfully installed the NativeScript CLI!".green.bold);
44
44
  this.$logger.info("");
45
45
  this.$logger.info("Your next step is to create a new project:");
46
- this.$logger.info("ns create".green.bold);
46
+ this.$logger.info("tns create".green.bold);
47
47
  this.$logger.info("");
48
48
  this.$logger.printMarkdown("New to NativeScript?".bold + " Try the tutorials in NativeScript Playground: `https://play.nativescript.org`");
49
49
  this.$logger.info("");
@@ -83,7 +83,7 @@ class TestInitCommand {
83
83
  }
84
84
  }
85
85
  }
86
- yield this.$pluginsService.add('@nativescript/unit-test-runner', this.$projectData);
86
+ yield this.$pluginsService.add('nativescript-unit-test-runner', this.$projectData);
87
87
  const testsDir = path.join(this.$projectData.appDirectoryPath, 'tests');
88
88
  const relativeTestsDir = path.relative(this.$projectData.projectDir, testsDir);
89
89
  let shouldCreateSampleTests = true;
@@ -107,7 +107,7 @@ class TestInitCommand {
107
107
  else {
108
108
  this.$logger.info(`\nPlace your test files under ${relativeTestsDir}`.yellow);
109
109
  }
110
- this.$logger.info('Run your tests using the "$ ns test <platform>" command.'.yellow);
110
+ this.$logger.info('Run your tests using the "$ tns test <platform>" command.'.yellow);
111
111
  });
112
112
  }
113
113
  }
@@ -71,7 +71,7 @@ class TestCommandBase {
71
71
  const canStartKarmaServer = yield this.$testExecutionService.canStartKarmaServer(this.$projectData);
72
72
  if (!canStartKarmaServer) {
73
73
  this.$errors.fail({
74
- formatStr: "Error: In order to run unit tests, your project must already be configured by running $ ns test init.",
74
+ formatStr: "Error: In order to run unit tests, your project must already be configured by running $ tns test init.",
75
75
  errorCode: 133
76
76
  });
77
77
  }
@@ -48,7 +48,7 @@ class UpdateCommand {
48
48
  });
49
49
  }
50
50
  }
51
- UpdateCommand.SHOULD_MIGRATE_PROJECT_MESSAGE = 'This project is not compatible with the current NativeScript version and cannot be updated. Use "ns migrate" to make your project compatible.';
51
+ UpdateCommand.SHOULD_MIGRATE_PROJECT_MESSAGE = 'This project is not compatible with the current NativeScript version and cannot be updated. Use "tns migrate" to make your project compatible.';
52
52
  UpdateCommand.PROJECT_UP_TO_DATE_MESSAGE = 'This project is up to date.';
53
53
  exports.UpdateCommand = UpdateCommand;
54
54
  $injector.registerCommand("update", UpdateCommand);
@@ -16,7 +16,7 @@ class PostInstallCommand {
16
16
  }
17
17
  execute(args) {
18
18
  return __awaiter(this, void 0, void 0, function* () {
19
- this.$errors.fail("This command is deprecated. Use `ns dev-post-install-cli` instead");
19
+ this.$errors.fail("This command is deprecated. Use `tns dev-post-install-cli` instead");
20
20
  });
21
21
  }
22
22
  }
package/lib/constants.js CHANGED
@@ -25,7 +25,7 @@ exports.NODE_MODULE_CACHE_PATH_KEY_NAME = "node-modules-cache-path";
25
25
  exports.DEFAULT_APP_IDENTIFIER_PREFIX = "org.nativescript";
26
26
  exports.LIVESYNC_EXCLUDED_DIRECTORIES = ["app_resources"];
27
27
  exports.TESTING_FRAMEWORKS = ['jasmine', 'mocha', 'qunit'];
28
- exports.TEST_RUNNER_NAME = "@nativescript/unit-test-runner";
28
+ exports.TEST_RUNNER_NAME = "nativescript-unit-test-runner";
29
29
  exports.LIVESYNC_EXCLUDED_FILE_PATTERNS = ["**/*.js.map", "**/*.ts"];
30
30
  exports.XML_FILE_EXTENSION = ".xml";
31
31
  exports.PLATFORMS_DIR_NAME = "platforms";
@@ -61,9 +61,9 @@ class MigrateController extends update_controller_base_1.UpdateControllerBase {
61
61
  { packageName: "nativescript-permissions", verifiedVersion: "1.3.0" },
62
62
  { packageName: "nativescript-cardview", verifiedVersion: "3.2.0" },
63
63
  {
64
- packageName: "@nativescript/unit-test-runner", verifiedVersion: "1.0.0",
64
+ packageName: "nativescript-unit-test-runner", verifiedVersion: "0.7.0",
65
65
  shouldMigrateAction: (projectData, allowInvalidVersions) => __awaiter(this, void 0, void 0, function* () {
66
- const dependency = { packageName: "@nativescript/unit-test-runner", verifiedVersion: "1.0.0", isDev: false };
66
+ const dependency = { packageName: "nativescript-unit-test-runner", verifiedVersion: "0.7.0", isDev: false };
67
67
  const result = this.hasDependency(dependency, projectData) && (yield this.shouldMigrateDependencyVersion(dependency, projectData, allowInvalidVersions));
68
68
  return result;
69
69
  }),
@@ -79,7 +79,7 @@ class TestExecutionService {
79
79
  canStartKarmaServer(projectData) {
80
80
  return __awaiter(this, void 0, void 0, function* () {
81
81
  let canStartKarmaServer = true;
82
- const requiredDependencies = ["karma", "@nativescript/unit-test-runner"];
82
+ const requiredDependencies = ["karma", "nativescript-unit-test-runner"];
83
83
  _.each(requiredDependencies, (dep) => {
84
84
  if (!projectData.dependencies[dep] && !projectData.devDependencies[dep]) {
85
85
  canStartKarmaServer = false;
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "preferGlobal": true,
4
- "version": "6.8.1-rc.1",
4
+ "version": "6.8.1",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {
8
8
  "tns": "./bin/tns",
9
9
  "nativescript": "./bin/tns",
10
- "nsc": "./bin/tns",
11
- "ns": "./bin/tns"
10
+ "nsc": "./bin/tns"
12
11
  },
13
12
  "main": "./lib/nativescript-cli-lib.js",
14
13
  "scripts": {
@@ -41,7 +40,7 @@
41
40
  "byline": "4.2.1",
42
41
  "chalk": "1.1.0",
43
42
  "chokidar": "2.0.4",
44
- "cli-table": "https://github.com/telerik/cli-table/tarball/v0.3.1.2",
43
+ "cli-table": "https://github.com/telerik-boneyard/cli-table/tarball/v0.3.1.2",
45
44
  "color": "3.0.0",
46
45
  "colors": "1.1.2",
47
46
  "convert-source-map": "1.6.0",
package/bin/ns DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- require("./tns");
package/bin/ns.js DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- require("./tns");