Skip to content

Commit 87e0d33

Browse files
authored
feat(core): {N} 7.0.0 (#164)
1 parent d334116 commit 87e0d33

File tree

1,238 files changed

+541
-1114
lines changed

Some content is hidden

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

1,238 files changed

+541
-1114
lines changed

packages/template-blank-ng/nsconfig.json

-4
This file was deleted.
+23-29
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
{
2-
"nativescript": {
3-
"id": "org.nativescript.Blank",
4-
"templateVersion": "v2",
5-
"tns-android": {
6-
"version": "6.5.0"
7-
},
8-
"tns-ios": {
9-
"version": "6.5.0"
10-
}
11-
},
12-
"name": "tns-template-blank-ng",
2+
"name": "@nativescript/template-blank-ng",
3+
"main": "main.js",
134
"displayName": "Blank",
145
"templateType": "App template",
15-
"version": "6.5.4",
6+
"version": "7.0.0",
167
"description": "Blank template for NativeScript apps using Angular",
17-
"author": "NativeScript Team <[email protected]>",
8+
"author": "NativeScript Team <[email protected]>",
189
"license": "Apache-2.0",
10+
"publishConfig": {
11+
"access": "public"
12+
},
1913
"keywords": [
2014
"nstudio",
2115
"nativescript",
@@ -35,25 +29,25 @@
3529
"url": "https://github.com/NativeScript/NativeScript/issues"
3630
},
3731
"dependencies": {
38-
"@angular/animations": "~8.2.0",
39-
"@angular/common": "~8.2.0",
40-
"@angular/compiler": "~8.2.0",
41-
"@angular/core": "~8.2.0",
42-
"@angular/forms": "~8.2.0",
43-
"@angular/platform-browser": "~8.2.0",
44-
"@angular/platform-browser-dynamic": "~8.2.0",
45-
"@angular/router": "~8.2.0",
32+
"@angular/animations": "~10.0.0",
33+
"@angular/common": "~10.0.0",
34+
"@angular/compiler": "~10.0.0",
35+
"@angular/core": "~10.0.0",
36+
"@angular/forms": "~10.0.0",
37+
"@angular/platform-browser": "~10.0.0",
38+
"@angular/platform-browser-dynamic": "~10.0.0",
39+
"@angular/router": "~10.0.0",
40+
"@nativescript/core": "~7.0.0",
4641
"@nativescript/theme": "~2.3.0",
47-
"nativescript-angular": "~8.21.0",
42+
"@nativescript/angular": "~10.0.0",
4843
"reflect-metadata": "~0.1.12",
49-
"rxjs": "^6.4.0",
50-
"tns-core-modules": "~6.5.0",
51-
"zone.js": "~0.9.1"
44+
"rxjs": "^6.6.0",
45+
"zone.js": "~0.11.1"
5246
},
5347
"devDependencies": {
54-
"@angular/compiler-cli": "~8.2.0",
55-
"@ngtools/webpack": "~8.2.0",
56-
"nativescript-dev-webpack": "~1.5.0",
57-
"typescript": "~3.5.3"
48+
"@angular/compiler-cli": "~10.0.0",
49+
"@ngtools/webpack": "~10.0.0",
50+
"@nativescript/webpack": "~3.0.0",
51+
"typescript": "~3.9.0"
5852
}
5953
}

packages/template-blank-ng/src/app/app-routing.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule } from "@angular/core";
22
import { Routes } from "@angular/router";
3-
import { NativeScriptRouterModule } from "nativescript-angular/router";
3+
import { NativeScriptRouterModule } from "@nativescript/angular";
44

55
const routes: Routes = [
66
{ path: "", redirectTo: "/home", pathMatch: "full" },
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
<page-router-outlet></page-router-outlet>
1+
<GridLayout>
2+
<page-router-outlet></page-router-outlet>
3+
</GridLayout>

packages/template-blank-ng/src/app/app.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
2-
import { NativeScriptModule } from "nativescript-angular/nativescript.module";
2+
import { NativeScriptModule } from "@nativescript/angular";
33

44
import { AppRoutingModule } from "./app-routing.module";
55
import { AppComponent } from "./app.component";

packages/template-blank-ng/src/app/home/home-routing.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule } from "@angular/core";
22
import { Routes } from "@angular/router";
3-
import { NativeScriptRouterModule } from "nativescript-angular/router";
3+
import { NativeScriptRouterModule } from "@nativescript/angular";
44

55
import { HomeComponent } from "./home.component";
66

packages/template-blank-ng/src/app/home/home.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
2-
import { NativeScriptCommonModule } from "nativescript-angular/common";
2+
import { NativeScriptCommonModule } from "@nativescript/angular";
33

