Skip to content

Commit 03f7a78

Browse files
authored
feat: 8.7 updates (#231)
1 parent ff2b4ae commit 03f7a78

File tree

89 files changed

+502
-455
lines changed

Some content is hidden

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

89 files changed

+502
-455
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ To help the rest of the community review your change, please follow the instruct
99

1010
## PR Checklist
1111

12-
- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages.
12+
- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/main/CONTRIBUTING.md#commit-messages.
1313
- [ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
1414
- [ ] You have signed the [CLA](http://www.nativescript.org/cla).
15-
- [ ] All existing tests are passing: https://github.com/NativeScript/NativeScript/blob/master/DevelopmentWorkflow.md#running-unit-tests.
15+
- [ ] All existing tests are passing: https://github.com/NativeScript/NativeScript/blob/main/DevelopmentWorkflow.md#running-unit-tests.
1616

1717
## What is the current behavior?
1818
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

packages/template-blank-ng/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ns create my-blank-ng --template @nativescript/template-blank-ng
1010

1111
> Note: This command will create a new NativeScript app that uses the latest version of this template published to [npm](https://www.npmjs.com/package/@nativescript/template-blank-ng).
1212
13-
If you want to create a new app that uses the source of the template from the `master` branch, you can execute the following:
13+
If you want to create a new app that uses the source of the template from the `main` branch, you can execute the following:
1414

1515
```
1616
# clone nativescript-app-templates monorepo locally
@@ -20,7 +20,7 @@ git clone git@github.com:NativeScript/nativescript-app-templates.git
2020
ns create my-blank-ng --template nativescript-app-templates/packages/template-blank-ng
2121
```
2222

23-
**NB:** Please, have in mind that the master branch may refer to dependencies that are not on NPM yet!
23+
**NB:** Please, have in mind that the main branch may refer to dependencies that are not on NPM yet!
2424

2525
## Walkthrough
2626

packages/template-blank-ng/package.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"main": "src/main.ts",
44
"displayName": "Blank",
55
"templateType": "App template",
6-
"version": "8.6.0",
6+
"version": "8.7.0",
77
"description": "Blank template for NativeScript apps using Angular",
88
"author": "NativeScript Team <oss@nativescript.org>",
99
"license": "Apache-2.0",
@@ -39,26 +39,26 @@
3939
"url": "https://github.com/NativeScript/NativeScript/issues"
4040
},
4141
"dependencies": {
42-
"@angular/animations": "~16.2.0",
43-
"@angular/common": "~16.2.0",
44-
"@angular/compiler": "~16.2.0",
45-
"@angular/core": "~16.2.0",
46-
"@angular/forms": "~16.2.0",
47-
"@angular/platform-browser": "~16.2.0",
48-
"@angular/platform-browser-dynamic": "~16.2.0",
49-
"@angular/router": "~16.2.0",
50-
"@nativescript/angular": "^16.0.0",
51-
"@nativescript/core": "~8.6.0",
42+
"@angular/animations": "~17.3.0",
43+
"@angular/common": "~17.3.0",
44+
"@angular/compiler": "~17.3.0",
45+
"@angular/core": "~17.3.0",
46+
"@angular/forms": "~17.3.0",
47+
"@angular/platform-browser": "~17.3.0",
48+
"@angular/platform-browser-dynamic": "~17.3.0",
49+
"@angular/router": "~17.3.0",
50+
"@nativescript/angular": "^17.0.0",
51+
"@nativescript/core": "~8.7.0",
5252
"@nativescript/theme": "~3.0.2",
5353
"rxjs": "~7.8.0",
54-
"zone.js": "~0.13.0"
54+
"zone.js": "~0.14.0"
5555
},
5656
"devDependencies": {
57-
"@angular-devkit/build-angular": "~16.2.0",
58-
"@angular/compiler-cli": "~16.2.0",
59-
"@nativescript/types": "~8.6.0",
60-
"@nativescript/webpack": "~5.0.18",
61-
"@ngtools/webpack": "~16.2.0",
62-
"typescript": "~5.1.6"
57+
"@angular-devkit/build-angular": "~17.3.0",
58+
"@angular/compiler-cli": "~17.3.0",
59+
"@nativescript/types": "~8.7.0",
60+
"@nativescript/webpack": "~5.0.19",
61+
"@ngtools/webpack": "~17.3.0",
62+
"typescript": "~5.4.0"
6363
}
6464
}

packages/template-blank-react-vision/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/template-blank-react-vision",
3-
"version": "8.6.2",
3+
"version": "8.7.0",
44
"description": "Nativescript visionOS Starter with React",
55
"author": "Jamie Birch <14055146+shirakaba@users.noreply.github.com>",
66
"main": "src/app.ts",
@@ -41,18 +41,18 @@
4141
"Vision Pro"
4242
],
4343
"dependencies": {
44-
"@nativescript/core": "vision",
44+
"@nativescript/core": "~8.7.0",
4545
"react": "^18.2.0",
4646
"react-nativescript": "^5.0.0",
4747
"react-nativescript-navigation": "^5.0.0"
4848
},
4949
"devDependencies": {
50-
"@nativescript/tailwind": "^2.0.1",
51-
"@nativescript/types": "~8.6.0",
52-
"@nativescript/webpack": "vision",
50+
"@nativescript/tailwind": "^2.1.0",
51+
"@nativescript/types": "~8.7.0",
52+
"@nativescript/webpack": "~5.0.0",
5353
"@types/react": "npm:types-react-without-jsx-intrinsics@^18.0.17",
54-
"tailwindcss": "~3.2.0",
55-
"typescript": "~5.2.0"
54+
"tailwindcss": "~3.4.0",
55+
"typescript": "~5.4.0"
5656
},
5757
"gitHead": "1350d382fb4b0ed4c6e9685df909518b2688e004",
5858
"readme": "NativeScript Application"

packages/template-blank-react/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ns run ios
2121
> Note: This command will create a new NativeScript app that uses the latest version of this template published to [npm](https://www.npmjs.com/package/@nativescript/template-blank-react).
2222
2323

24-
**NB:** Please, keep in mind that the master branch may refer to dependencies that are not on NPM yet!
24+
**NB:** Please, keep in mind that the main branch may refer to dependencies that are not on NPM yet!
2525

2626
## Walkthrough
2727

packages/template-blank-react/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nativescript/template-blank-react",
3-
"version": "8.6.0",
3+
"version": "8.7.0",
44
"description": "Blank template for NativeScript apps using React.",
55
"author": "Jamie Birch <14055146+shirakaba@users.noreply.github.com>",
66
"main": "src/app.ts",
@@ -39,16 +39,16 @@
3939
"template"
4040
],
4141
"dependencies": {
42-
"@nativescript/core": "~8.6.0",
42+
"@nativescript/core": "~8.7.0",
4343
"react": "^18.2.0",
4444
"react-nativescript": "^5.0.0",
4545
"react-nativescript-navigation": "^5.0.0"
4646
},
4747
"devDependencies": {
48-
"@nativescript/types": "~8.6.0",
49-
"@nativescript/webpack": "~5.0.18",
48+
"@nativescript/types": "~8.7.0",
49+
"@nativescript/webpack": "~5.0.19",
5050
"@types/react": "npm:types-react-without-jsx-intrinsics@^18.0.17",
51-
"typescript": "~5.1.6"
51+
"typescript": "~5.4.0"
5252
},
5353
"gitHead": "1350d382fb4b0ed4c6e9685df909518b2688e004",
5454
"readme": "NativeScript Application"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

packages/template-blank-solid-vision/package.json

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nativescript/template-blank-solid-vision",
33
"main": "src/index.js",
4-
"version": "8.6.3",
4+
"version": "8.7.0",
55
"description": "Nativescript visionOS Starter with Solid",
66
"author": "NativeScript Team <oss@nativescript.org>",
77
"license": "Apache-2.0",
@@ -25,6 +25,7 @@
2525
"patches",
2626
"types",
2727
".editorconfig",
28+
".npmrc",
2829
"tailwind.config.js",
2930
"tsconfig.json",
3031
"webpack.config.js"
@@ -39,28 +40,28 @@
3940
"Vision Pro"
4041
],
4142
"dependencies": {
42-
"@nativescript-community/solid-js": "^0.0.4-alpha.5",
43-
"@nativescript-community/ui-collectionview": "^5.2.0",
44-
"@nativescript/core": "vision",
45-
"dominative": "^0.0.9-alpha.4",
43+
"@nativescript-community/solid-js": "^0.0.6",
44+
"@nativescript-community/ui-collectionview": "^5.3.0",
45+
"@nativescript/core": "~8.7.0",
46+
"dominative": "^0.1.3",
4647
"solid-js": "^1.7.12",
47-
"solid-navigation": "^1.0.0-alpha.8",
48-
"undom-ng": "^1.0.10"
48+
"solid-navigation": "^1.0.0-alpha.11",
49+
"undom-ng": "^1.1.2"
4950
},
5051
"devDependencies": {
5152
"@babel/core": "^7.22.10",
5253
"@babel/preset-env": "^7.20.2",
5354
"@babel/preset-typescript": "^7.22.5",
5455
"@nativescript-dom/core-types": "^1.0.29",
5556
"@nativescript-dom/solidjs-types": "^1.0.15",
56-
"@nativescript/tailwind": "^2.0.1",
57-
"@nativescript/webpack": "vision",
57+
"@nativescript/tailwind": "^2.1.0",
58+
"@nativescript/webpack": "~5.0.0",
5859
"babel": "^6.23.0",
5960
"babel-loader": "^9.1.3",
6061
"babel-preset-solid": "^1.7.12",
6162
"patch-package": "^8.0.0",
6263
"solid-refresh": "^0.5.3",
63-
"tailwindcss": "~3.2.0",
64-
"typescript": "~5.1.6"
64+
"tailwindcss": "~3.4.0",
65+
"typescript": "~5.4.0"
6566
}
6667
}
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# NativeScript
2+
hooks/
3+
node_modules/
4+
platforms/
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
# General
14+
.DS_Store
15+
.AppleDouble
16+
.LSOverride
17+
.idea
18+
.cloud
19+
.project
20+
tmp/
21+
typings/
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json

