Skip to content

Commit 16c7df8

Browse files
committed
update demo-ng to 3.4
1 parent e55bc6a commit 16c7df8

7 files changed

Lines changed: 129 additions & 244 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const AppModuleNgFactory: any;

demo-ng/app/vendor-platform.ios.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// There is a bug in angular: https://github.com/angular/angular-cli/pull/8589/files
2+
// Legendary stuff, its webpack plugin pretty much doesn't work with empty TypeScript files in v1.8.3
3+
void 0;

demo-ng/app/vendor.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Snapshot the ~/app.css and the theme
2+
const application = require("application");
3+
require("ui/styling/style-scope");
4+
const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/);
5+
global.registerWebpackModules(appCssContext);
6+
application.loadAppCss();
7+
18
require("./vendor-platform");
29

310
require("reflect-metadata");

demo-ng/package.json

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"nativescript": {
77
"id": "com.tangrainc.dropdownsample.ng",
88
"tns-ios": {
9-
"version": "3.2.0"
9+
"version": "3.4.0"
1010
},
1111
"tns-android": {
12-
"version": "3.2.0"
12+
"version": "3.4.0"
1313
}
1414
},
1515
"scripts": {
@@ -25,39 +25,40 @@
2525
"build-ios-bundle": "npm run ns-bundle --ios --build-app"
2626
},
2727
"dependencies": {
28-
"@angular/animations": "~4.4.1",
29-
"@angular/common": "~4.4.1",
30-
"@angular/compiler": "~4.4.1",
31-
"@angular/core": "~4.4.1",
32-
"@angular/forms": "~4.4.1",
33-
"@angular/http": "~4.4.1",
34-
"@angular/platform-browser": "~4.4.1",
35-
"@angular/platform-browser-dynamic": "~4.4.1",
36-
"@angular/router": "~4.4.1",
37-
"nativescript-angular": "4.4.0",
28+
"@angular/animations": "~5.0.0",
29+
"@angular/common": "~5.0.0",
30+
"@angular/compiler": "~5.0.0",
31+
"@angular/core": "~5.0.0",
32+
"@angular/forms": "~5.0.0",
33+
"@angular/http": "~5.0.0",
34+
"@angular/platform-browser": "~5.0.0",
35+
"@angular/platform-browser-dynamic": "~5.0.0",
36+
"@angular/router": "~5.0.0",
37+
"nativescript-angular": "~5.0.0",
3838
"nativescript-drop-down": "file:../bin/dist",
3939
"reflect-metadata": "~0.1.8",
40-
"rxjs": "~5.2.0",
41-
"tns-core-modules": "3.2.0",
42-
"zone.js": "~0.8.2"
40+
"rxjs": "^5.5.0",
41+
"tns-core-modules": "^3.4.0",
42+
"zone.js": "^0.8.4"
4343
},
4444
"devDependencies": {
45-
"@angular/compiler-cli": "~4.4.1",
46-
"@ngtools/webpack": "~1.6.0",
45+
"@angular/compiler-cli": "~5.0.0",
46+
"@ngtools/webpack": "~1.8.2",
4747
"babel-traverse": "6.24.1",
4848
"babel-types": "6.24.1",
4949
"babylon": "6.17.0",
5050
"copy-webpack-plugin": "~4.0.1",
51+
"css-loader": "~0.28.7",
5152
"extract-text-webpack-plugin": "~3.0.0",
5253
"lazy": "1.0.11",
5354
"nativescript-css-loader": "~0.26.0",
54-
"nativescript-dev-typescript": "0.4.2",
55-
"nativescript-dev-webpack": "^0.8.0",
55+
"nativescript-dev-typescript": "^0.6.0",
56+
"nativescript-dev-webpack": "^0.9.0",
5657
"nativescript-worker-loader": "~0.8.1",
5758
"raw-loader": "~0.5.1",
5859
"resolve-url-loader": "~2.1.0",
59-
"typescript": "~2.2.0",
60-
"webpack": "~3.2.0",
60+
"typescript": "~2.4.2",
61+
"webpack": "~3.8.1",
6162
"webpack-bundle-analyzer": "^2.8.2",
6263
"webpack-sources": "~1.0.1"
6364
}

demo-ng/tsconfig.aot.json

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

demo-ng/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
},
2222
"exclude": [
2323
"node_modules",
24-
"platforms",
25-
"**/*.aot.ts"
24+
"platforms"
2625
]
2726
}

0 commit comments

Comments
 (0)