44
import { HomeRoutingModule } from "./home-routing.module";
55
import { HomeComponent } from "./home.component";

packages/template-blank-ng/src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// this import should be first in order to load some required settings (like globals and reflect-metadata)
2-
import { platformNativeScriptDynamic } from "nativescript-angular/platform";
2+
import { platformNativeScriptDynamic } from "@nativescript/angular";
33

44
import { AppModule } from "./app/app.module";
55

packages/template-blank-ng/src/package.json

-7
This file was deleted.

packages/template-blank-ng/tsconfig.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
{
22
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "es5",
3+
"module": "esnext",
4+
"target": "es2017",
5+
"moduleResolution": "node",
56
"experimentalDecorators": true,
67
"emitDecoratorMetadata": true,
78
"noEmitHelpers": true,
89
"noEmitOnError": true,
910
"skipLibCheck": true,
1011
"lib": [
11-
"es6",
12-
"dom",
13-
"es2015.iterable"
12+
"es2017",
13+
"dom"
1414
],
1515
"baseUrl": ".",
1616
"paths": {
1717
"~/*": [
1818
"src/*"
19-
],
20-
"*": [
21-
"./node_modules/*"
2219
]
2320
}
2421
},

packages/template-blank-ng/tsconfig.tns.json

-7
This file was deleted.

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

-7
This file was deleted.

packages/template-blank-react/nsconfig.json

-4
This file was deleted.

packages/template-blank-react/package.json

+9-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
{
2-
"name": "tns-template-blank-react",
3-
"version": "6.5.7",
4-
"nativescript": {
5-
"id": "org.nativescript.Blank",
6-
"tns-android": {
7-
"version": "6.5.0"
8-
},
9-
"tns-ios": {
10-
"version": "6.5.0"
11-
},
12-
"templateVersion": "v2"
13-
},
2+
"name": "@nativescript/template-blank-react",
3+
"version": "7.0.0",
144
"description": "Blank template for NativeScript apps using React.",
155
"author": "Jamie Birch <[email protected]>",
6+
"main": "main.js",
167
"scripts": {
178
"postinstall": "patch-package",
189
"type-check": "tsc --noEmit",
@@ -27,6 +18,9 @@
2718
"bugs": {
2819
"url": "https://github.com/NativeScript/NativeScript/issues"
2920
},
21+
"publishConfig": {
22+
"access": "public"
23+
},
3024
"keywords": [
3125
"mobile",
3226
"nativescript",
@@ -40,7 +34,7 @@
4034
"@nativescript/theme": "2.2.1",
4135
"react": "^16.13.1",
4236
"react-nativescript": "^1.0.6",
43-
"tns-core-modules": "^6.5.6"
37+
"@nativescript/core": "~7.0.0"
4438
},
4539
"devDependencies": {
4640
"@babel/cli": "^7.8.4",
@@ -53,11 +47,11 @@
5347
"@types/react": "16.9.34",
5448
"babel-loader": "^8.0.6",
5549
"fork-ts-checker-webpack-plugin": "^1.3.7",
56-
"nativescript-dev-webpack": "~1.5.0",
50+
"@nativescript/webpack": "~3.0.0",
5751
"node-sass": "^4.14.1",
5852
"patch-package": "^6.2.2",
5953
"react-refresh": "^0.8.3",
60-
"tns-platform-declarations": "^6.0.1",
54+
"@nativescript/types": "~7.0.0",
6155
"typescript": "^3.9.5"
6256
},
6357
"gitHead": "1350d382fb4b0ed4c6e9685df909518b2688e004",

packages/template-blank-react/react-nativescript.webpack.config.js

-112
This file was deleted.

packages/template-blank-react/app/components/AppContainer.tsx renamed to packages/template-blank-react/src/components/AppContainer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from "react";
2-
import { alert } from "tns-core-modules/ui/dialogs";
2+
import { Dialogs } from "@nativescript/core";
33

44
export default function Greeting({}) {
55
return (
@@ -26,7 +26,7 @@ export default function Greeting({}) {
2626
col={1}
2727
fontSize={24}
2828
textAlignment={"center"}
29-
onTap={() => alert("Tap received!")}
29+
onTap={() => Dialogs.alert("Tap received!")}
3030
>
3131
Tap me
3232
</button>

packages/template-blank-react/tsconfig.json

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
"paths": {
2424
"~/*": [
2525
"app/*"
26-
],
27-
"*": [
28-
"./node_modules/*"
2926
]
3027
}
3128
},

packages/template-blank-react/tsconfig.tns.json

-7
This file was deleted.

packages/template-blank-ts/app/package.json

-7
This file was deleted.

0 commit comments

Comments
 (0)