packages/template-blank-solid/.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# NativeScript with Solid Blank Template
2+
App templates help you jump start your native cross-platform apps with built-in UI elements and best practices. Save time writing boilerplate code over and over again when you create new apps.
3+
4+
## Quick Start
5+
Execute the following command to create an app from this template:
6+
7+
```
8+
ns create my-blank-solid --template @nativescript/template-blank-solid
9+
```
10+
11+
> Note: This command will create a new NativeScript app that uses the latest version of this template published to [npm](https://www.npmjs.com/package/@nativescript/template-blank-solid).
12+
13+
If you want to create a new app that uses the source of the template from the `main` branch, you can execute the following:
14+
15+
```
16+
# clone nativescript-app-templates monorepo locally
17+
git clone git@github.com:NativeScript/nativescript-app-templates.git
18+
19+
# create app template from local source (all templates are in the 'packages' subfolder of the monorepo)
20+
ns create my-blank-solid --template nativescript-app-templates/packages/template-blank-solid
21+
```
22+
23+
**NB:** Please, have in mind that the main branch may refer to dependencies that are not on NPM yet!
24+
25+
## Get Help
26+
The NativeScript framework has a vibrant community that can help when you run into problems.
27+
28+
Try [joining the NativeScript community Discord](https://nativescript.org/discord). The Discord channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers.
29+
30+
If you have found an issue with this template, please report the problem in the [NativeScript repository](https://github.com/NativeScript/NativeScript/issues).
31+
32+
## Contributing
33+
34+
We love PRs, and accept them gladly. Feel free to propose changes and new ideas. We will review and discuss, so that they can be accepted and better integrated.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { NativeScriptConfig } from '@nativescript/core';
2+
3+
export default {
4+
id: 'org.nativescript.app',
5+
appPath: 'src',
6+
appResourcesPath: 'App_Resources',
7+
android: {
8+
v8Flags: '--expose_gc',
9+
markingMode: 'none',
10+
},
11+
} as NativeScriptConfig;
+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "@nativescript/template-blank-solid",
3+
"main": "src/app.js",
4+
"version": "8.7.0",
5+
"description": "Nativescript Starter with Solid",
6+
"author": "NativeScript Team <oss@nativescript.org>",
7+
"license": "Apache-2.0",
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/NativeScript/nativescript-app-templates"
11+
},
12+
"homepage": "https://github.com/NativeScript/nativescript-app-templates",
13+
"bugs": {
14+
"url": "https://github.com/NativeScript/NativeScript/issues"
15+
},
16+
"publishConfig": {
17+
"access": "public"
18+
},
19+
"files": [
20+
"src",
21+
"App_Resources",
22+
"hooks",
23+
"tools",
24+
"!tools/assets",
25+
"patches",
26+
"types",
27+
".editorconfig",
28+
".npmrc",
29+
"tailwind.config.js",
30+
"tsconfig.json",
31+
"webpack.config.js"
32+
],
33+
"keywords": [
34+
"nativescript",
35+
"mobile",
36+
"{N}",
37+
"solid",
38+
"solidjs"
39+
],
40+
"scripts": {},
41+
"dependencies": {
42+
"@nativescript-community/solid-js": "^0.0.6",
43+
"@nativescript/core": "~8.7.0",
44+
"dominative": "^0.1.3",
45+
"solid-js": "^1.8.16",
46+
"undom-ng": "^1.1.2"
47+
},
48+
"devDependencies": {
49+
"@babel/core": "^7.24.4",
50+
"@babel/preset-env": "^7.24.4",
51+
"@babel/preset-typescript": "^7.24.1",
52+
"@nativescript/tailwind": "~2.1.0",
53+
"@nativescript/webpack": "~5.0.0",
54+
"babel": "^6.23.0",
55+
"babel-loader": "^9.1.3",
56+
"babel-preset-solid": "^1.8.8",
57+
"solid-refresh": "^0.7.5",
58+
"tailwindcss": "~3.4.3"
59+
}
60+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
.h-center {
6+
/* {N} specific css */
7+
horizontal-align: center;
8+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Application } from '@nativescript/core';
2+
import { render } from '@nativescript-community/solid-js';
3+
4+
import { App } from './app.jsx';
5+
6+
document.body.actionBarHidden = false;
7+
render(App, document.body);
8+
9+
const create = () => document;
10+
11+
Application.run({ create });

0 commit comments

Comments
 (0)