nativescript 8.6.0-vision.3 → 8.6.0-vision.5
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/README.md +1 -1
- package/docs/man_pages/cloud/cloud-setup.md +9 -9
- package/docs/man_pages/device/device-android.md +3 -3
- package/docs/man_pages/device/device-ios.md +5 -5
- package/docs/man_pages/device/device-list-applications.md +4 -4
- package/docs/man_pages/device/device-log.md +4 -4
- package/docs/man_pages/device/device-run.md +5 -5
- package/docs/man_pages/device/device.md +5 -5
- package/docs/man_pages/env-configuration/setup.md +3 -3
- package/docs/man_pages/general/autocomplete-disable.md +3 -3
- package/docs/man_pages/general/autocomplete-enable.md +3 -3
- package/docs/man_pages/general/autocomplete-status.md +3 -3
- package/docs/man_pages/general/autocomplete.md +6 -6
- package/docs/man_pages/general/error-reporting.md +3 -3
- package/docs/man_pages/general/extension-install.md +3 -3
- package/docs/man_pages/general/extension-uninstall.md +3 -3
- package/docs/man_pages/general/extension.md +3 -3
- package/docs/man_pages/general/help.md +6 -6
- package/docs/man_pages/general/info.md +3 -3
- package/docs/man_pages/general/migrate.md +3 -3
- package/docs/man_pages/general/package-manager-get.md +3 -3
- package/docs/man_pages/general/package-manager-set.md +3 -3
- package/docs/man_pages/general/package-manager.md +3 -3
- package/docs/man_pages/general/proxy-clear.md +3 -3
- package/docs/man_pages/general/proxy-set.md +3 -3
- package/docs/man_pages/general/proxy.md +3 -3
- package/docs/man_pages/general/update.md +5 -5
- package/docs/man_pages/general/usage-reporting.md +3 -3
- package/docs/man_pages/lib-management/plugin-add.md +4 -4
- package/docs/man_pages/lib-management/plugin-build.md +3 -3
- package/docs/man_pages/lib-management/plugin-create.md +7 -7
- package/docs/man_pages/lib-management/plugin-install.md +4 -4
- package/docs/man_pages/lib-management/plugin-remove.md +4 -4
- package/docs/man_pages/lib-management/plugin-update.md +3 -3
- package/docs/man_pages/lib-management/plugin.md +4 -4
- package/docs/man_pages/project/configuration/generate.md +3 -3
- package/docs/man_pages/project/configuration/install.md +6 -6
- package/docs/man_pages/project/configuration/platform-add.md +11 -11
- package/docs/man_pages/project/configuration/platform-clean.md +6 -6
- package/docs/man_pages/project/configuration/platform-remove.md +5 -5
- package/docs/man_pages/project/configuration/platform-update.md +11 -11
- package/docs/man_pages/project/configuration/platform.md +3 -3
- package/docs/man_pages/project/configuration/prepare.md +5 -5
- package/docs/man_pages/project/configuration/resources/resources-generate-icons.md +4 -4
- package/docs/man_pages/project/configuration/resources/resources-generate-splashes.md +4 -4
- package/docs/man_pages/project/configuration/resources/resources-update.md +5 -5
- package/docs/man_pages/project/creation/create.md +4 -4
- package/docs/man_pages/project/testing/build-android.md +4 -4
- package/docs/man_pages/project/testing/build-ios.md +6 -6
- package/docs/man_pages/project/testing/build.md +5 -5
- package/docs/man_pages/project/testing/debug-android.md +9 -9
- package/docs/man_pages/project/testing/debug-ios.md +11 -11
- package/docs/man_pages/project/testing/debug.md +4 -4
- package/docs/man_pages/project/testing/deploy.md +8 -8
- package/docs/man_pages/project/testing/dev-test-android.md +5 -5
- package/docs/man_pages/project/testing/dev-test-ios.md +7 -7
- package/docs/man_pages/project/testing/preview.md +4 -4
- package/docs/man_pages/project/testing/run-android.md +7 -7
- package/docs/man_pages/project/testing/run-ios.md +11 -11
- package/docs/man_pages/project/testing/run.md +7 -7
- package/docs/man_pages/project/testing/test-android.md +7 -7
- package/docs/man_pages/project/testing/test-init.md +3 -3
- package/docs/man_pages/project/testing/test-ios.md +9 -9
- package/docs/man_pages/project/testing/test.md +4 -4
- package/docs/man_pages/publishing/apple-login.md +3 -3
- package/docs/man_pages/publishing/appstore-upload.md +7 -7
- package/docs/man_pages/publishing/appstore.md +5 -5
- package/docs/man_pages/publishing/publish-ios.md +7 -7
- package/docs/man_pages/publishing/publish.md +6 -6
- package/docs/man_pages/start.md +2 -1
- package/lib/.d.ts +8 -0
- package/lib/bootstrap.js +4 -0
- package/lib/color.js +6 -1
- package/lib/commands/clean.js +4 -4
- package/lib/commands/run.js +7 -3
- package/lib/commands/start.js +33 -0
- package/lib/commands/typings.js +3 -3
- package/lib/common/definitions/config.d.ts +1 -0
- package/lib/common/definitions/key-commands.d.ts +61 -0
- package/lib/common/definitions/yok.d.ts +5 -0
- package/lib/common/header.js +30 -0
- package/lib/common/mobile/mobile-core/devices-service.js +11 -13
- package/lib/common/yok.js +25 -0
- package/lib/config.js +1 -0
- package/lib/controllers/migrate-controller.js +5 -5
- package/lib/controllers/prepare-controller.js +41 -4
- package/lib/controllers/run-controller.js +5 -0
- package/lib/definitions/livesync.d.ts +3 -0
- package/lib/definitions/prepare.d.ts +3 -0
- package/lib/definitions/project.d.ts +2 -0
- package/lib/definitions/run.d.ts +4 -1
- package/lib/definitions/start-service.d.ts +13 -0
- package/lib/helpers/key-command-helper.js +119 -0
- package/lib/helpers/livesync-command-helper.js +49 -18
- package/lib/key-commands/bootstrap.js +15 -0
- package/lib/key-commands/index.js +291 -0
- package/lib/services/android-plugin-build-service.js +6 -5
- package/lib/services/apple-portal/apple-portal-session-service.js +1 -1
- package/lib/services/build-artifacts-service.js +1 -1
- package/lib/services/ios-project-service.js +10 -10
- package/lib/services/livesync/android-livesync-tool.js +1 -1
- package/lib/services/plugins-service.js +2 -1
- package/lib/services/start-service.js +104 -0
- package/lib/services/webpack/webpack-compiler-service.js +9 -4
- package/node_modules/@npmcli/move-file/node_modules/mkdirp/CHANGELOG.md +15 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/README.md +6 -0
- package/node_modules/balanced-match/index.js +3 -0
- package/node_modules/balanced-match/package.json +3 -4
- package/node_modules/rimraf/CHANGELOG.md +65 -0
- package/node_modules/stringify-package/CHANGELOG.md +16 -0
- package/package.json +4 -3
- package/node_modules/balanced-match/.npmignore +0 -5
- /package/node_modules/{brace-expansion → rimraf/node_modules/brace-expansion}/LICENSE +0 -0
- /package/node_modules/{brace-expansion → rimraf/node_modules/brace-expansion}/README.md +0 -0
- /package/node_modules/{brace-expansion → rimraf/node_modules/brace-expansion}/index.js +0 -0
- /package/node_modules/{brace-expansion → rimraf/node_modules/brace-expansion}/package.json +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns usage-reporting
|
|
3
3
|
position: 17
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns usage-reporting
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ Configures anonymous usage reporting for the NativeScript CLI. All data gathered
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
------|-------
|
|
16
|
-
General | `$
|
|
16
|
+
General | `$ ns usage-reporting [<Command>]`
|
|
17
17
|
|
|
18
18
|
### Arguments
|
|
19
19
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns plugin add
|
|
3
3
|
position: 1
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns plugin add
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -14,8 +14,8 @@ position: 1
|
|
|
14
14
|
|
|
15
15
|
Usage | Synopsis
|
|
16
16
|
------|-------
|
|
17
|
-
General | `$
|
|
18
|
-
Alias | `$
|
|
17
|
+
General | `$ ns plugin add <Plugin>`
|
|
18
|
+
Alias | `$ ns plugin install <Plugin>`
|
|
19
19
|
|
|
20
20
|
### Arguments
|
|
21
21
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns plugin build
|
|
3
3
|
position: 8
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns plugin build
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ position: 8
|
|
|
14
14
|
|
|
15
15
|
Usage | Synopsis
|
|
16
16
|
------|-------
|
|
17
|
-
General | `$
|
|
17
|
+
General | `$ ns plugin build`
|
|
18
18
|
|
|
19
19
|
<% if(isHtml) { %>
|
|
20
20
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns plugin create
|
|
3
3
|
position: 1
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns plugin create
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -23,8 +23,8 @@ The project is setup for easy commit in Github, which is why the command will as
|
|
|
23
23
|
|
|
24
24
|
Usage | Synopsis
|
|
25
25
|
---|---
|
|
26
|
-
Create from the default plugin seed | `$
|
|
27
|
-
Create from a custom plugin seed | `$
|
|
26
|
+
Create from the default plugin seed | `$ ns plugin create <Plugin Repository Name> [--path <Directory>]`
|
|
27
|
+
Create from a custom plugin seed | `$ ns plugin create <Plugin Repository Name> [--path <Directory>] --template <Template>`
|
|
28
28
|
|
|
29
29
|
### Options
|
|
30
30
|
|
|
@@ -33,15 +33,15 @@ Create from a custom plugin seed | `$ tns plugin create <Plugin Repository Name>
|
|
|
33
33
|
* `--pluginName` - Used to set the default file and class names in the plugin source.
|
|
34
34
|
* `--includeTypeScriptDemo` - Specifies if TypeScript demo should be created. Default value is `y` (i.e. `demo` will be created), in case you do not want to create this demo, pass `--includeTypeScriptDemo=n`
|
|
35
35
|
* `--includeAngularDemo` - Specifies if Angular demo should be created. Default value is `y` (i.e. `demo-angular` will be created), in case you do not want to create this demo, pass `--includeAngularDemo=n`
|
|
36
|
-
* `--template` - Specifies the custom seed archive, which you want to use to create your plugin. If `--template` is not set, the NativeScript CLI creates the plugin from the default NativeScript Plugin Seed. `<Template>` can be a URL or a local path to a `.tar.gz` file with the contents of a seed repository.<% if(isHtml) { %> This must be a clone of the [NativeScript Plugin Seed](https://github.com/NativeScript/nativescript-plugin-seed) and must contain a `src` directory with a package.json file and a script at `src/scripts/postclone.js`. After the archive is extracted, the postclone script will be executed with the username (`gitHubUsername`) and plugin name (`pluginName`) parameters given to the `
|
|
36
|
+
* `--template` - Specifies the custom seed archive, which you want to use to create your plugin. If `--template` is not set, the NativeScript CLI creates the plugin from the default NativeScript Plugin Seed. `<Template>` can be a URL or a local path to a `.tar.gz` file with the contents of a seed repository.<% if(isHtml) { %> This must be a clone of the [NativeScript Plugin Seed](https://github.com/NativeScript/nativescript-plugin-seed) and must contain a `src` directory with a package.json file and a script at `src/scripts/postclone.js`. After the archive is extracted, the postclone script will be executed with the username (`gitHubUsername`) and plugin name (`pluginName`) parameters given to the `ns plugin create` command prompts. For more information, visit the default plugin seed repository and [examine the source script](https://github.com/NativeScript/nativescript-plugin-seed/blob/master/src/scripts/postclone.js) there. Examples:
|
|
37
37
|
|
|
38
38
|
* Using a local file:
|
|
39
39
|
|
|
40
|
-
`
|
|
40
|
+
`ns plugin create nativescript-testplugin --template ../seeds/seed1.tar.gz`
|
|
41
41
|
|
|
42
42
|
* Using a `.tar.gz` file from a tag called `v4.0` in a Github repository:
|
|
43
43
|
|
|
44
|
-
`
|
|
44
|
+
`ns plugin create nativescript-testplugin --template https://github.com/NativeScript/nativescript-plugin-seed/archive/v.4.0.tar.gz`<% } %>
|
|
45
45
|
|
|
46
46
|
### Arguments
|
|
47
47
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns plugin install
|
|
3
3
|
position: 3
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns plugin install
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -14,8 +14,8 @@ position: 3
|
|
|
14
14
|
|
|
15
15
|
Usage | Synopsis
|
|
16
16
|
------|-------
|
|
17
|
-
General | `$
|
|
18
|
-
Alias | `$
|
|
17
|
+
General | `$ ns plugin install <Plugin>`
|
|
18
|
+
Alias | `$ ns plugin add <Plugin>`
|
|
19
19
|
|
|
20
20
|
### Arguments
|
|
21
21
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns plugin remove
|
|
3
3
|
position: 4
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns plugin remove
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
10
10
|
<% if(isConsole) { %>Uninstalls a plugin by its name.<% } %>
|
|
11
|
-
<% if(isHtml) { %>Removes the specified plugin and its dependencies from the local `node_modules` folder and the `dependencies` section in `package.json`. This operation does not remove the plugin from the installed platforms and you need to run `$
|
|
11
|
+
<% if(isHtml) { %>Removes the specified plugin and its dependencies from the local `node_modules` folder and the `dependencies` section in `package.json`. This operation does not remove the plugin from the installed platforms and you need to run `$ ns prepare` to finish uninstalling the plugin.<% } %>
|
|
12
12
|
|
|
13
13
|
### Commands
|
|
14
14
|
|
|
15
15
|
Usage | Synopsis
|
|
16
16
|
------|-------
|
|
17
|
-
General | `$
|
|
17
|
+
General | `$ ns plugin remove <Plugin>`
|
|
18
18
|
|
|
19
19
|
### Arguments
|
|
20
20
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns plugin update
|
|
3
3
|
position: 7
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns plugin update
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ position: 7
|
|
|
14
14
|
|
|
15
15
|
Usage | Synopsis
|
|
16
16
|
------|-------
|
|
17
|
-
General | `$
|
|
17
|
+
General | `$ ns plugin update <Plugin(s)>`
|
|
18
18
|
|
|
19
19
|
### Arguments
|
|
20
20
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns plugin
|
|
3
3
|
position: 10
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns plugin
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,8 +13,8 @@ Lets you manage the plugins for your project.
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
---|---
|
|
16
|
-
List plugins | `$
|
|
17
|
-
Manage plugins | `$
|
|
16
|
+
List plugins | `$ ns plugin`
|
|
17
|
+
Manage plugins | `$ ns plugin <Command>`
|
|
18
18
|
|
|
19
19
|
### Arguments
|
|
20
20
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns generate
|
|
3
3
|
position: 9
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns generate
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ Modifies the project by executing a specified schematic to it.
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
------|-------
|
|
16
|
-
General | `$
|
|
16
|
+
General | `$ ns generate <Schematic Name> [--collection <Collection>] [option=value]`
|
|
17
17
|
|
|
18
18
|
### Options
|
|
19
19
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns install
|
|
3
3
|
position: 1
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns install
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
10
10
|
Installs all dependencies described in a valid `package.json` or installs a selected NativeScript development module as a dev dependency.
|
|
11
11
|
|
|
12
12
|
<% if(isHtml) { %>
|
|
13
|
-
The `package.json` file must be a valid `package.json` describing the configuration of a NativeScript project. If missing or corrupted, you can recreate the file by running `$
|
|
13
|
+
The `package.json` file must be a valid `package.json` describing the configuration of a NativeScript project. If missing or corrupted, you can recreate the file by running `$ ns init` in the directory of a NativeScript project.
|
|
14
14
|
<% } %>
|
|
15
15
|
|
|
16
16
|
### Commands
|
|
17
17
|
|
|
18
18
|
Usage | Synopsis
|
|
19
19
|
---|---
|
|
20
|
-
Install all dependencies | `$
|
|
21
|
-
Install a selected npm module | `$
|
|
22
|
-
Enable TypeScript support | `$
|
|
20
|
+
Install all dependencies | `$ ns install [--path]`
|
|
21
|
+
Install a selected npm module | `$ ns install <Module>`
|
|
22
|
+
Enable TypeScript support | `$ ns install typescript`
|
|
23
23
|
|
|
24
24
|
### Options
|
|
25
25
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns platform add
|
|
3
3
|
position: 2
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns platform add
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,10 +13,10 @@ Configures the current project to target the selected platform. <% if(isHtml) {
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
------|-------
|
|
16
|
-
Android latest runtime | `$
|
|
17
|
-
Android selected runtime | `$
|
|
18
|
-
<% if (isMacOS) { %>iOS latest runtime | `$
|
|
19
|
-
iOS selected runtime | `$
|
|
16
|
+
Android latest runtime | `$ ns platform add android [--framework-path <File Path>]`
|
|
17
|
+
Android selected runtime | `$ ns platform add android[@<Version>] [--framework-path <File Path>] `
|
|
18
|
+
<% if (isMacOS) { %>iOS latest runtime | `$ ns platform add ios [--framework-path <File Path>]`
|
|
19
|
+
iOS selected runtime | `$ ns platform add ios[@<Version>] [--framework-path <File Path>] `<% } %>
|
|
20
20
|
|
|
21
21
|
### Options
|
|
22
22
|
|
|
@@ -25,14 +25,14 @@ iOS selected runtime | `$ tns platform add ios[@<Version>] [--framework-path <Fi
|
|
|
25
25
|
### Arguments
|
|
26
26
|
|
|
27
27
|
* `<Version>` is any available version of the respective platform runtime published in npm. <% if(isHtml) { %>If `@<Version>` is not specified, the NativeScript CLI installs the latest stable runtime for the selected platform.
|
|
28
|
-
To list all available versions for Android, run `$ npm view
|
|
29
|
-
To list only experimental versions for Android, run `$ npm view
|
|
30
|
-
To list all available versions for iOS, run `$ npm view
|
|
31
|
-
To list only experimental versions for iOS, run `$ npm view
|
|
28
|
+
To list all available versions for Android, run `$ npm view @nativescript/android versions`
|
|
29
|
+
To list only experimental versions for Android, run `$ npm view @nativescript/android dist-tags`
|
|
30
|
+
To list all available versions for iOS, run `$ npm view @nativescript/ios versions`
|
|
31
|
+
To list only experimental versions for iOS, run `$ npm view @nativescript/ios dist-tags`
|
|
32
32
|
|
|
33
33
|
### Command Limitations
|
|
34
34
|
|
|
35
|
-
* You can run `$
|
|
35
|
+
* You can run `$ ns platform add ios` only on macOS systems.
|
|
36
36
|
|
|
37
37
|
### Related Commands
|
|
38
38
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns platform clean
|
|
3
3
|
position: 3
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns platform clean
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,8 +13,8 @@ Removes and adds the selected platform to the project currently targets. <% if(i
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
------|-------
|
|
16
|
-
<% if((isConsole && isMacOS) || isHtml) { %>General | `$
|
|
17
|
-
<% if(isConsole && (isLinux || isWindows)) { %>General | `$
|
|
16
|
+
<% if((isConsole && isMacOS) || isHtml) { %>General | `$ ns platform clean <Platform>`<% } %>
|
|
17
|
+
<% if(isConsole && (isLinux || isWindows)) { %>General | `$ ns platform clean android`<% } %>
|
|
18
18
|
|
|
19
19
|
<% if(isMacOS) { %>### Arguments
|
|
20
20
|
`<Platform>` is the target mobile platform that you want to clean in your project. You can set the following target platforms.
|
|
@@ -25,8 +25,8 @@ Usage | Synopsis
|
|
|
25
25
|
|
|
26
26
|
### Command Limitations
|
|
27
27
|
|
|
28
|
-
* You can run `$
|
|
29
|
-
* Clean command will not preserve your current installed platform version but will download and install latest platform version. If you are using clean with custom version of the runtime, specify the version in the command
|
|
28
|
+
* You can run `$ ns platform clean ios` only on macOS systems.
|
|
29
|
+
* Clean command will not preserve your current installed platform version but will download and install latest platform version. If you are using clean with custom version of the runtime, specify the version in the command `ns clean ios@2.1.0` or `ns clean ios --frameworkPath <path-to-tgz>`.
|
|
30
30
|
|
|
31
31
|
### Related Commands
|
|
32
32
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns platform remove
|
|
3
3
|
position: 4
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns platform remove
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -15,8 +15,8 @@ Removes the selected platform from the platforms that the project currently targ
|
|
|
15
15
|
|
|
16
16
|
Usage | Synopsis
|
|
17
17
|
------|-------
|
|
18
|
-
<% if((isConsole && isMacOS) || isHtml) { %>General | `$
|
|
19
|
-
<% if(isConsole && (isLinux || isWindows)) { %>General | `$
|
|
18
|
+
<% if((isConsole && isMacOS) || isHtml) { %>General | `$ ns platform remove <Platform>`<% } %>
|
|
19
|
+
<% if(isConsole && (isLinux || isWindows)) { %>General | `$ ns platform remove android`<% } %>
|
|
20
20
|
|
|
21
21
|
<% if(isMacOS) { %>### Arguments
|
|
22
22
|
`<Platform>` is the target mobile platform that you want to remove from your project. You can set the following target platforms.
|
|
@@ -27,7 +27,7 @@ Usage | Synopsis
|
|
|
27
27
|
|
|
28
28
|
### Command Limitations
|
|
29
29
|
|
|
30
|
-
* You can run `$
|
|
30
|
+
* You can run `$ ns platform remove ios` only on macOS systems.
|
|
31
31
|
|
|
32
32
|
### Related Commands
|
|
33
33
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns platform update
|
|
3
3
|
position: 5
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns platform update
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,10 +13,10 @@ Updates the NativeScript runtime for the specified platform. <% if(isMacOS) { %>
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
------|-------
|
|
16
|
-
Android latest runtime |`$
|
|
17
|
-
Android selected runtime | `$
|
|
18
|
-
<% if(isMacOS) { %>iOS latest runtime | `$
|
|
19
|
-
iOS selected runtime | `$
|
|
16
|
+
Android latest runtime |`$ ns platform update android`
|
|
17
|
+
Android selected runtime | `$ ns platform update android@<Version>`
|
|
18
|
+
<% if(isMacOS) { %>iOS latest runtime | `$ ns platform update ios`
|
|
19
|
+
iOS selected runtime | `$ ns platform update ios@<Version>` <% } %>
|
|
20
20
|
|
|
21
21
|
### Arguments
|
|
22
22
|
|
|
@@ -24,14 +24,14 @@ iOS selected runtime | `$ tns platform update ios@<Version>` <% } %>
|
|
|
24
24
|
* `android` - Updates the Android runtime.
|
|
25
25
|
* `ios` - Updates the iOS runtime.<% } %>
|
|
26
26
|
* `<Version>` is any available version of the respective platform runtime published in npm. <% if(isHtml) { %>If `@<Version>` is not specified, the NativeScript CLI installs the latest stable runtime for the selected platform.
|
|
27
|
-
To list all available versions for Android, run `$ npm view
|
|
28
|
-
To list only experimental versions for
|
|
29
|
-
To list all available versions for iOS, run `$ npm view
|
|
30
|
-
To list only experimental versions for
|
|
27
|
+
To list all available versions for Android, run `$ npm view @nativescript/android versions`
|
|
28
|
+
To list only experimental versions for Android, run `$ npm view @nativescript/android dist-tags`
|
|
29
|
+
To list all available versions for iOS, run `$ npm view @nativescript/ios versions`
|
|
30
|
+
To list only experimental versions for iOS, run `$ npm view @nativescript/ios dist-tags`
|
|
31
31
|
|
|
32
32
|
### Command Limitations
|
|
33
33
|
|
|
34
|
-
* You can run `$
|
|
34
|
+
* You can run `$ ns platform update ios` only on macOS systems.
|
|
35
35
|
|
|
36
36
|
### Related Commands
|
|
37
37
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns platform
|
|
3
3
|
position: 6
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns platform
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ Lists all platforms that the project currently targets. You can build and deploy
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
---|---
|
|
16
|
-
General | `$
|
|
16
|
+
General | `$ ns platform list`
|
|
17
17
|
|
|
18
18
|
<% if(isHtml) { %>
|
|
19
19
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns prepare
|
|
3
3
|
position: 7
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns prepare
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -19,7 +19,7 @@ When running this command the HMR (Hot Module Replacement) is not enabled by def
|
|
|
19
19
|
|
|
20
20
|
Usage | Synopsis
|
|
21
21
|
------|-------
|
|
22
|
-
<% if((isConsole && isMacOS) || isHtml) { %>General | `$
|
|
22
|
+
<% if((isConsole && isMacOS) || isHtml) { %>General | `$ ns prepare <Platform>`<% } %><% if(isConsole && (isLinux || isWindows)) { %>General | `$ ns prepare android`<% } %>
|
|
23
23
|
|
|
24
24
|
<% if(isMacOS) { %>### Arguments
|
|
25
25
|
`<Platform>` is the target mobile platform for which you want to prepare your project. You can set the following target platforms.
|
|
@@ -29,13 +29,13 @@ Usage | Synopsis
|
|
|
29
29
|
### Options
|
|
30
30
|
|
|
31
31
|
* `--hmr` - Enables the hot module replacement (HMR) feature.
|
|
32
|
-
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `
|
|
32
|
+
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `ns migrate`.
|
|
33
33
|
|
|
34
34
|
<% if(isHtml) { %>
|
|
35
35
|
|
|
36
36
|
### Command Limitations
|
|
37
37
|
|
|
38
|
-
* You can run `$
|
|
38
|
+
* You can run `$ ns prepare ios` only on macOS systems.
|
|
39
39
|
|
|
40
40
|
### Related Commands
|
|
41
41
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns resources generate icons
|
|
3
3
|
position: 11
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns resources generate icons
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,11 +13,11 @@ Generates all icons for Android and iOS platforms and places the generated image
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
------|-------
|
|
16
|
-
`$
|
|
16
|
+
`$ ns resources generate icons <Path to image>` | Generate all icons for Android and iOS based on the specified image.
|
|
17
17
|
|
|
18
18
|
### Options
|
|
19
19
|
|
|
20
|
-
* `--background` Sets the background color of the icon. When no color is specified, a default value of `transparent` is used. `<Color>` is a valid color and can be represented with string, like `white`, `black`, `blue`, or with HEX representation, for example `#FFFFFF`, `#000000`, `#0000FF`. NOTE: As the `#` is special symbol in some terminals, make sure to place the value in quotes, for example `$
|
|
20
|
+
* `--background` Sets the background color of the icon. When no color is specified, a default value of `transparent` is used. `<Color>` is a valid color and can be represented with string, like `white`, `black`, `blue`, or with HEX representation, for example `#FFFFFF`, `#000000`, `#0000FF`. NOTE: As the `#` is special symbol in some terminals, make sure to place the value in quotes, for example `$ ns resources generate icons ../myImage.png --background "#FF00FF"`.
|
|
21
21
|
|
|
22
22
|
### Arguments
|
|
23
23
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns resources generate splashes
|
|
3
3
|
position: 12
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns resources generate splashes
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,11 +13,11 @@ Generates all splashscreens for Android and iOS platforms and places the generat
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
------|-------
|
|
16
|
-
`$
|
|
16
|
+
`$ ns resources generate splashes <Path to image> [--background <Color>]` | Generate all splashscreens for Android and iOS based on the specified image.
|
|
17
17
|
|
|
18
18
|
### Options
|
|
19
19
|
|
|
20
|
-
* `--background` Sets the background color of the splashscreen. When no color is specified, a default value of `white` is used. `<Color>` is a valid color and can be represented with string, like `white`, `black`, `blue`, or with HEX representation, for example `#FFFFFF`, `#000000`, `#0000FF`. NOTE: As the `#` is special symbol in some terminals, make sure to place the value in quotes, for example `$
|
|
20
|
+
* `--background` Sets the background color of the splashscreen. When no color is specified, a default value of `white` is used. `<Color>` is a valid color and can be represented with string, like `white`, `black`, `blue`, or with HEX representation, for example `#FFFFFF`, `#000000`, `#0000FF`. NOTE: As the `#` is special symbol in some terminals, make sure to place the value in quotes, for example `$ ns resources generate splashes ../myImage.png --background "#FF00FF"`.
|
|
21
21
|
|
|
22
22
|
### Arguments
|
|
23
23
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns resources update
|
|
3
3
|
position: 10
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns resources update
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -17,12 +17,12 @@ Updates the App_Resources/<platform>'s internal folder structure to conform to t
|
|
|
17
17
|
|
|
18
18
|
Usage | Synopsis
|
|
19
19
|
------|-------
|
|
20
|
-
`$
|
|
21
|
-
`$
|
|
20
|
+
`$ ns resources update` | Defaults to executing `$ ns resources update android`. Updates the App_Resources/Android's folder structure.
|
|
21
|
+
`$ ns resources update android` | Updates the App_Resources/Android's folder structure.
|
|
22
22
|
|
|
23
23
|
### Command Limitations
|
|
24
24
|
|
|
25
|
-
* The command works only for the directory structure under `App_Resources/Android`. Running `$
|
|
25
|
+
* The command works only for the directory structure under `App_Resources/Android`. Running `$ ns resources-update ios` will have no effect.
|
|
26
26
|
|
|
27
27
|
### Related Commands
|
|
28
28
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns create
|
|
3
3
|
position: 1
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns create
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ Custom template | `$ ns create [<App Name>] [--path <Directory>] [--appid <App I
|
|
|
22
22
|
### Options
|
|
23
23
|
|
|
24
24
|
* `--path` - Specifies the directory where you want to create the project, if different from the current directory. `<Directory>` is the absolute path to an empty directory in which you want to create the project.
|
|
25
|
-
* `--appid` - Sets the application identifier of your project. `<App ID>` is the value of the application identifier and it must meet the specific requirements of each platform that you want to target. If not specified, the application identifier is set to `org.nativescript.<App name>`.<% if(isConsole) { %> For more information about the `<App ID>` requirements, run `$
|
|
25
|
+
* `--appid` - Sets the application identifier of your project. `<App ID>` is the value of the application identifier and it must meet the specific requirements of each platform that you want to target. If not specified, the application identifier is set to `org.nativescript.<App name>`.<% if(isConsole) { %> For more information about the `<App ID>` requirements, run `$ ns help create`.<% } %><% if(isHtml) { %> The application identifier must be a domain name in reverse. For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores in the strings of the reversed domain name, separated by a dot. Strings must be separated by a dot and must start with a letter. For example: `com.nativescript.My_Andro1d_App`. For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens in the strings of the reversed domain name. Strings must be separated by a dot. For example: `com.nativescript.My-i0s-App`.
|
|
26
26
|
* `--template` - Specifies a valid npm package which you want to use as a base to create your project. If `--template` is not set, the NativeScript CLI will ask you to pick one from a predefined list afterwards.<% if(isHtml) { %> If one or more application assets are missing from the `App_Resources` directory in the package, the CLI adds them using the assets available in the default hello-world template.<% } %> `<Template>` can be the name of a package in the npm registry, a local path or a GitHub URL to a directory, or a `.tar.gz` archive containing a `package.json` file. The contents of the package will be copied to the `app` directory of your project.<% } %>
|
|
27
27
|
* `--js`, `--javascript` - Sets the template for your project to the JavaScript template.
|
|
28
28
|
* `--ts`, `--tsc`, `--typescript` - Sets the template for your project to the TypeScript template.
|
|
@@ -31,7 +31,7 @@ Custom template | `$ ns create [<App Name>] [--path <Directory>] [--appid <App I
|
|
|
31
31
|
|
|
32
32
|
### Arguments
|
|
33
33
|
|
|
34
|
-
`<App Name>` is the name of project and must meet the requirements of each platform that you want to target. If not specified in the initial command, the NativeScript CLI will ask you for it afterwards.<% if(isConsole) { %> For more information about the `<App Name>` requirements, run `$
|
|
34
|
+
`<App Name>` is the name of project and must meet the requirements of each platform that you want to target. If not specified in the initial command, the NativeScript CLI will ask you for it afterwards.<% if(isConsole) { %> For more information about the `<App Name>` requirements, run `$ ns help create`.<% } %><% if(isHtml) { %> For projects that target Android, you can use uppercase or lowercase letters, numbers, and underscores. The name must start with a letter. For projects that target iOS, you can use uppercase or lowercase letters, numbers, and hyphens.
|
|
35
35
|
<% } %>
|
|
36
36
|
|
|
37
37
|
<% if(isHtml) { %>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<% if (isJekyll) { %>---
|
|
2
|
-
title:
|
|
2
|
+
title: ns build android
|
|
3
3
|
position: 1
|
|
4
4
|
---<% } %>
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# ns build android
|
|
7
7
|
|
|
8
8
|
### Description
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ Builds the project for Android and produces an APK that you can manually deploy
|
|
|
13
13
|
|
|
14
14
|
Usage | Synopsis
|
|
15
15
|
---|---
|
|
16
|
-
General | `$
|
|
16
|
+
General | `$ ns build android [--compileSdk <API Level>] [--key-store-path <File Path> --key-store-password <Password> --key-store-alias <Name> --key-store-alias-password <Password>] [--release] [--static-bindings] [--copy-to <File Path>] [--env.*]] [--aab]`
|
|
17
17
|
|
|
18
18
|
### Options
|
|
19
19
|
|
|
@@ -34,7 +34,7 @@ General | `$ tns build android [--compileSdk <API Level>] [--key-store-path <Fil
|
|
|
34
34
|
* `--env.sourceMap` - creates inline source maps.
|
|
35
35
|
* `--env.hiddenSourceMap` - creates sources maps in the root folder (useful for Crashlytics usage with bundled app in release).
|
|
36
36
|
* `--aab` - Specifies that the build will produce an Android App Bundle(`.aab`) file.
|
|
37
|
-
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `
|
|
37
|
+
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `ns migrate`.
|
|
38
38
|
* `--path <Directory>` - Specifies the directory that contains the project. If not set, the project is searched for in the current directory and all directories above it.
|
|
39
39
|
|
|
40
40
|
<% if(isHtml) { %>
|