Skip to content

Commit d8088fa

Browse files
committed
Merge remote-tracking branch 'nativescript/main'
# Conflicts: # lib/commands/build.ts # package-lock.json # package.json # vendor/aab-tool/bundletool.jar # vendor/gradle-plugin/build.gradle
2 parents 8948c23 + e40a1b8 commit d8088fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1041
-501
lines changed

.github/workflows/codeql-advanced.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
# Initializes the CodeQL tools for scanning.
7272
- name: Initialize CodeQL
73-
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
73+
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
7474
with:
7575
languages: ${{ matrix.language }}
7676
build-mode: ${{ matrix.build-mode }}
@@ -98,6 +98,6 @@ jobs:
9898
exit 1
9999
100100
- name: Perform CodeQL Analysis
101-
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
101+
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
102102
with:
103103
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
- name: 'Checkout Repository'
2020
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.3.0
2121
- name: 'Dependency Review'
22-
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3
22+
uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a # v4.8.1

.github/workflows/npm_release_cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3232

33-
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
33+
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
3434
with:
3535
node-version: 22.14.0
3636

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ jobs:
6060
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6161
# format to the repository Actions tab.
6262
- name: "Upload artifact"
63-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
63+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6464
with:
6565
name: SARIF file
6666
path: results.sarif
6767
retention-days: 5
6868

6969
# Upload the results to GitHub's code scanning dashboard.
7070
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
71+
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
7272
with:
7373
sarif_file: results.sarif

docs/build-jekyll-md.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ set -e
44
rm -rf docs-cli
55
npm install --ignore-scripts
66

7-
grunt docs-jekyll
7+
npx grunt docs-jekyll
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<% if (isJekyll) { %>---
2+
title: ns config get
3+
position: 2
4+
---<% } %>
5+
6+
# ns config get
7+
8+
### Description
9+
10+
Prints the value for a specific key from the project's NativeScript configuration.
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
------|-------
16+
General | `$ ns config get <key>`
17+
18+
### Arguments
19+
20+
* `<key>` — The configuration key in dot-notation. Examples: `ios.id`, `android.codeCache`, `bundler`.
21+
22+
### Examples
23+
24+
* `$ ns config get ios.id`
25+
* `$ ns config get android.codeCache`
26+
* `$ ns config get bundler`
27+
28+
<% if(isHtml) { %>
29+
30+
### Related Commands
31+
32+
Command | Description
33+
----------|----------
34+
[config](config.html) | Lists all configuration values for the current project.
35+
[config set](config-set.html) | Sets the value for the specified configuration key.
36+
<% } %>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<% if (isJekyll) { %>---
2+
title: ns config set
3+
position: 3
4+
---<% } %>
5+
6+
# ns config set
7+
8+
### Description
9+
10+
Sets the value for a specific key in the project's NativeScript configuration.
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
------|-------
16+
General | `$ ns config set <key> <value>`
17+
18+
### Arguments
19+
20+
* `<key>` — The configuration key in dot-notation. Examples: `ios.id`, `android.codeCache`, `bundler`.
21+
* `<value>` — The value to set. Parsed as JSON when possible (e.g. `true`, `42`, `{ "foo": "bar" }`). Otherwise treated as a string.
22+
23+
### Examples
24+
25+
* `$ ns config set ios.id org.nativescript.myapp`
26+
* `$ ns config set android.codeCache true`
27+
* `$ ns config set bundler vite`
28+
29+
### Notes
30+
31+
* Setting whole objects is not supported. Update individual keys instead. For example, use:
32+
`$ ns config set android.codeCache true`
33+
34+
### Related Commands
35+
36+
Command | Description
37+
----------|----------
38+
[config](config.html) | Lists all configuration values for the current project.
39+
[config get](config-get.html) | Prints the value for the specified configuration key.
40+
<% } %>

docs/man_pages/config/config.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<% if (isJekyll) { %>---
2+
title: ns config
3+
position: 1
4+
---<% } %>
5+
6+
# ns config
7+
8+
### Description
9+
10+
View and manage your project's NativeScript configuration stored in `nativescript.config.(js|ts)` (or legacy `nsconfig.json`).
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
------|---------
16+
List all config | `$ ns config`
17+
Get a value | `$ ns config get <key>`
18+
Set a value | `$ ns config set <key> <value>`
19+
20+
### Examples
21+
22+
* `$ ns config` — prints all configuration values.
23+
* `$ ns config get ios.id` — prints the iOS bundle identifier.
24+
* `$ ns config set android.codeCache true` — enables Android V8 code cache.
25+
26+
### Notes
27+
28+
* Keys use dot-notation, for example: `ios.id`, `android.codeCache`, `bundler`.
29+
* Values are parsed as JSON when possible. Use quotes for strings with spaces.
30+
31+
<% if(isHtml) { %>
32+
33+
### Related Commands
34+
35+
Command | Description
36+
----------|----------
37+
[config get](config-get.html) | Prints the value for the specified configuration key.
38+
[config set](config-set.html) | Sets the value for the specified configuration key.
39+
<% } %>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<% if (isJekyll) { %>---
2+
title: ns hooks
3+
position: 1
4+
---<% } %>
5+
6+
# ns create
7+
8+
### Description
9+
10+
Manages lifecycle hooks from installed plugins.
11+
12+
### Commands
13+
14+
Usage | Synopsis
15+
---------|---------
16+
Install | `$ ns hooks install`
17+
List | `$ ns hooks list`
18+
Lock | `$ ns hooks lock`
19+
Verify | `$ ns hooks verify`
20+
21+
#### Install
22+
23+
Installs hooks from each installed plugin dependency.
24+
25+
#### List
26+
27+
Lists the plugins which have hooks and which scripts they install
28+
29+
#### Lock
30+
31+
Generates a `hooks-lock.json` containing the hooks that are in the current versions of the plugins.
32+
33+
#### Verify
34+
35+
Verifies that the hooks contained in the installed plugins match those listed in the `hooks-lock.json` file.

docs/man_pages/start.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Command | Description
5151
[plugin](lib-management/plugin.html) | Lets you manage the plugins for your project.
5252
[open](project/configuration/open.md) | Opens the native project in Xcode/Android Studio.
5353
[widget ios](project/configuration/widget.md) | Adds a new iOS widget to the project.
54+
[hooks](project/hooks/hooks.html) | Installs lifecycle hooks from plugins.
5455
## Publishing Commands
5556
Command | Description
5657
---|---

0 commit comments

Comments
 (0)