Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f10a8fb

Browse files
feat: angular 9 ivy support (#2169)
closes #2152 closes #2060
1 parent 35ca4fa commit f10a8fb

File tree

209 files changed

+1121
-993
lines changed

Some content is hidden

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

209 files changed

+1121
-993
lines changed

‎CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
<a name="9.0.0"></a>
2+
# [9.0.0](https://github.com/NativeScript/nativescript-angular/compare/8.20.4...9.0.0) (2020年06月03日)
3+
4+
5+
### Features
6+
7+
* angular 9 ivy ([fbe2450](https://github.com/NativeScript/nativescript-angular/commit/fbe2450))
8+
9+
110
<a name="8.20.4"></a>
211
## [8.20.4](https://github.com/NativeScript/nativescript-angular/compare/8.20.3...8.20.4) (2020年01月07日)
312

@@ -649,7 +658,7 @@ Angular apps described in [this](https://angular.io/guide/ngmodule-faq#q-browser
649658
Migration steps:
650659
In all NgModules, except the root one (`AppModule`), replace:
651660
```
652-
import { NativeScriptModule } from "nativescript-angular/nativescript.module";
661+
import { NativeScriptModule } from "@nativescript/angular";
653662
...
654663
@NgModule({
655664
imports: [

‎build/pack-scripts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"license": "ISC",
1111
"devDependencies": {
1212
"@types/node": "^12.7.12",
13-
"fs-extra": "^8.1.0",
13+
"fs-extra": "^9.0.0",
1414
"rimraf": "^3.0.0",
15-
"ts-node": "^8.4.1",
16-
"typescript": "^3.6.4"
15+
"ts-node": "^8.10.2",
16+
"typescript": "^3.8.3"
1717
}
1818
}

‎build/pack-scripts/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"emitDecoratorMetadata": true,
77
"noEmitHelpers": true,
88
"noEmitOnError": true,
9+
"skipLibCheck": true,
910
"lib": [
10-
"es6",
11+
"es2017",
1112
"dom",
12-
"es2015.iterable"
13+
"es6"
1314
],
1415
"types": [
1516
"node"

‎e2e/animation-examples/app/app.module.ts

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,21 @@ import {
44
NgModuleFactoryLoader
55
} from "@angular/core";
66

7-
import { NativeScriptModule } from "nativescript-angular/nativescript.module";
8-
import { NativeScriptAnimationsModule } from "nativescript-angular/animations";
9-
import { NSModuleFactoryLoader } from "nativescript-angular/router";
7+
import { NativeScriptModule } from "@nativescript/angular";
8+
import { NativeScriptAnimationsModule } from "@nativescript/angular/animations";
9+
import { NSModuleFactoryLoader } from "@nativescript/angular/router";
10+
11+
import { AppRoutingModule } from "./app.routing";
12+
import { AnimationsListComponent } from "./animations-list.component";
13+
import { AnimationBuilderComponent } from "./animation-builder.component";
14+
import { ExternalAnimationComponent } from "./external-animation.component";
15+
import { FadeInOutComponent } from "./fade-in-out.component";
16+
import { OptionsComponent } from "./options.component";
17+
import { OptionsDefaultComponent } from "./options-default.component";
18+
import { AnimateChildComponent } from "./animate-child.component";
19+
import { SelectorAllComponent } from "./selector-all.component";
20+
import { QueryStaggerComponent } from "./query-stagger.component";
1021

11-
import { AppRoutingModule, routedComponents } from "./app.routing";
1222
import { AppComponent } from "./app.component";
1323

1424
@NgModule({
@@ -17,7 +27,15 @@ import { AppComponent } from "./app.component";
1727
],
1828
declarations: [
1929
AppComponent,
20-
...routedComponents,
30+
AnimationsListComponent,
31+
AnimationBuilderComponent,
32+
ExternalAnimationComponent,
33+
FadeInOutComponent,
34+
OptionsComponent,
35+
OptionsDefaultComponent,
36+
AnimateChildComponent,
37+
SelectorAllComponent,
38+
QueryStaggerComponent,
2139
],
2240
imports: [
2341
NativeScriptModule,

‎e2e/animation-examples/app/app.routing.ts

Lines changed: 2 additions & 14 deletions
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/router";
44

55
import { AnimationsListComponent } from "./animations-list.component";
66
import { AnimationBuilderComponent } from "./animation-builder.component";
@@ -23,23 +23,11 @@ const routes: Routes = [
2323
{ path: "animate-child", component: AnimateChildComponent },
2424
{ path: "selector", component: SelectorAllComponent },
2525
{ path: "query-stagger", component: QueryStaggerComponent },
26-
{ path: "hero", loadChildren: "./hero/hero.module#HeroModule" },
26+
{ path: "hero", loadChildren: ()=>import("./hero/hero.module").then(m=>m.HeroModule) },
2727
];
2828

2929
@NgModule({
3030
imports: [NativeScriptRouterModule.forRoot(routes)],
3131
exports: [NativeScriptRouterModule],
3232
})
3333
export class AppRoutingModule { }
34-
35-
export const routedComponents = [
36-
AnimationsListComponent,
37-
AnimationBuilderComponent,
38-
ExternalAnimationComponent,
39-
FadeInOutComponent,
40-
OptionsComponent,
41-
OptionsDefaultComponent,
42-
AnimateChildComponent,
43-
SelectorAllComponent,
44-
QueryStaggerComponent,
45-
];

‎e2e/animation-examples/app/hero/hero-routing.module.ts

Lines changed: 1 addition & 1 deletion
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/router";
44

55
import { HeroTeamBuilderComponent } from './hero-team-builder.component';
66

‎e2e/animation-examples/app/hero/hero.module.ts

Lines changed: 1 addition & 1 deletion
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/common";
33

44
import { HeroRoutingModule, routedComponents } from "./hero-routing.module";
55

‎e2e/animation-examples/app/main.aot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { platformNativeScript } from "nativescript-angular/platform-static";
1+
import { platformNativeScript } from "@nativescript/angular/platform-static";
22
import { AppModuleNgFactory } from "./app.module.ngfactory";
33

44
platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory);

‎e2e/animation-examples/app/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { platformNativeScriptDynamic } from "nativescript-angular/platform";
2-
import { animationsTraceCategory } from "nativescript-angular/trace";
3-
import { setCategories, enable } from "trace";
1+
import { platformNativeScriptDynamic } from "@nativescript/angular/platform";
2+
import { animationsTraceCategory } from "@nativescript/angular/trace";
3+
import { setCategories, enable } from "@nativescript/core/trace";
44

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

‎e2e/animation-examples/ngcc.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
packages: {
3+
"@nativescript/angular": {
4+
entryPoints: {
5+
".": {
6+
override: {
7+
main: "./index.js",
8+
typings: "./index.d.ts",
9+
},
10+
ignoreMissingDependencies: true,
11+
}
12+
},
13+
ignorableDeepImportMatchers: [
14+
/tns-core-modules\//,
15+
/@nativescript\/core\//,
16+
]
17+
}
18+
}
19+
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /