Skip to content

Commit 06b659d

Browse files
committed
feat: nx migrate @nativescript/plugin-tools for Nx 16 and Angular 16
1 parent e87f9c8 commit 06b659d

File tree

84 files changed

+1327
-528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1327
-528
lines changed

.eslintrc.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx"],
4+
"plugins": ["@nx"],
55
"overrides": [
66
{
77
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
88
"rules": {
9-
"@nrwl/nx/enforce-module-boundaries": [
9+
"@nx/enforce-module-boundaries": [
1010
"error",
1111
{
1212
"enforceBuildableLibDependency": true,
@@ -23,12 +23,12 @@
2323
},
2424
{
2525
"files": ["*.ts", "*.tsx"],
26-
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:@nrwl/nx/typescript"],
26+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:@nx/typescript"],
2727
"rules": {}
2828
},
2929
{
3030
"files": ["*.js", "*.jsx"],
31-
"extends": ["plugin:@nrwl/nx/javascript"],
31+
"extends": ["plugin:@nx/javascript"],
3232
"rules": {}
3333
},
3434
{

apps/demo-angular/project.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dependsOn": [
1818
{
1919
"target": "build.all",
20-
"projects": "dependencies"
20+
"dependencies": true
2121
}
2222
]
2323
},
@@ -30,7 +30,7 @@
3030
"dependsOn": [
3131
{
3232
"target": "build.all",
33-
"projects": "dependencies"
33+
"dependencies": true
3434
}
3535
]
3636
},
@@ -43,7 +43,7 @@
4343
"dependsOn": [
4444
{
4545
"target": "build.all",
46-
"projects": "dependencies"
46+
"dependencies": true
4747
}
4848
]
4949
},
@@ -54,7 +54,7 @@
5454
}
5555
},
5656
"lint": {
57-
"executor": "@nrwl/linter:eslint",
57+
"executor": "@nx/linter:eslint",
5858
"options": {
5959
"lintFilePatterns": ["apps/demo-angular/**/*.ts"]
6060
}

apps/demo/project.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dependsOn": [
1818
{
1919
"target": "build.all",
20-
"projects": "dependencies"
20+
"dependencies": true
2121
}
2222
]
2323
},
@@ -30,7 +30,7 @@
3030
"dependsOn": [
3131
{
3232
"target": "build.all",
33-
"projects": "dependencies"
33+
"dependencies": true
3434
}
3535
]
3636
},
@@ -43,7 +43,7 @@
4343
"dependsOn": [
4444
{
4545
"target": "build.all",
46-
"projects": "dependencies"
46+
"dependencies": true
4747
}
4848
]
4949
},
@@ -54,7 +54,7 @@
5454
}
5555
},
5656
"lint": {
57-
"executor": "@nrwl/linter:eslint",
57+
"executor": "@nx/linter:eslint",
5858
"options": {
5959
"lintFilePatterns": ["apps/demo/**/*.ts"]
6060
}

jest.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const { getJestProjects } = require('@nrwl/jest');
1+
const { getJestProjects } = require('@nx/jest');
22

33
export default { projects: [...getJestProjects()] };

migrations.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"migrations": [
3+
{
4+
"cli": "nx",
5+
"version": "5.2.0-alpha.1",
6+
"description": "Migrate tools to 5.2.0",
7+
"implementation": "./src/migrations/update-5-2-0/update-5-2-0",
8+
"package": "@nativescript/plugin-tools",
9+
"name": "update-to-5.2.0"
10+
}
11+
]
12+
}

package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,36 @@
1616
},
1717
"private": true,
1818
"devDependencies": {
19-
"@angular-devkit/build-angular": "^15.0.0",
20-
"@angular/animations": "^15.0.0",
21-
"@angular/common": "^15.0.0",
22-
"@angular/compiler": "^15.0.0",
23-
"@angular/compiler-cli": "^15.0.0",
24-
"@angular/core": "^15.0.0",
25-
"@angular/forms": "^15.0.0",
26-
"@angular/platform-browser": "^15.0.0",
27-
"@angular/platform-browser-dynamic": "^15.0.0",
28-
"@angular/router": "^15.0.0",
19+
"@angular-devkit/build-angular": "^16.0.0",
20+
"@angular/animations": "~16.0.0",
21+
"@angular/common": "~16.0.0",
22+
"@angular/compiler": "~16.0.0",
23+
"@angular/compiler-cli": "~16.0.0",
24+
"@angular/core": "~16.0.0",
25+
"@angular/forms": "~16.0.0",
26+
"@angular/platform-browser": "~16.0.0",
27+
"@angular/platform-browser-dynamic": "~16.0.0",
28+
"@angular/router": "~16.0.0",
2929
"@nativescript-community/perms": "^2.3.0",
30-
"@nativescript/angular": "^15.0.0",
30+
"@nativescript/angular": "^16.0.0",
3131
"@nativescript/core": "~8.5.0",
32-
"@nativescript/plugin-tools": "5.1.0",
32+
"@nativescript/plugin-tools": "5.2.0-alpha.1",
3333
"@nativescript/types": "~8.5.0",
3434
"@nativescript/webpack": "~5.0.5",
35-
"@ngtools/webpack": "^15.0.0",
35+
"@ngtools/webpack": "~16.0.0",
3636
"@types/mkdirp": "^1.0.1",
3737
"@types/sprintf-js": "^1.1.0",
3838
"husky": "^8.0.0",
3939
"mkdirp": "^1.0.4",
4040
"nativescript-permissions": "1.3.11",
4141
"nativescript-vue": "~2.9.0",
4242
"nativescript-vue-template-compiler": "~2.9.0",
43-
"ng-packagr": "^15.0.0",
43+
"ng-packagr": "~16.0.0",
4444
"rxjs": "~7.8.0",
4545
"shorthash": "0.0.2",
4646
"simple-plist": "^1.1.0",
4747
"sprintf-js": "^1.1.1",
48-
"typescript": "~4.8.0",
48+
"typescript": "~5.0.0",
4949
"vue": "~2.6.12",
5050
"zone.js": "~0.13.0"
5151
},

packages/animated-circle/angular/.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{
99
"files": ["*.ts", "*.tsx"],
1010
"rules": {
11-
"@nrwl/nx/enforce-module-boundaries": [
11+
"@nx/enforce-module-boundaries": [
1212
"error",
1313
{
1414
"allowCircularSelfDependency": true

packages/animated-circle/package.json

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
{
2-
"name": "@nativescript/animated-circle",
3-
"version": "1.1.7",
4-
"description": "Animated circle progress in your NativeScript applications.",
5-
"main": "index",
6-
"typings": "index.d.ts",
7-
"nativescript": {
8-
"platforms": {
9-
"ios": "6.0.0",
10-
"android": "6.0.0"
11-
}
12-
},
13-
"repository": {
14-
"type": "git",
15-
"url": "https://github.com/NativeScript/plugins.git"
16-
},
17-
"keywords": [
18-
"NativeScript",
19-
"JavaScript",
20-
"TypeScript",
21-
"iOS",
22-
"Android",
23-
"animated circle"
24-
],
25-
"author": {
26-
"name": "NativeScript",
27-
"email": "oss@nativescript.org"
28-
},
29-
"bugs": {
30-
"url": "https://github.com/NativeScript/plugins/issues"
31-
},
32-
"license": "Apache-2.0",
33-
"homepage": "https://github.com/NativeScript/plugins",
34-
"readmeFilename": "README.md",
35-
"bootstrapper": "@nativescript/plugin-seed"
2+
"name": "@nativescript/animated-circle",
3+
"version": "2.0.0-alpha.0",
4+
"description": "Animated circle progress in your NativeScript applications.",
5+
"main": "index",
6+
"typings": "index.d.ts",
7+
"nativescript": {
8+
"platforms": {
9+
"ios": "6.0.0",
10+
"android": "6.0.0"
11+
}
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/NativeScript/plugins.git"
16+
},
17+
"keywords": [
18+
"NativeScript",
19+
"JavaScript",
20+
"TypeScript",
21+
"iOS",
22+
"Android",
23+
"animated circle"
24+
],
25+
"author": {
26+
"name": "NativeScript",
27+
"email": "oss@nativescript.org"
28+
},
29+
"bugs": {
30+
"url": "https://github.com/NativeScript/plugins/issues"
31+
},
32+
"license": "Apache-2.0",
33+
"homepage": "https://github.com/NativeScript/plugins",
34+
"readmeFilename": "README.md",
35+
"bootstrapper": "@nativescript/plugin-seed"
3636
}

packages/animated-circle/project.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
}
2323
]
2424
},
25-
"executor": "@nrwl/js:tsc",
25+
"executor": "@nx/js:tsc",
2626
"dependsOn": [
2727
{
2828
"target": "build.all",
29-
"projects": "dependencies"
29+
"dependencies": true
3030
}
3131
]
3232
},
@@ -40,11 +40,10 @@
4040
"dependsOn": [
4141
{
4242
"target": "build.all",
43-
"projects": "dependencies"
43+
"dependencies": true
4444
},
4545
{
46-
"target": "build",
47-
"projects": "self"
46+
"target": "build"
4847
}
4948
]
5049
},
@@ -56,7 +55,7 @@
5655
"executor": "nx:run-commands"
5756
},
5857
"lint": {
59-
"executor": "@nrwl/linter:eslint",
58+
"executor": "@nx/linter:eslint",
6059
"options": {
6160
"lintFilePatterns": ["packages/animated-circle/**/*.ts"]
6261
}

packages/appavailability/package.json

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"name": "@nativescript/appavailability",
3-
"version": "2.0.0",
4-
"description": "A NativeScript plugin to check for availability of other apps on the device.",
5-
"main": "index",
6-
"typings": "index.d.ts",
7-
"nativescript": {
8-
"platforms": {
9-
"ios": "6.0.0",
10-
"android": "6.0.0"
11-
}
12-
},
13-
"repository": {
14-
"type": "git",
15-
"url": "https://github.com/NativeScript/plugins.git"
16-
},
17-
"keywords": [
18-
"NativeScript",
19-
"JavaScript",
20-
"TypeScript",
21-
"iOS",
22-
"Android"
23-
],
24-
"author": {
25-
"name": "NativeScript",
26-
"email": "oss@nativescript.org"
27-
},
28-
"bugs": {
29-
"url": "https://github.com/NativeScript/plugins/issues"
30-
},
31-
"license": "Apache-2.0",
32-
"homepage": "https://github.com/NativeScript/plugins",
33-
"readmeFilename": "README.md",
34-
"bootstrapper": "@nativescript/plugin-seed"
2+
"name": "@nativescript/appavailability",
3+
"version": "2.0.0",
4+
"description": "A NativeScript plugin to check for availability of other apps on the device.",
5+
"main": "index",
6+
"typings": "index.d.ts",
7+
"nativescript": {
8+
"platforms": {
9+
"ios": "6.0.0",
10+
"android": "6.0.0"
11+
}
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/NativeScript/plugins.git"
16+
},
17+
"keywords": [
18+
"NativeScript",
19+
"JavaScript",
20+
"TypeScript",
21+
"iOS",
22+
"Android"
23+
],
24+
"author": {
25+
"name": "NativeScript",
26+
"email": "oss@nativescript.org"
27+
},
28+
"bugs": {
29+
"url": "https://github.com/NativeScript/plugins/issues"
30+
},
31+
"license": "Apache-2.0",
32+
"homepage": "https://github.com/NativeScript/plugins",
33+
"readmeFilename": "README.md",
34+
"bootstrapper": "@nativescript/plugin-seed"
3535
}

packages/appavailability/project.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
}
2323
]
2424
},
25-
"executor": "@nrwl/js:tsc",
25+
"executor": "@nx/js:tsc",
2626
"dependsOn": [
2727
{
2828
"target": "build.all",
29-
"projects": "dependencies"
29+
"dependencies": true
3030
}
3131
]
3232
},
@@ -40,11 +40,10 @@
4040
"dependsOn": [
4141
{
4242
"target": "build.all",
43-
"projects": "dependencies"
43+
"dependencies": true
4444
},
4545
{
46-
"target": "build",
47-
"projects": "self"
46+
"target": "build"
4847
}
4948
]
5049
},
@@ -56,7 +55,7 @@
5655
"executor": "nx:run-commands"
5756
},
5857
"lint": {
59-
"executor": "@nrwl/linter:eslint",
58+
"executor": "@nx/linter:eslint",
6059
"options": {
6160
"lintFilePatterns": ["packages/appavailability/**/*.ts"]
6261
}

0 commit comments

Comments
 (0)