Skip to content

Commit 097501e

Browse files
author
Nedyalko Nikolov
authored
Merge pull request NativeScript#590 from NativeScript/nnikolov/Es6Ready
Revert for Es6 modules with only code changes.
2 parents 3d2a063 + fbbbdf7 commit 097501e

33 files changed

+94
-128
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ tags
1313
!/nativescript-angular/postinstall.js
1414
!/nativescript-angular/hooks/**/*.js
1515
!/nativescript-angular/gulpfile.js
16-
!/nativescript-angular/rollup.config.js
17-
!/nativescript-angular/rollup-entry.js
1816
!/nativescript-angular/zone-js/**/*.js
1917

2018
.tscache

nativescript-angular/global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/// <reference path="./node_modules/tns-core-modules/tns-core-modules.es6.d.ts" />
1+
/// <reference path="./node_modules/tns-core-modules/tns-core-modules.d.ts" />

nativescript-angular/index.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,15 @@ export * from "./renderer";
1616
export * from "./view-util";
1717
export * from "./animation-driver";
1818
export * from "./resource-loader";
19-
export * from "./element-registry";
19+
export {
20+
ViewResolver,
21+
TEMPLATE,
22+
ViewClass,
23+
ViewClassMeta,
24+
registerElement,
25+
getViewClass,
26+
getViewMeta,
27+
isKnownView,
28+
TemplateView
29+
} from "./element-registry";
2030
export * from "./value-accessors/base-value-accessor";

nativescript-angular/initial-imports.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

nativescript-angular/package.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"private": true,
33
"name": "nativescript-angular",
44
"version": "1.3.0",
5-
"main": "bundle.all.js",
6-
"module": "index.js",
7-
"typings": "index.d.ts",
85
"description": "An Angular 2 renderer that lets you build mobile apps with NativeScript.",
96
"homepage": "http://www.telerik.com",
107
"bugs": "http://www.telerik.com",
@@ -21,10 +18,10 @@
2118
"postinstall": "node postinstall.js",
2219
"ngc": "ngc -p tsconfig.json",
2320
"tsc": "tsc -p tsconfig.json",
24-
"prepublish": "npm run tsc && rollup -c && npm run ngc"
21+
"prepublish": "npm run tsc && npm run ngc"
2522
},
2623
"dependencies": {
27-
"nativescript-intl": "~0.0.5",
24+
"nativescript-intl": "~0.0.8",
2825
"@angular/core": "~2.2.1",
2926
"@angular/common": "~2.2.1",
3027
"@angular/compiler": "~2.2.1",
@@ -38,18 +35,16 @@
3835
"parse5": "1.3.2",
3936
"punycode": "1.3.2",
4037
"querystring": "0.2.0",
41-
"rxjs": "5.0.0-beta.12",
4238
"url": "0.10.3"
4339
},
4440
"devDependencies": {
45-
"tns-core-modules": ">=2.5.0 || >=2.5.0-2016",
46-
"zone.js": "^0.6.21",
4741
"typescript": "~2.0.10",
4842
"tslint": "~4.0.1",
4943
"codelyzer": "^2.0.0-beta.1",
5044
"@angular/compiler-cli": "~2.2.1",
51-
"rollup": "^0.36.3",
52-
"rollup-plugin-multi-entry": "^2.0.1"
45+
"codelyzer": "^2.0.0-beta.1",
46+
"tns-core-modules": ">=2.5.0 || >=2.5.0-2016",
47+
"zone.js": "^0.6.21"
5348
},
5449
"nativescript": {}
5550
}

nativescript-angular/rollup-entry.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

nativescript-angular/rollup.config.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

nativescript-angular/router.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ import { NSLocationStrategy, LocationState } from "./router/ns-location-strategy
88
import { NativescriptPlatformLocation } from "./router/ns-platform-location";
99
import { RouterExtensions } from "./router/router-extensions";
1010
import { NativeScriptModule } from "./nativescript.module";
11-
export { NSModuleFactoryLoader } from "./router/ns-module-factory-loader";
1211

1312
export { PageRoute } from "./router/page-router-outlet";
1413
export { RouterExtensions } from "./router/router-extensions";
15-
export { NSLocationStrategy } from "./router/ns-location-strategy";
14+
export { NSModuleFactoryLoader } from "./router/ns-module-factory-loader";
1615
export type LocationState = LocationState;
1716

1817
@NgModule({

nativescript-angular/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "es6",
4-
"module": "es6",
3+
"target": "es5",
4+
"module": "commonjs",
55
"moduleResolution": "node",
66
"sourceMap": true,
77
"emitDecoratorMetadata": true,

nativescript-angular/view-util.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const IOS_PREFX: string = ":ios:";
2222
const ANDROID_PREFX: string = ":android:";
2323
const whiteSpaceSplitter = /\s+/;
2424

25+
export type ViewExtensions = ViewExtensions;
26+
export type NgView = NgView;
2527
export type NgLayoutBase = LayoutBase & ViewExtensions;
2628
export type NgContentView = ContentView & ViewExtensions;
2729
export type BeforeAttachAction = (view: View) => void;

0 commit comments

Comments
 (0)