nativescript 8.6.0-vision.1 → 8.6.0-vision.3

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.
@@ -1 +1 @@
1
- {"@jsdevtools/coverage-istanbul-loader":"3.0.5","karma":"6.4.2","karma-coverage":"2.2.1","karma-nativescript-launcher":"0.4.0","mocha":"10.2.0","karma-mocha":"2.0.1","karma-chai":"0.1.0","karma-jasmine":"4.0.2","karma-qunit":"4.1.2","@types/karma-chai":"0.1.4","@types/mocha":"10.0.2","@types/jasmine":"4.3.6","@types/qunit":"2.19.6","nyc":"15.1.0"}
1
+ {"@jsdevtools/coverage-istanbul-loader":"3.0.5","karma":"6.4.2","karma-coverage":"2.2.1","karma-nativescript-launcher":"0.4.0","mocha":"10.2.0","karma-mocha":"2.0.1","karma-chai":"0.1.0","karma-jasmine":"4.0.2","karma-qunit":"4.1.2","@types/karma-chai":"0.1.4","@types/mocha":"10.0.2","@types/jasmine":"5.1.0","@types/qunit":"2.19.6","nyc":"15.1.0"}
@@ -65,6 +65,21 @@ class CreateProjectCommand {
65
65
  else if (this.$options.svelte) {
66
66
  selectedTemplate = constants.SVELTE_NAME;
67
67
  }
68
+ else if (this.$options["vision-ng"]) {
69
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-ng"];
70
+ }
71
+ else if (this.$options["vision-react"]) {
72
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-react"];
73
+ }
74
+ else if (this.$options["vision-solid"]) {
75
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-solid"];
76
+ }
77
+ else if (this.$options["vision-svelte"]) {
78
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-svelte"];
79
+ }
80
+ else if (this.$options["vision-vue"]) {
81
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-vue"];
82
+ }
68
83
  else {
69
84
  selectedTemplate = this.$options.template;
70
85
  }
@@ -222,6 +237,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
222
237
  value: "@nativescript/template-tab-navigation-ts",
223
238
  description: CreateProjectCommand.TabsTemplateDescription,
224
239
  },
240
+ {
241
+ key: CreateProjectCommand.BlankVisionTemplateKey,
242
+ value: "@nativescript/template-hello-world-ts-vision",
243
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
244
+ },
225
245
  ];
226
246
  return templates;
227
247
  }
@@ -242,6 +262,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
242
262
  value: "@nativescript/template-tab-navigation-ng",
243
263
  description: CreateProjectCommand.TabsTemplateDescription,
244
264
  },
265
+ {
266
+ key: CreateProjectCommand.BlankVisionTemplateKey,
267
+ value: "@nativescript/template-hello-world-ng-vision",
268
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
269
+ },
245
270
  ];
246
271
  return templates;
247
272
  }
@@ -252,6 +277,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
252
277
  value: constants.RESERVED_TEMPLATE_NAMES.react,
253
278
  description: CreateProjectCommand.HelloWorldTemplateDescription,
254
279
  },
280
+ {
281
+ key: CreateProjectCommand.BlankVisionTemplateKey,
282
+ value: "@nativescript/template-blank-react-vision",
283
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
284
+ },
255
285
  ];
256
286
  return templates;
257
287
  }
@@ -262,6 +292,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
262
292
  value: constants.RESERVED_TEMPLATE_NAMES.svelte,
263
293
  description: CreateProjectCommand.HelloWorldTemplateDescription,
264
294
  },
295
+ {
296
+ key: CreateProjectCommand.BlankVisionTemplateKey,
297
+ value: "@nativescript/template-blank-svelte-vision",
298
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
299
+ },
265
300
  ];
266
301
  return templates;
267
302
  }
@@ -287,6 +322,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
287
322
  value: "@nativescript/template-tab-navigation-vue",
288
323
  description: CreateProjectCommand.TabsTemplateDescription,
289
324
  },
325
+ {
326
+ key: CreateProjectCommand.BlankVisionTemplateKey,
327
+ value: "@nativescript/template-blank-vue-vision",
328
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
329
+ },
290
330
  ];
