chore: Nx 12 + fix ui app + TS 4.1 updates (#9359)

This commit is contained in:
Nathan Walker
2021-04-26 19:11:19 -07:00
committed by GitHub
parent 272ac578b1
commit 1b29d05099
14 changed files with 33 additions and 33 deletions

View File

@ -17,7 +17,7 @@
"@nativescript/android": "7.0.1", "@nativescript/android": "7.0.1",
"@nativescript/ios": "7.2.0", "@nativescript/ios": "7.2.0",
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz", "@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
"typescript": "~4.0.0" "typescript": "4.1.4"
}, },
"gitHead": "c06800e52ee1a184ea2dffd12a6702aaa43be4e3", "gitHead": "c06800e52ee1a184ea2dffd12a6702aaa43be4e3",
"readme": "NativeScript Application" "readme": "NativeScript Application"

View File

@ -14,6 +14,6 @@
"@nativescript/android": "7.0.1", "@nativescript/android": "7.0.1",
"@nativescript/ios": "7.2.0", "@nativescript/ios": "7.2.0",
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz", "@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
"typescript": "~4.0.0" "typescript": "4.1.4"
} }
} }

View File

@ -14,7 +14,7 @@
"@nativescript/android": "7.0.1", "@nativescript/android": "7.0.1",
"@nativescript/ios": "7.2.0", "@nativescript/ios": "7.2.0",
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz", "@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
"typescript": "~4.0.0" "typescript": "4.1.4"
}, },
"gitHead": "8ab7726d1ee9991706069c1359c552e67ee0d1a4", "gitHead": "8ab7726d1ee9991706069c1359c552e67ee0d1a4",
"readme": "NativeScript Application", "readme": "NativeScript Application",

View File

@ -1,4 +1,4 @@
import { EventData, TextBase } from '@nativescript/core'; import { EventData, TextBase, parseCSSShadow } from '@nativescript/core';
// prettier-ignore // prettier-ignore
const possibleValues = [ const possibleValues = [
@ -22,10 +22,10 @@ export function buttonTap(args: EventData) {
let newIndex = currentIndex++ % possibleValues.length; let newIndex = currentIndex++ % possibleValues.length;
let newValue = possibleValues[newIndex]; let newValue = possibleValues[newIndex];
lbl.textShadow = newValue; lbl.textShadow = parseCSSShadow(newValue);
btn.textShadow = newValue; btn.textShadow = parseCSSShadow(newValue);
textField.textShadow = newValue; textField.textShadow = parseCSSShadow(newValue);
textView.textShadow = newValue; textView.textShadow = parseCSSShadow(newValue);
if (lbl.text === 'Change text') { if (lbl.text === 'Change text') {
lbl.text = btn.text = textField.text = textView.text = 'Text changed'; lbl.text = btn.text = textField.text = textView.text = 'Text changed';

View File

@ -3,7 +3,7 @@ import { Page, NavigatedData } from '@nativescript/core/ui/page';
import { StackLayout } from '@nativescript/core/ui/layouts/stack-layout'; import { StackLayout } from '@nativescript/core/ui/layouts/stack-layout';
import { ScrollView } from '@nativescript/core/ui/scroll-view'; import { ScrollView } from '@nativescript/core/ui/scroll-view';
import { Label } from '@nativescript/core/ui/label'; import { Label } from '@nativescript/core/ui/label';
import { Enums } from '@nativescript/core'; import { CoreTypes } from '@nativescript/core';
import * as typeUtils from '@nativescript/core/utils/types'; import * as typeUtils from '@nativescript/core/utils/types';
import { Color } from '@nativescript/core/color'; import { Color } from '@nativescript/core/color';
import { isIOS } from '@nativescript/core/platform'; import { isIOS } from '@nativescript/core/platform';

View File

@ -1,4 +1,4 @@
import { Image, Enums } from '@nativescript/core'; import { Image, CoreTypes } from '@nativescript/core';
import { GridLayout } from '@nativescript/core/ui/layouts/grid-layout'; import { GridLayout } from '@nativescript/core/ui/layouts/grid-layout';
import { Color } from '@nativescript/core/color'; import { Color } from '@nativescript/core/color';
import * as imageSource from '@nativescript/core/image-source'; import * as imageSource from '@nativescript/core/image-source';

View File

@ -1,4 +1,4 @@
import { Image, Enums } from '@nativescript/core'; import { Image, CoreTypes } from '@nativescript/core';
import { Label } from '@nativescript/core/ui/label'; import { Label } from '@nativescript/core/ui/label';
import { LayoutBase } from '@nativescript/core/ui/layouts/layout-base'; import { LayoutBase } from '@nativescript/core/ui/layouts/layout-base';

View File

@ -1,4 +1,4 @@
import { Enums } from '@nativescript/core'; import { CoreTypes } from '@nativescript/core';
import * as pageModule from '@nativescript/core/ui/page'; import * as pageModule from '@nativescript/core/ui/page';
import * as model from './myview'; import * as model from './myview';

View File

@ -1,4 +1,4 @@
import { Enums } from '@nativescript/core'; import { CoreTypes } from '@nativescript/core';
import * as pageModule from '@nativescript/core/ui/page'; import * as pageModule from '@nativescript/core/ui/page';
import * as model from './myview'; import * as model from './myview';

View File

@ -1,4 +1,4 @@
import { Enums } from '@nativescript/core'; import { CoreTypes } from '@nativescript/core';
import * as pageModule from '@nativescript/core/ui/page'; import * as pageModule from '@nativescript/core/ui/page';
import * as model from './myview'; import * as model from './myview';

View File

@ -1,4 +1,4 @@
import { Enums } from '@nativescript/core'; import { CoreTypes } from '@nativescript/core';
import * as pageModule from '@nativescript/core/ui/page'; import * as pageModule from '@nativescript/core/ui/page';
import * as model from './myview'; import * as model from './myview';

View File

@ -20,30 +20,30 @@
"nativescript-theme-core": "^1.0.4" "nativescript-theme-core": "^1.0.4"
}, },
"devDependencies": { "devDependencies": {
"@nativescript/eslint-plugin": "0.0.1", "@nativescript/eslint-plugin": "~0.0.4",
"@nativescript/hook": "^2.0.0", "@nativescript/hook": "^2.0.0",
"@nrwl/cli": "11.5.2", "@nrwl/cli": "12.0.8",
"@nrwl/eslint-plugin-nx": "11.5.2", "@nrwl/eslint-plugin-nx": "12.0.8",
"@nrwl/jest": "11.5.2", "@nrwl/jest": "12.0.8",
"@nrwl/node": "11.5.2", "@nrwl/node": "12.0.8",
"@nrwl/tao": "11.5.2", "@nrwl/tao": "12.0.8",
"@nrwl/workspace": "11.5.2", "@nrwl/workspace": "12.0.8",
"@nstudio/focus": "~11.1.0", "@nstudio/focus": "~11.1.0",
"@nstudio/nps-i": "~1.1.0", "@nstudio/nps-i": "~1.1.0",
"@prettier/plugin-xml": "^0.13.1", "@prettier/plugin-xml": "^0.13.1",
"@types/chai": "^4.2.11", "@types/chai": "^4.2.11",
"@types/jest": "~26.0.8", "@types/jest": "~26.0.8",
"@types/mocha": "^7.0.2", "@types/mocha": "^7.0.2",
"@types/node": "12.12.38", "@types/node": "14.14.33",
"@typescript-eslint/eslint-plugin": "~4.16.0", "@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "~4.16.0", "@typescript-eslint/parser": "4.19.0",
"chai": "^4.2.0", "chai": "^4.2.0",
"conventional-changelog-cli": "^2.1.1", "conventional-changelog-cli": "^2.1.1",
"copyfiles": "^2.4.0", "copyfiles": "^2.4.0",
"css": "^3.0.0", "css": "^3.0.0",
"css-tree": "^1.0.0-alpha.39", "css-tree": "^1.0.0-alpha.39",
"dotenv": "~8.2.0", "dotenv": "8.2.0",
"eslint": "~7.21.0", "eslint": "7.22.0",
"eslint-config-prettier": "8.1.0", "eslint-config-prettier": "8.1.0",
"eslint-plugin-prettier": "^3.3.1", "eslint-plugin-prettier": "^3.3.1",
"gonzales": "^1.0.7", "gonzales": "^1.0.7",
@ -66,7 +66,7 @@
"ts-node": "9.1.1", "ts-node": "9.1.1",
"ts-patch": "^1.3.0", "ts-patch": "^1.3.0",
"tslint": "6.1.3", "tslint": "6.1.3",
"typescript": "~4.0.3", "typescript": "4.1.4",
"webpack": "~4.44.1", "webpack": "~4.44.1",
"webpack-cli": "~3.3.12" "webpack-cli": "~3.3.12"
}, },

View File

@ -74,7 +74,7 @@ export class FileSystemEntity {
this.removeSync(localError); this.removeSync(localError);
if (!hasError) { if (!hasError) {
resolve(); resolve(true);
} }
}); });
} }
@ -108,7 +108,7 @@ export class FileSystemEntity {
this.renameSync(newName, localError); this.renameSync(newName, localError);
if (!hasError) { if (!hasError) {
resolve(); resolve(true);
} }
}); });
} }
@ -357,7 +357,7 @@ export class File extends FileSystemEntity {
.writeTextAsync(this.path, content, encoding) .writeTextAsync(this.path, content, encoding)
.then( .then(
() => { () => {
resolve(); resolve(true);
this._locked = false; this._locked = false;
}, },
(error) => { (error) => {
@ -434,7 +434,7 @@ export class Folder extends FileSystemEntity {
this.clearSync(onError); this.clearSync(onError);
if (!hasError) { if (!hasError) {
resolve(); resolve(true);
} }
}); });
} }

View File

@ -99,6 +99,6 @@
"nyc": "^15.1.0", "nyc": "^15.1.0",
"proxyquire": "~2.1.0", "proxyquire": "~2.1.0",
"source-map-support": "^0.5.13", "source-map-support": "^0.5.13",
"typescript": "~4.0.0" "typescript": "4.1.4"
} }
} }