nativescript 9.0.1 → 9.0.2

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 CHANGED
@@ -1,11 +1,6 @@
1
1
 
2
2
  <h1 id="nativescript-command-line-interface" align="center">
3
- <br>
4
- <a href="https://www.npmjs.com/package/nativescript"><img src="https://art.nativescript.org/logo/export/NativeScript_Logo_Wide_White_Blue_Rounded_Blue.svg" alt="Nativescript Logo" width="200"></a>
5
- <br>
6
- <br>
7
- NativeScript Command-Line Interface
8
- <br>
3
+ <a href="https://www.npmjs.com/package/nativescript"><img src="https://raw.githubusercontent.com/NativeScript/artwork/main/logo/export/NativeScript_Logo_Dark_Transparent.png" alt="Nativescript Logo" width="200"></a>
9
4
  </h1>
10
5
 
11
6
  <h4 align="center">The NativeScript CLI lets you create, build, and deploy <a href="https://docs.nativescript.org/" target="_blank">NativeScript</a> apps.</h4>
@@ -14,7 +9,11 @@
14
9
 
15
10
  ---
16
11
 
17
- [![nativescript -> npm](https://github.com/NativeScript/nativescript-cli/actions/workflows/npm_release_cli.yml/badge.svg)](https://github.com/NativeScript/nativescript-cli/actions/workflows/npm_release_cli.yml)
12
+ <p align="center">
13
+ <a href="https://www.npmjs.com/package/nativescript"><img src="https://img.shields.io/npm/v/nativescript.svg" alt="npm version"></a>
14
+ <a href="https://github.com/NativeScript/NativeScript/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="license"></a>
15
+ <a href="https://www.npmjs.com/package/nativescript"><img src="https://img.shields.io/npm/dm/nativescript.svg" alt="downloads"></a>
16
+ </p>
18
17
 
19
18
  Get it using: `npm install -g nativescript`
20
19
 
@@ -67,10 +66,7 @@ Some popular use cases:
67
66
  To learn more about NativeScript, you can check the following resources:
68
67
 
69
68
  * [The NativeScript web page][2]
70
- * [NativeScript - a Technical Overview][7]
71
- * [Announcing NativeScript - cross-platform framework for building native mobile applications][8]
72
- * The NativeScript [Documentation repo][3] and [Documentation portal][4]
73
- * [The NativeScript FAQ][6]
69
+ * The NativeScript [Documentation][4] and contributing to [docs via the repo](https://github.com/NativeScript/docs)
74
70
 
75
71
  [Back to Top][1]
76
72
 
@@ -104,9 +100,9 @@ System Requirements
104
100
 
105
101
  You can install and run the NativeScript CLI on Windows, macOS or Linux.
106
102
 
107
- * [Windows](https://docs.nativescript.org/start/ns-setup-win)
108
- * [macOS](https://docs.nativescript.org/start/ns-setup-os-x)
109
- * [Linux](https://docs.nativescript.org/start/ns-setup-linux)
103
+ * [Windows](https://docs.nativescript.org/setup/windows)
104
+ * [macOS](https://docs.nativescript.org/setup/macos)
105
+ * [Linux](https://docs.nativescript.org/setup/linux)
110
106
 
111
107
  Installation
112
108
  ===
@@ -224,14 +220,14 @@ The CLI places the project in a new directory in the current directory. The newl
224
220
 
225
221
  ```
226
222
  MyApp/
227
- ├── app
228
- ├── App_Resources
223
+ ├── App_Resources
224
+ ├── src
229
225
  │ └── ...
230
226
  └── platforms
231
227
  └── ...
232
228
  ```
233
229
 
234
- * The `app` directory is the **development space for your application**. You should modify all common and platform-specific code within this directory. When you run `prepare <Platform>`, the NativeScript CLI prepares relevant content to the platform-specific folders for each target platform.
230
+ * The `src` directory (or sometimes `app` folder) is the **development space for your application**. You should modify all common and platform-specific code within this directory. When you run `prepare <Platform>`, the NativeScript CLI prepares relevant content to the platform-specific folders for each target platform.
235
231
  * The `platforms` directory is created empty. When you add a target platform to your project, the NativeScript CLI creates a new subdirectory with the platform name. The subdirectory contains the ready-to-build resources of your app. When you run `prepare <Platform>`, the NativeScript CLI prepares relevant content from the `app` directory to the platform-specific subdirectory for each target platform.
236
232
 
237
233
  [Back to Top][1]
@@ -263,13 +259,13 @@ You can develop shared functionality or design in common files. To indicate that
263
259
 
264
260
  ### Modifying Configuration Files
265
261
 
266
- The NativeScript CLI respects any platform configuration files placed inside `app/App_Resources`.
262
+ The NativeScript CLI respects any platform configuration files placed inside `App_Resources`.
267
263
 
268
264
  ### Modifying Entitlements File (iOS only)
269
265
 
270
- To specify which capabilities are required by your App - Maps, Push Notifications, Wallet etc. you can add or edit the `app.entitlements` file placed inside `app/App_Resources/iOS`. When building the project, the default `app/App_Resources/iOS/app.entitlements` file gets merged with all Plugins entitlement files and a new `yourAppName.entitlements` is created in the platforms directory. The path would be `app/platforms/ios/<application name>/<application name>.entitlements` and will be linked in the `build.xcconfig` file.
266
+ To specify which capabilities are required by your App - Maps, Push Notifications, Wallet etc. you can add or edit the `app.entitlements` file placed inside `App_Resources/iOS`. When building the project, the default `App_Resources/iOS/app.entitlements` file gets merged with all Plugins entitlement files and a new `yourAppName.entitlements` is created in the platforms directory. The path would be `platforms/ios/<application name>/<application name>.entitlements` and will be linked in the `build.xcconfig` file.
271
267
 
272
- You can always override the generated entitlements file, by pointing to your own entitlements file by setting the `CODE_SIGN_ENTITLEMENTS` property in the `app/App_Resources/iOS/build.xcconfig` file.
268
+ You can always override the generated entitlements file, by pointing to your own entitlements file by setting the `CODE_SIGN_ENTITLEMENTS` property in the `App_Resources/iOS/build.xcconfig` file.
273
269
 
274
270
  [Back to Top][1]
275
271
 
@@ -314,11 +310,11 @@ ns run ios
314
310
  Extending the CLI
315
311
  ===
316
312
 
317
- The NativeScript CLI lets you extend its behavior and customize it to fit your needs by using [hooks](https://en.wikipedia.org/wiki/Hooking).
313
+ The NativeScript CLI lets you extend its behavior and customize it to fit your needs by using [hooks](https://docs.nativescript.org/guide/hooks).
318
314
 
319
315
  When you run one of the extendable commands (for example, `ns build`), the CLI checks for hooks and executes them. Plugins can also use hooks to control the compilation of the application package.
320
316
 
321
- For more information, see the [Extending the CLI document](https://github.com/NativeScript/nativescript-cli/blob/master/extending-cli.md)
317
+ For more information, see the [Extending the CLI document](https://github.com/NativeScript/nativescript-cli/blob/main/extending-cli.md)
322
318
 
323
319
  [Back to Top][1]
324
320
 
@@ -354,6 +350,7 @@ How to Build
354
350
  git clone https://github.com/NativeScript/nativescript-cli
355
351
  cd nativescript-cli
356
352
  npm run setup
353
+ npm run build
357
354
  ```
358
355
 
359
356
  To use the locally built CLI instead of `ns` you can call `PATH_TO_CLI_FOLDER/bin/ns`. For example:
@@ -379,7 +376,4 @@ This software is licensed under the Apache 2.0 license, quoted <a href="LICENSE"
379
376
  [2]: https://nativescript.org
380
377
  [3]: https://github.com/nativescript/docs
381
378
  [4]: https://docs.nativescript.org/
382
- [5]: https://docs.nativescript.org/api-reference
383
- [6]: https://www.nativescript.org/faq
384
- [7]: https://docs.nativescript.org/core-concepts/technical-overview
385
- [8]: https://www.telerik.com/blogs/announcing-nativescript---cross-platform-framework-for-building-native-mobile-applications
379
+ [5]: https://docs.nativescript.org/api/
@@ -270,7 +270,7 @@ class BundlerCompilerService extends events_1.EventEmitter {
270
270
  const envParams = isVite
271
271
  ? [
272
272
  `--mode=${prepareData.release ? "production" : "development"}`,
273
- `--watch`,
273
+ ...(prepareData.watch ? [`--watch`] : []),
274
274
  "--",
275
275
  ...cliArgs,
276
276
  ]
@@ -294,7 +294,7 @@ class BundlerCompilerService extends events_1.EventEmitter {
294
294
  args.push("--watch");
295
295
  }
296
296
  }
297
- const stdio = prepareData.watch || isVite ? ["ipc"] : "inherit";
297
+ const stdio = prepareData.watch ? ["ipc"] : "inherit";
298
298
  const options = {
299
299
  cwd: projectData.projectDir,
300
300
  stdio,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "main": "./lib/nativescript-cli-lib.js",
4
- "version": "9.0.1",
4
+ "version": "9.0.2",
5
5
  "author": "NativeScript <oss@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {
@@ -57,7 +57,7 @@
57
57
  "@foxt/js-srp": "0.0.3-patch2",
58
58
  "@nativescript/doctor": "2.0.17",
59
59
  "@nativescript/hook": "3.0.4",
60
- "@npmcli/arborist": "9.1.6",
60
+ "@npmcli/arborist": "9.1.8",
61
61
  "@rigor789/resolve-package-path": "1.0.7",
62
62
  "@nstudio/trapezedev-project": "7.2.3",
63
63
  "archiver": "7.0.1",
@@ -85,11 +85,11 @@
85
85
  "nativescript-dev-xcode": "0.8.1",
86
86
  "open": "8.4.2",
87
87
  "ora": "5.4.1",
88
- "pacote": "21.0.3",
88
+ "pacote": "21.0.4",
89
89
  "pbxproj-dom": "1.2.0",
90
90
  "plist": "3.1.0",
91
91
  "plist-merge-patch": "0.2.0",
92
- "prettier": "3.6.2",
92
+ "prettier": "3.7.3",
93
93
  "prompts": "2.4.2",
94
94
  "proper-lockfile": "4.1.2",
95
95
  "proxy-lib": "0.4.1",
@@ -118,7 +118,7 @@
118
118
  "@types/chai-as-promised": "8.0.2",
119
119
  "@types/color": "4.2.0",
120
120
  "@types/convert-source-map": "2.0.3",
121
- "@types/lodash": "4.17.20",
121
+ "@types/lodash": "4.17.21",
122
122
  "@types/marked-terminal": "^6.1.1",
123
123
  "@types/node": "^22.0.0",
124
124
  "@types/npmcli__arborist": "^6.3.0",
@@ -153,7 +153,7 @@
153
153
  "husky": "9.1.7",
154
154
  "istanbul": "0.4.5",
155
155
  "lint-staged": "~15.5.2",
156
- "mocha": "11.7.4",
156
+ "mocha": "11.7.5",
157
157
  "sinon": "19.0.5",
158
158
  "source-map-support": "0.5.21",
159
159
  "xml2js": ">=0.5.0"