Content-Length: 791782 | pFad | http://github.com/NativeScript/mlkit/commit/62375e24aaf70b712c846afd4d653a3ed83b1f35

78 chore: nx migrate @nativescript/plugin-tools · NativeScript/mlkit@62375e2 · GitHub
Skip to content

Commit 62375e2

Browse files
committed
chore: nx migrate @nativescript/plugin-tools
1 parent adf7e1b commit 62375e2

File tree

21 files changed

+119
-138
lines changed

21 files changed

+119
-138
lines changed

.eslintrc.json

Lines changed: 4 additions & 4 deletions
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
{

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ Thumbs.db
4242

4343
*.tgz
4444
packages/**/angular/dist
45+
46+
.nx/cache

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
/dist
44
/coverage
55
native-src
6+
7+
/.nx/cache

apps/demo-angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@nativescript/mlkit-selfie-segmentation": "file:../../dist/packages/mlkit-selfie-segmentation"
1414
},
1515
"devDependencies": {
16-
"@nativescript/android": "~8.6.0",
17-
"@nativescript/ios": "~8.6.0"
16+
"@nativescript/android": "~8.7.0",
17+
"@nativescript/ios": "~8.7.0"
1818
}
1919
}

apps/demo-angular/project.json

Lines changed: 4 additions & 7 deletions
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
},
@@ -29,7 +29,7 @@
2929
"dependsOn": [
3030
{
3131
"target": "build.all",
32-
"projects": "dependencies"
32+
"dependencies": true
3333
}
3434
]
3535
},
@@ -41,7 +41,7 @@
4141
"dependsOn": [
4242
{
4343
"target": "build.all",
44-
"projects": "dependencies"
44+
"dependencies": true
4545
}
4646
]
4747
},
@@ -52,10 +52,7 @@
5252
}
5353
},
5454
"lint": {
55-
"executor": "@nrwl/linter:eslint",
56-
"options": {
57-
"lintFilePatterns": ["apps/demo-angular/**/*.ts"]
58-
}
55+
"executor": "@nx/eslint:lint"
5956
}
6057
}
6158
}

apps/demo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@nativescript/mlkit-text-recognition": "file:../../packages/mlkit-text-recognition"
1717
},
1818
"devDependencies": {
19-
"@nativescript/android": "8.8.0-alpha.7",
20-
"@nativescript/ios": "~8.6.0"
19+
"@nativescript/android": "~8.7.0",
20+
"@nativescript/ios": "~8.7.0"
2121
}
2222
}

apps/demo/project.json

Lines changed: 4 additions & 7 deletions
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,10 +54,7 @@
5454
}
5555
},
5656
"lint": {
57-
"executor": "@nrwl/linter:eslint",
58-
"options": {
59-
"lintFilePatterns": ["apps/demo/**/*.ts"]
60-
}
57+
"executor": "@nx/eslint:lint"
6158
}
6259
}
6360
}

jest.config.ts

Lines changed: 1 addition & 1 deletion
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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"migrations": [
3+
{
4+
"cli": "nx",
5+
"version": "5.2.0",
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+
}

nx.json

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,42 @@
11
{
2-
"npmScope": "nativescript",
3-
"affected": {
4-
"defaultBase": "master"
5-
},
62
"workspaceLayout": {
73
"appsDir": "apps",
84
"libsDir": "packages"
95
},
106
"tasksRunnerOptions": {
117
"default": {
12-
"runner": "nx/tasks-runners/default",
138
"options": {
14-
"cacheableOperations": ["build", "build.all", "lint", "test", "e2e"],
15-
"runtimeCacheInputs": ["node -v"],
16-
"parallel": 1,
17-
"useDaemonProcess": false
9+
"runtimeCacheInputs": ["node -v"]
1810
}
1911
}
2012
},
2113
"$schema": "./node_modules/nx/schemas/nx-schema.json",
2214
"namedInputs": {
2315
"default": ["{projectRoot}/**/*", "sharedGlobals"],
2416
"sharedGlobals": ["{workspaceRoot}/workspace.json", "{workspaceRoot}/tsconfig.base.json", "{workspaceRoot}/tslint.json", "{workspaceRoot}/nx.json"],
25-
"production": ["default", "!{projectRoot}/.eslintrc.json"]
17+
"production": ["default", "!{projectRoot}/.eslintrc.json", "!{projectRoot}/src/test-setup.[jt]s"]
2618
},
2719
"targetDefaults": {
2820
"build": {
29-
"inputs": ["production", "^production"]
21+
"inputs": ["production", "^production"],
22+
"cache": true
3023
},
3124
"lint": {
32-
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"]
25+
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
26+
"cache": true
27+
},
28+
"build.all": {
29+
"cache": true
30+
},
31+
"test": {
32+
"cache": true
33+
},
34+
"e2e": {
35+
"cache": true
3336
}
34-
}
37+
},
38+
"useDaemonProcess": false,
39+
"parallel": 1,
40+
"useInferencePlugins": false,
41+
"defaultBase": "master"
3542
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/mlkit/commit/62375e24aaf70b712c846afd4d653a3ed83b1f35

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy