Skip to content

Commit 0ee506b

Browse files
author
vakrilov
committed
chore: add exports for directives
1 parent 4231d10 commit 0ee506b

File tree

5 files changed

+46
-34
lines changed

5 files changed

+46
-34
lines changed

nativescript-angular/nativescript.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ import { DetachedLoader } from "./common/detached-loader";
2929
import { throwIfAlreadyLoaded } from "./common/utils";
3030
import { FrameService } from "./platform-providers";
3131

32+
export * from "./directives";
33+
export { DetachedLoader } from "./common/detached-loader";
34+
3235
export function errorHandlerFactory() {
3336
return new ErrorHandler();
3437
}

nativescript-angular/package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-angular",
3-
"version": "7.3.0",
3+
"version": "8.0.0",
44
"description": "An Angular renderer that lets you build mobile apps with NativeScript.",
55
"homepage": "https://www.nativescript.org/",
66
"bugs": "https://github.com/NativeScript/nativescript-angular/issues",
@@ -30,9 +30,7 @@
3030
"scripts": {
3131
"tslint": "tslint --project tsconfig.json --config tslint.json",
3232
"postinstall": "node postinstall.js",
33-
"tsc": "tsc -p tsconfig.json",
34-
"tsc-w": "tsc -p tsconfig.json -w",
35-
"ngc": "ngc -p tsconfig.json",
33+
"ngc": "ivy-ngcc && ngc -p tsconfig.json",
3634
"prepare": "npm run ngc",
3735
"version": "rm -rf package-lock.json && conventional-changelog -p angular -i ../CHANGELOG.md -s && git add ../CHANGELOG.md",
3836
"typedoc": "typedoc --tsconfig \"./tsconfig.typedoc.json\" --out ./bin/dist/ng-api-reference --includeDeclarations --name \"NativeScript Angular\" --theme ./node_modules/nativescript-typedoc-theme --excludeExternals --externalPattern \"**/+(tns-core-modules|module|declarations).d.ts\""
@@ -45,37 +43,39 @@
4543
"reflect-metadata": "^0.1.8"
4644
},
4745
"peerDependencies": {
48-
"@angular/platform-browser-dynamic": "~7.2.0",
49-
"@angular/common": "~7.2.0",
50-
"@angular/compiler": "~7.2.0",
51-
"@angular/core": "~7.2.0",
52-
"@angular/forms": "~7.2.0",
53-
"@angular/http": "~7.2.0",
54-
"@angular/platform-browser": "~7.2.0",
55-
"@angular/router": "~7.2.0",
46+
"@angular/platform-browser-dynamic": "8.0.0-beta.8",
47+
"@angular/common": "8.0.0-beta.9",
48+
"@angular/compiler": "8.0.0-beta.9",
49+
"@angular/core": "8.0.0-beta.9",
50+
"@angular/forms": "8.0.0-beta.9",
51+
"@angular/http": "8.0.0-beta.9",
52+
"@angular/platform-browser": "8.0.0-beta.9",
53+
"@angular/router": "8.0.0-beta.9",
5654
"rxjs": "^6.3.3",
5755
"tns-core-modules": "^5.1.0 || >5.1.0- || >5.2.0-",
5856
"typescript": "~3.1.1",
5957
"zone.js": "^0.8.4"
6058
},
6159
"devDependencies": {
62-
"@angular/animations": "~7.2.0",
63-
"@angular/common": "~7.2.0",
64-
"@angular/compiler": "~7.2.0",
65-
"@angular/compiler-cli": "~7.2.0",
66-
"@angular/core": "~7.2.0",
67-
"@angular/forms": "~7.2.0",
68-
"@angular/http": "~7.2.0",
69-
"@angular/platform-browser": "~7.2.0",
70-
"@angular/platform-browser-dynamic": "~7.2.0",
71-
"@angular/router": "~7.2.0",
60+
"@angular/animations": "8.0.0-beta.9",
61+
"@angular/common": "8.0.0-beta.9",
62+
"@angular/compiler": "8.0.0-beta.9",
63+
"@angular/compiler-cli": "8.0.0-beta.9",
64+
"@angular/core": "8.0.0-beta.9",
65+
"@angular/forms": "8.0.0-beta.9",
66+
"@angular/http": "8.0.0-beta.9",
67+
"@angular/platform-browser": "8.0.0-beta.9",
68+
"@angular/platform-browser-dynamic": "8.0.0-beta.9",
69+
"@angular/router": "8.0.0-beta.9",
7270
"codelyzer": "^4.5.0",
71+
"ng-packagr": "^4.7.1",
7372
"rxjs": "~6.3.3",
7473
"tns-core-modules": "next",
74+
"tsickle": "^0.34.3",
7575
"tslint": "^5.5.0",
76-
"typescript": "~3.1.1",
76+
"typescript": "~3.3.4000",
7777
"zone.js": "^0.8.4",
7878
"nativescript-typedoc-theme": "git://github.com/NativeScript/nativescript-typedoc-theme.git#master",
7979
"typedoc": "^0.13.0"
80-
}
80+
}
8181
}

nativescript-angular/router/router.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ import { NSEmptyOutletComponent } from "./ns-empty-outlet.component";
1515
export { PageRoute } from "./page-router-outlet";
1616
export { RouterExtensions } from "./router-extensions";
1717
export { NSModuleFactoryLoader } from "./ns-module-factory-loader";
18+
export { NSRouterLink } from "./ns-router-link";
19+
export { NSRouterLinkActive } from "./ns-router-link-active";
20+
export { PageRouterOutlet } from "./page-router-outlet";
1821
export { NSEmptyOutletComponent } from "./ns-empty-outlet.component";
1922

2023
export type LocationState = LocationState;

nativescript-angular/testing/src/util.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ export function nsTestBedBeforeEach(
8888
components: any[],
8989
providers: any[] = [],
9090
imports: any[] = [],
91-
entryComponents: any[] = []) {
91+
entryComponentsParam?: any[]) {
92+
let entryComponents = [];
93+
if (entryComponentsParam) {
94+
entryComponents.push(...entryComponentsParam);
95+
}
96+
9297
return (done) => {
9398
activeTestFixtures.push([]);
9499
// If there are no entry components we can take the simple path.

nativescript-angular/tsconfig.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,23 @@
1313
"noEmitOnError": true,
1414
"noImplicitAny": false,
1515
"lib": [
16-
"dom",
17-
"es6",
18-
"es2015.iterable"
16+
"dom",
17+
"es6",
18+
"es2015.iterable"
1919
],
2020
"baseUrl": ".",
2121
"paths": {
22-
"*": [
23-
"./node_modules/tns-core-modules/*",
24-
"./node_modules/*"
25-
]
22+
"*": [
23+
"./node_modules/tns-core-modules/*",
24+
"./node_modules/*"
25+
]
2626
}
2727
},
2828
"angularCompilerOptions": {
2929
"genDir": ".",
3030
"skipMetadataEmit": false,
3131
"skipTemplateCodegen": true,
32-
"strictMetadataEmit": true
32+
"strictMetadataEmit": true,
33+
"enableIvy": true
3334
}
34-
}
35+
}

0 commit comments

Comments
 (0)