Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Commit 86ed640

Browse files
committed
bump demos
1 parent 0f915d3 commit 86ed640

File tree

6 files changed

+301
-348
lines changed

6 files changed

+301
-348
lines changed

demo-angular/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"nativescript": {
33
"id": "org.nativescript.demoangular",
44
"tns-android": {
5-
"version": "6.3.1"
5+
"version": "6.5.0"
66
},
77
"tns-ios": {
8-
"version": "6.3.0"
8+
"version": "6.5.0"
99
}
1010
},
1111
"description": "NativeScript Application",
@@ -22,16 +22,16 @@
2222
"@angular/router": "~8.2.0",
2323
"@nativescript/theme": "~2.2.1",
2424
"@nstudio/nativescript-loading-indicator": "file:../src",
25-
"nativescript-angular": "~8.20.3",
25+
"nativescript-angular": "~8.21.0",
2626
"reflect-metadata": "~0.1.12",
2727
"rxjs": "^6.4.0",
28-
"tns-core-modules": "~6.3.0",
28+
"tns-core-modules": "~6.5.0",
2929
"zone.js": "~0.9.1"
3030
},
3131
"devDependencies": {
3232
"@angular/compiler-cli": "~8.2.0",
3333
"@ngtools/webpack": "~8.2.0",
34-
"nativescript-dev-webpack": "~1.4.0",
34+
"nativescript-dev-webpack": "~1.5.1",
3535
"typescript": "~3.5.3"
3636
},
3737
"gitHead": "fa98f785df3fba482e5e2a0c76f4be1fa6dc7a14",

demo-angular/tsconfig.tns.json

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
"module": "esNext",
55
"moduleResolution": "node"
66
}
7-
}
7+
}

demo-angular/webpack.config.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ const hashSalt = Date.now().toString();
1818

1919
module.exports = env => {
2020
// Add your custom Activities, Services and other Android app components here.
21-
const appComponents = [
21+
const appComponents = env.appComponents || [];
22+
appComponents.push(...[
2223
"tns-core-modules/ui/frame",
2324
"tns-core-modules/ui/frame/activity",
24-
];
25+
]);
2526

26-
const platform = env && (env.android && "android" || env.ios && "ios");
27+
const platform = env && (env.android && "android" || env.ios && "ios" || env.platform);
2728
if (!platform) {
2829
throw new Error("You need to provide a target platform!");
2930
}
@@ -65,9 +66,8 @@ module.exports = env => {
6566
const hasRootLevelScopedModules = nsWebpack.hasRootLevelScopedModules({ projectDir: projectRoot });
6667
const hasRootLevelScopedAngular = nsWebpack.hasRootLevelScopedAngular({ projectDir: projectRoot });
6768
let coreModulesPackageName = "tns-core-modules";
68-
const alias = {
69-
'~': appFullPath
70-
};
69+
const alias = env.alias || {};
70+
alias['~'] = appFullPath;
7171

7272
const compilerOptions = getCompilerOptionsFromTSConfig(tsConfigPath);
7373
if (hasRootLevelScopedModules) {
@@ -84,7 +84,9 @@ module.exports = env => {
8484
const appResourcesFullPath = resolve(projectRoot, appResourcesPath);
8585
const entryModule = `${nsWebpack.getEntryModule(appFullPath, platform)}.ts`;
8686
const entryPath = `.${sep}${entryModule}`;
87-
const entries = { bundle: entryPath };
87+
const entries = env.entries || {};
88+
entries.bundle = entryPath;
89+
8890
const areCoreModulesExternal = Array.isArray(env.externals) && env.externals.some(e => e.indexOf("tns-core-modules") > -1);
8991
if (platform === "ios" && !areCoreModulesExternal) {
9092
entries["tns_modules/tns-core-modules/inspector_modules"] = "inspector_modules";

demo/package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
{
22
"nativescript": {
3-
"id": "org.nativescript.demo",
4-
"tns-android": {
5-
"version": "6.3.1"
6-
},
7-
"tns-ios": {
8-
"version": "6.3.0"
9-
}
3+
"id": "org.nativescript.demo"
104
},
115
"dependencies": {
12-
"@nativescript/core": "^6.3.2",
6+
"@nativescript/core": "^6.5.0",
137
"nativescript-theme-core": "^1.0.4",
148
"nativescript-unit-test-runner": "0.7.0",
159
"@nstudio/nativescript-loading-indicator": "file:../src"
@@ -20,8 +14,8 @@
2014
"karma-jasmine": "2.0.1",
2115
"karma-nativescript-launcher": "^0.4.0",
2216
"nativescript-css-loader": "~0.26.1",
23-
"nativescript-dev-webpack": "1.4.1",
24-
"tns-platform-declarations": "^6.3.2",
17+
"nativescript-dev-webpack": "1.5.1",
18+
"tns-platform-declarations": "^6.5.0",
2519
"tslint": "~5.20.1",
2620
"typescript": "^3.7.4",
2721
"karma-webpack": "3.0.5"

0 commit comments

Comments
 (0)