291
331
  return templates;
292
332
  }
@@ -296,6 +336,32 @@ can skip this prompt next time using the --template option, or the --ng, --react
296
336
  const relativePath = path.relative(process.cwd(), projectDir);
297
337
  const greyDollarSign = color_1.color.grey("$");
298
338
  this.$logger.clearScreen();
339
+ let runDebugNotes = [];
340
+ if (this.$options.vision ||
341
+ this.$options["vision-ng"] ||
342
+ this.$options["vision-react"] ||
343
+ this.$options["vision-solid"] ||
344
+ this.$options["vision-svelte"] ||
345
+ this.$options["vision-vue"]) {
346
+ runDebugNotes = [
347
+ `Run the project on Vision Pro with:`,
348
+ "",
349
+ ` ${greyDollarSign} ${color_1.color.green("ns run visionos --no-hmr")}`,
350
+ ];
351
+ }
352
+ else {
353
+ runDebugNotes = [
354
+ `Run the project on multiple devices:`,
355
+ "",
356
+ ` ${greyDollarSign} ${color_1.color.green("ns run ios")}`,
357
+ ` ${greyDollarSign} ${color_1.color.green("ns run android")}`,
358
+ "",
359
+ "Debug the project with Chrome DevTools:",
360
+ "",
361
+ ` ${greyDollarSign} ${color_1.color.green("ns debug ios")}`,
362
+ ` ${greyDollarSign} ${color_1.color.green("ns debug android")}`,
363
+ ];
364
+ }
299
365
  this.$logger.info([
300
366
  [
301
367
  color_1.color.green(`Project`),
@@ -305,15 +371,7 @@ can skip this prompt next time using the --template option, or the --ng, --react
305
371
  "",
306
372
  `Now you can navigate to your project with ${color_1.color.cyan(`cd ${relativePath}`)} and then:`,
307
373
  "",
308
- `Run the project on multiple devices:`,
309
- "",
310
- ` ${greyDollarSign} ${color_1.color.green("ns run ios")}`,
311
- ` ${greyDollarSign} ${color_1.color.green("ns run android")}`,
312
- "",
313
- "Debug the project with Chrome DevTools:",
314
- "",
315
- ` ${greyDollarSign} ${color_1.color.green("ns debug ios")}`,
316
- ` ${greyDollarSign} ${color_1.color.green("ns debug android")}`,
374
+ ...runDebugNotes,
317
375
  ``,
318
376
  `For more options consult the docs or run ${color_1.color.green("ns --help")}`,
319
377
  "",
@@ -325,6 +383,8 @@ CreateProjectCommand.BlankTemplateKey = "Blank";
325
383
  CreateProjectCommand.BlankTemplateDescription = "A blank app";
326
384
  CreateProjectCommand.BlankTsTemplateKey = "Blank Typescript";
327
385
  CreateProjectCommand.BlankTsTemplateDescription = "A blank typescript app";
386
+ CreateProjectCommand.BlankVisionTemplateKey = "visionOS";
387
+ CreateProjectCommand.BlankVisionTemplateDescription = "A visionOS app";
328
388
  CreateProjectCommand.HelloWorldTemplateKey = "Hello World";
329
389
  CreateProjectCommand.HelloWorldTemplateDescription = "A Hello World app";
330
390
  CreateProjectCommand.DrawerTemplateKey = "SideDrawer";
@@ -96,7 +96,6 @@ class RunIosCommand {
96
96
  if (!this.$platformValidationService.isPlatformSupportedForOS(this.platform, projectData)) {
97
97
  this.$errors.fail(`Applications for platform ${this.platform} can not be built on this OS`);
98
98
  }
99
- console.log("this.platform.toLowerCase()", this.platform.toLowerCase());
100
99
  const result = (yield this.runCommand.canExecute(args)) &&
101
100
  (yield this.$platformValidationService.validateOptions(this.$options.provision, this.$options.teamId, projectData, this.platform.toLowerCase()));
102
101
  return result;
package/lib/constants.js CHANGED
@@ -137,13 +137,19 @@ exports.RESERVED_TEMPLATE_NAMES = {
137
137
  default: "@nativescript/template-hello-world",
138
138
  javascript: "@nativescript/template-hello-world",
139
139
  tsc: "@nativescript/template-hello-world-ts",
140
+ vision: "@nativescript/template-hello-world-ts-vision",
140
141
  vue: "@nativescript/template-blank-vue",
142
+ "vision-vue": "@nativescript/template-blank-vue-vision",
141
143
  typescript: "@nativescript/template-hello-world-ts",
142
144
  ng: "@nativescript/template-hello-world-ng",
143
145
  angular: "@nativescript/template-hello-world-ng",
146
+ "vision-ng": "@nativescript/template-hello-world-ng-vision",
144
147
  react: "@nativescript/template-blank-react",
148
+ "vision-react": "@nativescript/template-blank-react-vision",
145
149
  reactjs: "@nativescript/template-blank-react",
150
+ "vision-solid": "@nativescript/template-blank-solid-vision",
146
151
  svelte: "@nativescript/template-blank-svelte",
152
+ "vision-svelte": "@nativescript/template-blank-svelte-vision",
147
153
  };
148
154
  exports.ANALYTICS_LOCAL_TEMPLATE_PREFIX = "localTemplate_";
149
155
  class ITMSConstants {
@@ -677,6 +677,12 @@ interface IOptions
677
677
  vue: boolean;
678
678
  vuejs: boolean;
679
679
  js: boolean;
680
+ vision: boolean;
681
+ "vision-ng": boolean;
682
+ "vision-react": boolean;
683
+ "vision-solid": boolean;
684
+ "vision-svelte": boolean;
685
+ "vision-vue": boolean;
680
686
  javascript: boolean;
681
687
  androidTypings: boolean;
682
688
  production: boolean; //npm flag
package/lib/options.js CHANGED
@@ -112,6 +112,11 @@ class Options {
112
112
  vue: { type: "boolean", hasSensitiveValue: false },
113
113
  vuejs: { type: "boolean", hasSensitiveValue: false },
114
114
  svelte: { type: "boolean", hasSensitiveValue: false },
115
+ "vision-ng": { type: "boolean", hasSensitiveValue: false },
116
+ "vision-react": { type: "boolean", hasSensitiveValue: false },
117
+ "vision-solid": { type: "boolean", hasSensitiveValue: false },
118
+ "vision-svelte": { type: "boolean", hasSensitiveValue: false },
119
+ "vision-vue": { type: "boolean", hasSensitiveValue: false },
115
120
  tsc: { type: "boolean", hasSensitiveValue: false },
116
121
  ts: { type: "boolean", hasSensitiveValue: false },
117
122
  typescript: { type: "boolean", hasSensitiveValue: false },
@@ -337,7 +342,8 @@ class Options {
337
342
  this.$settingsService.setSettings({
338
343
  profileDir: this.argv.profileDir,
339
344
  });
340
- this.argv.profileDir = this.argv["profile-dir"] = this.$settingsService.getProfileDir();
345
+ this.argv.profileDir = this.argv["profile-dir"] =
346
+ this.$settingsService.getProfileDir();
341
347
  if (this.argv.justlaunch) {
342
348
  this.argv.watch = false;
343
349
  }
@@ -411,7 +411,7 @@ class IOSProjectService extends projectServiceBaseLib.PlatformProjectServiceBase
411
411
  mergeInfoPlists(projectData, buildOptions) {
412
412
  return __awaiter(this, void 0, void 0, function* () {
413
413
  const projectDir = projectData.projectDir;
414
- const infoPlistPath = path.join(projectData.appResourcesDirectoryPath, this.$devicePlatformsConstants.iOS, this.getPlatformData(projectData).configurationFileName);
414
+ const infoPlistPath = path.join(projectData.appResourcesDirectoryPath, this.getPlatformData(projectData).normalizedPlatformName, this.getPlatformData(projectData).configurationFileName);
415
415
  this.ensureConfigurationFileInAppResources();
416
416
  const reporterTraceMessage = "Info.plist:";
417
417
  const reporter = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "preferGlobal": true,
4
- "version": "8.6.0-vision.1",
4
+ "version": "8.6.0-vision.3",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {
@@ -11,7 +11,7 @@ buildscript {
11
11
  def getDepPlatformDir = { dep ->
12
12
  file("${project.ext.USER_PROJECT_ROOT}/${project.ext.PLATFORMS_ANDROID}/${dep.directory}/$PLATFORMS_ANDROID")
13
13
  }
14
- def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "1.6.0" }
14
+ def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "1.8.20" }
15
15
  def kotlinVersion = computeKotlinVersion()
16
16
  repositories {
17
17
  google()
@@ -1,15 +0,0 @@
1
- # Changers Lorgs!
2
-
3
- ## 1.0
4
-
5
- Full rewrite. Essentially a brand new module.
6
-
7
- - Return a promise instead of taking a callback.
8
- - Use native `fs.mkdir(path, { recursive: true })` when available.
9
- - Drop support for outdated Node.js versions. (Technically still works on
10
- Node.js v8, but only 10 and above are officially supported.)
11
-
12
- ## 0.x
13
-
14
- Original and most widely used recursive directory creation implementation
15
- in JavaScript, dating back to 2010.
@@ -1,65 +0,0 @@
1
- # v3.0
2
-
3
- - Add `--preserve-root` option to executable (default true)
4
- - Drop support for Node.js below version 6
5
-
6
- # v2.7
7
-
8
- - Make `glob` an optional dependency
9
-
10
- # 2.6
11
-
12
- - Retry on EBUSY on non-windows platforms as well
13
- - Make `rimraf.sync` 10000% more reliable on Windows
14
-
15
- # 2.5
16
-
17
- - Handle Windows EPERM when lstat-ing read-only dirs
18
- - Add glob option to pass options to glob
19
-
20
- # 2.4
21
-
22
- - Add EPERM to delay/retry loop
23
- - Add `disableGlob` option
24
-
25
- # 2.3
26
-
27
- - Make maxBusyTries and emfileWait configurable
28
- - Handle weird SunOS unlink-dir issue
29
- - Glob the CLI arg for better Windows support
30
-
31
- # 2.2
32
-
33
- - Handle ENOENT properly on Windows
34
- - Allow overriding fs methods
35
- - Treat EPERM as indicative of non-empty dir
36
- - Remove optional graceful-fs dep
37
- - Consistently return null error instead of undefined on success
38
- - win32: Treat ENOTEMPTY the same as EBUSY
39
- - Add `rimraf` binary
40
-
41
- # 2.1
42
-
43
- - Fix SunOS error code for a non-empty directory
44
- - Try rmdir before readdir
45
- - Treat EISDIR like EPERM
46
- - Remove chmod
47
- - Remove lstat polyfill, node 0.7 is not supported
48
-
49
- # 2.0
50
-
51
- - Fix myGid call to check process.getgid
52
- - Simplify the EBUSY backoff logic.
53
- - Use fs.lstat in node >= 0.7.9
54
- - Remove gently option
55
- - remove fiber implementation
56
- - Delete files that are marked read-only
57
-
58
- # 1.0
59
-
60
- - Allow ENOENT in sync method
61
- - Throw when no callback is provided
62
- - Make opts.gently an absolute path
63
- - use 'stat' if 'lstat' is not available
64
- - Consistent error naming, and rethrow non-ENOENT stat errors
65
- - add fiber implementation
@@ -1,16 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
-
5
- <a name="1.0.1"></a>
6
- ## [1.0.1](https://github.com/npm/stringify-package/compare/v1.0.0...v1.0.1) (2019-09-30)
7
-
8
-
9
- ### Bug Fixes
10
-
11
- * strict comparison ([0c5675f](https://github.com/npm/stringify-package/commit/0c5675f)), closes [#2](https://github.com/npm/stringify-package/issues/2)
12
-
13
-
14
-
15
- <a name="1.0.0"></a>
16
- # 1.0.0 (2018-07-18)