diff --git a/.gitignore b/.gitignore index 9399b9cd3..ca4ea8626 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ node_modules platforms hooks tags +dist **/*.js.map **/*.metadata.json @@ -14,6 +15,15 @@ tags !/nativescript-angular/gulpfile.js !/nativescript-angular/zone-js/dist/*.js +/nativescript-angular-package/**/*.d.ts +/nativescript-angular-package/**/*.js + +!/nativescript-angular-package/global.d.ts +!/nativescript-angular-package/postinstall.js +!/nativescript-angular-package/hooks/**/*.js +!/nativescript-angular-package/gulpfile.js +!/nativescript-angular-package/zone-js/dist/*.js + .tscache .nvm .vscode @@ -46,3 +56,4 @@ tsconfig.tns.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json + diff --git a/CHANGELOG.md b/CHANGELOG.md index a90181768..b0a33425d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ + +# [8.20.0](https://github.com/NativeScript/nativescript-angular/compare/8.2.2...8.20.0) (2019-10-23) + +### Features +* add scoped package @nativescript/angular ([#2014](https://github.com/NativeScript/nativescript-angular/pull/2014)) + +### Bug Fixes + +* **animations:** resolve issue with "query animations" on iOS 13 ([#2022](https://github.com/NativeScript/nativescript-angular/issues/2022)) ([c382682](https://github.com/NativeScript/nativescript-angular/commit/c382682)) + ## [8.2.2](https://github.com/NativeScript/nativescript-angular/compare/8.2.1...8.2.2) (2019-10-16) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b42d49f3b..80bff2ab2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -101,8 +101,9 @@ In this case the commits should be merge firstly from release in master branch a 2. Execute `npm i` to install dependencies: ``` cd nativescript-angular && npm i +cd nativescript-angular-package && npm i ``` -3. Execute [`npm version`](https://docs.npmjs.com/cli/version) to bump the version: +3. Execute [`npm version`](https://docs.npmjs.com/cli/version) to bump the version in both `nativescript-angular` and `nativescript-angular-package` folders: ``` npm --no-git-tag-version version [patch|minor|major] -m "release: cut the %s release" ``` diff --git a/build/pack-scripts/pack-compat.ts b/build/pack-scripts/pack-compat.ts new file mode 100644 index 000000000..61cde5c88 --- /dev/null +++ b/build/pack-scripts/pack-compat.ts @@ -0,0 +1,73 @@ +import * as path from "path"; +import * as fs from "fs-extra"; +import { execSync } from "child_process"; + +/** + * Use this script to pack .tgz for nativescript-angular package. The first passed param can be: + * 1. Path to .tgz file - in this case the script replaces the scoped dependency (@nativescript/angular) with it in the package.json file. Then packs. + * 2. Tag or exact version - in this case the script does `npm install --save-exact` to save the exact version (in case if tag). Then packs. + * 3. `auto-version` - this is interpreted by getting version from the scoped package.json file (nativescript-angular folder). + */ + +var scopedVersion = process.argv[2]; + +console.log(`Packing nativescript-angular package with @nativescript/angular: ${scopedVersion}`); + +const distFolderPath = path.resolve("../../dist"); +const tempFolderPath = path.resolve("./temp-compat"); +const outFileName = "nativescript-angular-compat.tgz"; + +const nsAngularScopedPackageJSONPath = path.resolve("../../nativescript-angular/package.json"); +const nsAngularPackagePath = path.resolve("../../nativescript-angular-package"); +const packageJsonPath = path.resolve(`${nsAngularPackagePath}/package.json`); +console.log("Getting package.json from", packageJsonPath); + + +function prepareCompatPackageJSON(scopedVersion: string) { + const packageJsonObject = JSON.parse(fs.readFileSync(packageJsonPath, { encoding: "utf8" })); + packageJsonObject.dependencies["@nativescript/angular"] = scopedVersion; + fs.writeFileSync(packageJsonPath, JSON.stringify(packageJsonObject, null, 4)); +} + +if (scopedVersion === "auto-version") { + // We use this when build for release. In this case we need to get version from scoped package (nativescript-angular) + // and use it in the compat package. + + scopedVersion = JSON.parse(fs.readFileSync(nsAngularScopedPackageJSONPath, { encoding: "utf8" })).version; + prepareCompatPackageJSON(scopedVersion) +} else { + let npmInstallParams = ""; + + if (scopedVersion.indexOf(".tgz") > 0) { + // If building with .tgz, we need to update the package.json of the compat package + prepareCompatPackageJSON(scopedVersion) + } else { + // If building with tag or exact version, just install it with --save-exact + npmInstallParams = `@nativescript/angular@${scopedVersion}`; + } + + execSync(`npm install --save-exact ${npmInstallParams}`, { + cwd: nsAngularPackagePath + }); +} + +// ensure empty temp and existing dist folders +fs.emptyDirSync(tempFolderPath); +fs.ensureDirSync(distFolderPath); + +// Install, run tsc and run ngc +execSync(`npm i && tsc && npm run ngc`, { + cwd: nsAngularPackagePath +}); + +// create .tgz in temp folder +execSync(`npm pack ${nsAngularPackagePath}`, { + cwd: tempFolderPath +}); + +// assume we have a single file built in temp folder, take its name +const currentFileName = fs.readdirSync(tempFolderPath)[0]; + +// move built file and remove temp folder +fs.moveSync(`${tempFolderPath}/${currentFileName}`, `${distFolderPath}/${outFileName}`, { overwrite: true }); +fs.removeSync(`${tempFolderPath}`); diff --git a/build/pack-scripts/pack-scoped.ts b/build/pack-scripts/pack-scoped.ts new file mode 100644 index 000000000..fe72a16a4 --- /dev/null +++ b/build/pack-scripts/pack-scoped.ts @@ -0,0 +1,31 @@ +import * as path from "path"; +import * as fs from "fs-extra"; +import { execSync } from "child_process"; + +console.log(`Packing @nativescript/angular package`); + +const distFolderPath = path.resolve("../../dist"); +const tempFolderPath = path.resolve("./temp-scoped"); +const outFileName = "nativescript-angular-scoped.tgz"; + +const nsAngularPackagePath = path.resolve("../../nativescript-angular"); + +execSync(`npm install --save-exact`, { + cwd: nsAngularPackagePath +}); + +// ensure empty temp and dist folders +fs.emptyDirSync(tempFolderPath); +fs.ensureDirSync(distFolderPath); + +// create .tgz in temp folder +execSync(`npm pack ${nsAngularPackagePath}`, { + cwd: tempFolderPath +}); + +// assume we have a single file built in temp folder, take its name +const currentFileName = fs.readdirSync(tempFolderPath)[0]; + +// move built file and remove temp folder +fs.moveSync(`${tempFolderPath}/${currentFileName}`, `${distFolderPath}/${outFileName}`, { overwrite: true }); +fs.removeSync(`${tempFolderPath}`); diff --git a/build/pack-scripts/package.json b/build/pack-scripts/package.json new file mode 100644 index 000000000..93c081421 --- /dev/null +++ b/build/pack-scripts/package.json @@ -0,0 +1,18 @@ +{ + "name": "build", + "version": "1.0.0", + "description": "", + "main": "prepublish-next.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "devDependencies": { + "@types/node": "^12.7.12", + "fs-extra": "^8.1.0", + "rimraf": "^3.0.0", + "ts-node": "^8.4.1", + "typescript": "^3.6.4" + } +} diff --git a/build/pack-scripts/tsconfig.json b/build/pack-scripts/tsconfig.json new file mode 100644 index 000000000..a250c1c15 --- /dev/null +++ b/build/pack-scripts/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "noEmitHelpers": true, + "noEmitOnError": true, + "lib": [ + "es6", + "dom", + "es2015.iterable" + ], + "types": [ + "node" + ], + "typeRoots": [ "./node_modules/@types" ] + }, + "include": [ + "./**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/e2e/animation-examples/package.json b/e2e/animation-examples/package.json index 1cece5d65..126f35fa3 100644 --- a/e2e/animation-examples/package.json +++ b/e2e/animation-examples/package.json @@ -21,7 +21,7 @@ "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", - "nativescript-angular": "file:../../nativescript-angular", + "nativescript-angular": "file:../../nativescript-angular-package", "nativescript-theme-core": "~1.0.2", "reflect-metadata": "~0.1.8", "rxjs": "^6.4.0", diff --git a/e2e/animation-examples/tsconfig.json b/e2e/animation-examples/tsconfig.json index d93d819b4..eee1eca47 100644 --- a/e2e/animation-examples/tsconfig.json +++ b/e2e/animation-examples/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "*": [ "./node_modules/tns-core-modules/*", - "./node_modules/*" + "./node_modules/*", + "./node_modules/nativescript-angular/node_modules/*" ], "~/*": [ "app/*" @@ -23,10 +24,13 @@ } }, "include": [ + "../../nativescript-angular-package", "../../nativescript-angular", "**/*" ], "exclude": [ + "../../nativescript-angular-package/node_modules", + "../../nativescript-angular-package/**/*.d.ts", "../../nativescript-angular/node_modules", "../../nativescript-angular/**/*.d.ts", "node_modules", diff --git a/e2e/modal-navigation-ng/package.json b/e2e/modal-navigation-ng/package.json index 2454a4121..5bd81ea31 100644 --- a/e2e/modal-navigation-ng/package.json +++ b/e2e/modal-navigation-ng/package.json @@ -21,7 +21,7 @@ "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", - "nativescript-angular": "file:../../nativescript-angular", + "nativescript-angular": "file:../../nativescript-angular-package", "nativescript-theme-core": "~1.0.4", "reflect-metadata": "~0.1.8", "rxjs": "^6.4.0", diff --git a/e2e/modal-navigation-ng/tsconfig.json b/e2e/modal-navigation-ng/tsconfig.json index d93d819b4..eee1eca47 100644 --- a/e2e/modal-navigation-ng/tsconfig.json +++ b/e2e/modal-navigation-ng/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "*": [ "./node_modules/tns-core-modules/*", - "./node_modules/*" + "./node_modules/*", + "./node_modules/nativescript-angular/node_modules/*" ], "~/*": [ "app/*" @@ -23,10 +24,13 @@ } }, "include": [ + "../../nativescript-angular-package", "../../nativescript-angular", "**/*" ], "exclude": [ + "../../nativescript-angular-package/node_modules", + "../../nativescript-angular-package/**/*.d.ts", "../../nativescript-angular/node_modules", "../../nativescript-angular/**/*.d.ts", "node_modules", diff --git a/e2e/nested-router-tab-view/app/app.module.ts b/e2e/nested-router-tab-view/app/app.module.ts index 2be80e9fd..1c406632a 100644 --- a/e2e/nested-router-tab-view/app/app.module.ts +++ b/e2e/nested-router-tab-view/app/app.module.ts @@ -13,7 +13,7 @@ import { routerTraceCategory } from "nativescript-angular/trace"; // addCategories(routerTraceCategory); traceEnable(); -class MyErrorHandler implements ErrorHandler { +export class MyErrorHandler implements ErrorHandler { handleError(error) { console.log("### ErrorHandler Error: " + error.toString()); console.log("### ErrorHandler Stack: " + error.stack); diff --git a/e2e/nested-router-tab-view/app/modal-second/modal-second.component.html b/e2e/nested-router-tab-view/app/modal-second/modal-second.component.html index 9c6b4052e..27a997c2f 100644 --- a/e2e/nested-router-tab-view/app/modal-second/modal-second.component.html +++ b/e2e/nested-router-tab-view/app/modal-second/modal-second.component.html @@ -3,7 +3,7 @@ - + \ No newline at end of file diff --git a/e2e/nested-router-tab-view/package.json b/e2e/nested-router-tab-view/package.json index caef1096f..6e78669c1 100644 --- a/e2e/nested-router-tab-view/package.json +++ b/e2e/nested-router-tab-view/package.json @@ -15,7 +15,7 @@ "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", - "nativescript-angular": "file:../../nativescript-angular", + "nativescript-angular": "file:../../nativescript-angular-package", "nativescript-theme-core": "~1.0.4", "reflect-metadata": "~0.1.8", "rxjs": "^6.4.0", diff --git a/e2e/nested-router-tab-view/tsconfig.json b/e2e/nested-router-tab-view/tsconfig.json index d93d819b4..eee1eca47 100644 --- a/e2e/nested-router-tab-view/tsconfig.json +++ b/e2e/nested-router-tab-view/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "*": [ "./node_modules/tns-core-modules/*", - "./node_modules/*" + "./node_modules/*", + "./node_modules/nativescript-angular/node_modules/*" ], "~/*": [ "app/*" @@ -23,10 +24,13 @@ } }, "include": [ + "../../nativescript-angular-package", "../../nativescript-angular", "**/*" ], "exclude": [ + "../../nativescript-angular-package/node_modules", + "../../nativescript-angular-package/**/*.d.ts", "../../nativescript-angular/node_modules", "../../nativescript-angular/**/*.d.ts", "node_modules", diff --git a/e2e/renderer/package.json b/e2e/renderer/package.json index 16b90f954..4b03e0682 100644 --- a/e2e/renderer/package.json +++ b/e2e/renderer/package.json @@ -15,7 +15,7 @@ "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", - "nativescript-angular": "file:../../nativescript-angular", + "nativescript-angular": "file:../../nativescript-angular-package", "nativescript-theme-core": "~1.0.4", "reflect-metadata": "~0.1.8", "rxjs": "^6.4.0", diff --git a/e2e/renderer/tsconfig.json b/e2e/renderer/tsconfig.json index d93d819b4..eee1eca47 100644 --- a/e2e/renderer/tsconfig.json +++ b/e2e/renderer/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "*": [ "./node_modules/tns-core-modules/*", - "./node_modules/*" + "./node_modules/*", + "./node_modules/nativescript-angular/node_modules/*" ], "~/*": [ "app/*" @@ -23,10 +24,13 @@ } }, "include": [ + "../../nativescript-angular-package", "../../nativescript-angular", "**/*" ], "exclude": [ + "../../nativescript-angular-package/node_modules", + "../../nativescript-angular-package/**/*.d.ts", "../../nativescript-angular/node_modules", "../../nativescript-angular/**/*.d.ts", "node_modules", diff --git a/e2e/routable-animations/package.json b/e2e/routable-animations/package.json index 98cd54e14..381f54d74 100644 --- a/e2e/routable-animations/package.json +++ b/e2e/routable-animations/package.json @@ -15,7 +15,7 @@ "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", - "nativescript-angular": "next", + "nativescript-angular": "file:../../nativescript-angular-package", "nativescript-theme-core": "~1.0.2", "reflect-metadata": "~0.1.8", "rxjs": "^6.4.0", diff --git a/e2e/routable-animations/tsconfig.json b/e2e/routable-animations/tsconfig.json index d93d819b4..eee1eca47 100644 --- a/e2e/routable-animations/tsconfig.json +++ b/e2e/routable-animations/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "*": [ "./node_modules/tns-core-modules/*", - "./node_modules/*" + "./node_modules/*", + "./node_modules/nativescript-angular/node_modules/*" ], "~/*": [ "app/*" @@ -23,10 +24,13 @@ } }, "include": [ + "../../nativescript-angular-package", "../../nativescript-angular", "**/*" ], "exclude": [ + "../../nativescript-angular-package/node_modules", + "../../nativescript-angular-package/**/*.d.ts", "../../nativescript-angular/node_modules", "../../nativescript-angular/**/*.d.ts", "node_modules", diff --git a/e2e/router-tab-view/app/app.component.ts b/e2e/router-tab-view/app/app.component.ts index 7c18980d7..20ccd80c4 100644 --- a/e2e/router-tab-view/app/app.component.ts +++ b/e2e/router-tab-view/app/app.component.ts @@ -1,9 +1,8 @@ -import { Component, OnInit, AfterViewInit, AfterContentInit, ViewChild } from "@angular/core"; +import { Component, ViewChild } from "@angular/core"; import { TabViewDirective } from "nativescript-angular/directives"; import { Router, NavigationEnd } from "@angular/router"; import { NSLocationStrategy } from "nativescript-angular/router/ns-location-strategy"; - @Component({ selector: "ns-app", templateUrl: "app.component.html", diff --git a/e2e/router-tab-view/app/app.module.ts b/e2e/router-tab-view/app/app.module.ts index 7f98a48a2..632cdf76b 100644 --- a/e2e/router-tab-view/app/app.module.ts +++ b/e2e/router-tab-view/app/app.module.ts @@ -5,13 +5,12 @@ import { AppComponent } from "./app.component"; import { DataService } from "./data.service"; -import { enable as traceEnable, addCategories } from "tns-core-modules/trace"; -import { routerTraceCategory } from "nativescript-angular/trace"; +import { enable as traceEnable } from "tns-core-modules/trace"; // addCategories(routerTraceCategory); traceEnable(); -class MyErrorHandler implements ErrorHandler { +export class MyErrorHandler implements ErrorHandler { handleError(error) { console.log("### ErrorHandler Error: " + error.toString()); console.log("### ErrorHandler Stack: " + error.stack); diff --git a/e2e/router-tab-view/package.json b/e2e/router-tab-view/package.json index 4637596b4..fc1120b74 100644 --- a/e2e/router-tab-view/package.json +++ b/e2e/router-tab-view/package.json @@ -15,7 +15,7 @@ "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", - "nativescript-angular": "file:../../nativescript-angular", + "nativescript-angular": "file:../../nativescript-angular-package", "nativescript-theme-core": "~1.0.4", "reflect-metadata": "~0.1.8", "rxjs": "^6.4.0", diff --git a/e2e/router-tab-view/tsconfig.json b/e2e/router-tab-view/tsconfig.json index d93d819b4..eee1eca47 100644 --- a/e2e/router-tab-view/tsconfig.json +++ b/e2e/router-tab-view/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "*": [ "./node_modules/tns-core-modules/*", - "./node_modules/*" + "./node_modules/*", + "./node_modules/nativescript-angular/node_modules/*" ], "~/*": [ "app/*" @@ -23,10 +24,13 @@ } }, "include": [ + "../../nativescript-angular-package", "../../nativescript-angular", "**/*" ], "exclude": [ + "../../nativescript-angular-package/node_modules", + "../../nativescript-angular-package/**/*.d.ts", "../../nativescript-angular/node_modules", "../../nativescript-angular/**/*.d.ts", "node_modules", diff --git a/e2e/router/package.json b/e2e/router/package.json index 65d8c663c..e4e5126aa 100644 --- a/e2e/router/package.json +++ b/e2e/router/package.json @@ -15,7 +15,7 @@ "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", - "nativescript-angular": "file:../../nativescript-angular", + "nativescript-angular": "file:../../nativescript-angular-package", "nativescript-intl": "^3.0.0", "reflect-metadata": "~0.1.8", "rxjs": "^6.4.0", diff --git a/e2e/router/tsconfig.json b/e2e/router/tsconfig.json index d93d819b4..eee1eca47 100644 --- a/e2e/router/tsconfig.json +++ b/e2e/router/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "*": [ "./node_modules/tns-core-modules/*", - "./node_modules/*" + "./node_modules/*", + "./node_modules/nativescript-angular/node_modules/*" ], "~/*": [ "app/*" @@ -23,10 +24,13 @@ } }, "include": [ + "../../nativescript-angular-package", "../../nativescript-angular", "**/*" ], "exclude": [ + "../../nativescript-angular-package/node_modules", + "../../nativescript-angular-package/**/*.d.ts", "../../nativescript-angular/node_modules", "../../nativescript-angular/**/*.d.ts", "node_modules", diff --git a/e2e/single-page/app/app.module.ts b/e2e/single-page/app/app.module.ts index d2187c691..4a13ad7fe 100644 --- a/e2e/single-page/app/app.module.ts +++ b/e2e/single-page/app/app.module.ts @@ -1,6 +1,7 @@ import { NgModule, NgModuleFactoryLoader, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { NSModuleFactoryLoader } from "nativescript-angular/router"; + import { isNavigationButton } from "nativescript-angular/directives/action-bar"; import { AppRoutingModule, @@ -9,7 +10,7 @@ import { import { AppComponent } from "./app.component"; -import { rendererTraceCategory, viewUtilCategory, routeReuseStrategyTraceCategory, routerTraceCategory } from "nativescript-angular/trace"; +import { routeReuseStrategyTraceCategory, routerTraceCategory } from "nativescript-angular/trace"; import { setCategories, enable } from "tns-core-modules/trace"; import { ModalComponent } from "./second/modal/modal.component"; setCategories(routerTraceCategory + "," + routeReuseStrategyTraceCategory); diff --git a/e2e/single-page/app/first/first.component.ts b/e2e/single-page/app/first/first.component.ts index 58956ec8f..aaef09a8d 100644 --- a/e2e/single-page/app/first/first.component.ts +++ b/e2e/single-page/app/first/first.component.ts @@ -1,10 +1,6 @@ -import { Component, OnInit, OnDestroy, OnChanges } from "@angular/core"; -import { ActivatedRoute, Router, Route } from "@angular/router"; -import { Location } from "@angular/common"; +import { Component, OnInit, OnDestroy } from "@angular/core"; import { Page } from "tns-core-modules/ui/page"; -import { Observable } from "rxjs"; -import { FrameService } from "nativescript-angular/platform-providers"; @Component({ selector: "first", diff --git a/e2e/single-page/package.json b/e2e/single-page/package.json index 001d8b0a6..a1de11d9a 100644 --- a/e2e/single-page/package.json +++ b/e2e/single-page/package.json @@ -15,7 +15,7 @@ "@angular/platform-browser": "~8.2.0", "@angular/platform-browser-dynamic": "~8.2.0", "@angular/router": "~8.2.0", - "nativescript-angular": "file:../../nativescript-angular", + "nativescript-angular": "file:../../nativescript-angular-package", "nativescript-intl": "^3.0.0", "reflect-metadata": "~0.1.8", "rxjs": "^6.4.0", diff --git a/e2e/single-page/tsconfig.json b/e2e/single-page/tsconfig.json index d93d819b4..eee1eca47 100644 --- a/e2e/single-page/tsconfig.json +++ b/e2e/single-page/tsconfig.json @@ -15,7 +15,8 @@ "paths": { "*": [ "./node_modules/tns-core-modules/*", - "./node_modules/*" + "./node_modules/*", + "./node_modules/nativescript-angular/node_modules/*" ], "~/*": [ "app/*" @@ -23,10 +24,13 @@ } }, "include": [ + "../../nativescript-angular-package", "../../nativescript-angular", "**/*" ], "exclude": [ + "../../nativescript-angular-package/node_modules", + "../../nativescript-angular-package/**/*.d.ts", "../../nativescript-angular/node_modules", "../../nativescript-angular/**/*.d.ts", "node_modules", diff --git a/e2e/tests-app-ng/app/lazy/lazy.component.css b/e2e/tests-app-ng/app/lazy/lazy.component.css new file mode 100644 index 000000000..eec6173f7 --- /dev/null +++ b/e2e/tests-app-ng/app/lazy/lazy.component.css @@ -0,0 +1,8 @@ + +.system-background-color-stack-layout { + background-color: white; +} + +.ns-dark .system-background-color-stack-layout { + background-color: gray; +} diff --git a/e2e/tests-app-ng/app/lazy/lazy.component.html b/e2e/tests-app-ng/app/lazy/lazy.component.html index 6ffd7d2a6..82d691f92 100644 --- a/e2e/tests-app-ng/app/lazy/lazy.component.html +++ b/e2e/tests-app-ng/app/lazy/lazy.component.html @@ -1,4 +1,4 @@ - +