Content-Length: 892010 | pFad | http://github.com/NativeScript/mlkit/commit/e0d86d81b1ab801dfcf200b3e68feab2085e9404

46 chore: nx migrate @nativescript/plugin-tools · NativeScript/mlkit@e0d86d8 · GitHub
Skip to content

Commit e0d86d8

Browse files
committed
chore: nx migrate @nativescript/plugin-tools
1 parent 1f37a81 commit e0d86d8

40 files changed

+1238
-878
lines changed

.eslintrc

Lines changed: 0 additions & 41 deletions
This file was deleted.

.eslintrc.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nrwl/nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
8+
"rules": {
9+
"@nrwl/nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
]
22+
}
23+
},
24+
{
25+
"files": ["*.ts", "*.tsx"],
26+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:@nrwl/nx/typescript"],
27+
"rules": {}
28+
},
29+
{
30+
"files": ["*.js", "*.jsx"],
31+
"extends": ["plugin:@nrwl/nx/javascript"],
32+
"rules": {}
33+
},
34+
{
35+
"files": ["references.d.ts"],
36+
"rules": {
37+
"@typescript-eslint/triple-slash-reference": "off"
38+
}
39+
}
40+
]
41+
}

.nxignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
apps/**/*_off

apps/demo-angular/.eslintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*", "node_modules/**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"rules": {}
8+
},
9+
{
10+
"files": ["*.ts", "*.tsx"],
11+
"rules": {}
12+
},
13+
{
14+
"files": ["*.js", "*.jsx"],
15+
"rules": {}
16+
}
17+
]
18+
}

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.1.1",
17-
"@nativescript/ios": "~8.1.0"
16+
"@nativescript/android": "~8.2.0",
17+
"@nativescript/ios": "~8.2.0"
1818
}
1919
}

apps/demo-angular/project.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"sourceRoot": "apps/demo-angular/src",
3+
"projectType": "application",
4+
"prefix": "demo",
5+
"targets": {
6+
"build": {
7+
"executor": "@nativescript/nx:build",
8+
"options": {
9+
"noHmr": true,
10+
"production": true,
11+
"uglify": true,
12+
"release": true,
13+
"forDevice": true
14+
},
15+
"dependsOn": [
16+
{
17+
"target": "build.all",
18+
"projects": "dependencies"
19+
}
20+
]
21+
},
22+
"ios": {
23+
"executor": "@nativescript/nx:build",
24+
"options": {
25+
"platform": "ios"
26+
},
27+
"dependsOn": [
28+
{
29+
"target": "build.all",
30+
"projects": "dependencies"
31+
}
32+
]
33+
},
34+
"android": {
35+
"executor": "@nativescript/nx:build",
36+
"options": {
37+
"platform": "android"
38+
},
39+
"dependsOn": [
40+
{
41+
"target": "build.all",
42+
"projects": "dependencies"
43+
}
44+
]
45+
},
46+
"clean": {
47+
"executor": "@nativescript/nx:build",
48+
"options": {
49+
"clean": true
50+
}
51+
},
52+
"lint": {
53+
"executor": "@nrwl/linter:eslint",
54+
"options": {
55+
"lintFilePatterns": ["apps/demo-angular/**/*.ts"]
56+
}
57+
}
58+
}
59+
}

apps/demo-angular/tsconfig.json

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"rootDirs": [
5-
".",
6-
"../.."
7-
],
8-
"baseUrl": ".",
94
"paths": {
10-
"~/*": [
11-
"src/*"
12-
],
13-
"@nativescript/*": [
14-
"../../dist/packages/*"
15-
],
16-
"@demo/shared": [
17-
"../../tools/demo/index.ts"
18-
]
5+
"~/*": ["src/*"],
6+
"@demo/shared": ["tools/demo/index.ts"],
7+
"@nativescript/mlkit-text-recognition": ["packages/mlkit-text-recognition/index.ts"],
8+
"@nativescript/mlkit-core": ["packages/mlkit-core/index.d.ts"],
9+
"@nativescript/mlkit-core/angular": ["packages/mlkit-core/angular/index.ts"],
10+
"@nativescript/mlkit-barcode-scanning": ["packages/mlkit-barcode-scanning/index.ts"],
11+
"@nativescript/mlkit-face-detection": ["packages/mlkit-face-detection/index.ts"],
12+
"@nativescript/mlkit-image-labeling": ["packages/mlkit-image-labeling/index.ts"],
13+
"@nativescript/mlkit-object-detection": ["packages/mlkit-object-detection/index.ts"],
14+
"@nativescript/mlkit-digital-ink-recognition": ["packages/mlkit-digital-ink-recognition/index.ts"],
15+
"@nativescript/mlkit-pose-detection": ["packages/mlkit-pose-detection/index.ts"],
16+
"@nativescript/mlkit-selfie-segmentation": ["packages/mlkit-selfie-segmentation/index.ts"]
1917
}
2018
},
21-
"files": [
22-
"./references.d.ts",
23-
"./src/main.ts",
24-
"./src/polyfills.ts"
25-
]
26-
}
19+
"files": ["./references.d.ts", "./src/main.ts", "./src/polyfills.ts"],
20+
"include": ["../../packages/**/references.d.ts"]
21+
}

apps/demo/.eslintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": ["../../.eslintrc.json"],
3+
"ignorePatterns": ["!**/*", "node_modules/**/*"],
4+
"overrides": [
5+
{
6+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
7+
"rules": {}
8+
},
9+
{
10+
"files": ["*.ts", "*.tsx"],
11+
"rules": {}
12+
},
13+
{
14+
"files": ["*.js", "*.jsx"],
15+
"rules": {}
16+
}
17+
]
18+
}

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.1.1",
20-
"@nativescript/ios": "~8.1.0"
19+
"@nativescript/android": "~8.2.0",
20+
"@nativescript/ios": "~8.2.0"
2121
}
2222
}

apps/demo/project.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"sourceRoot": "apps/demo/src",
3+
"projectType": "application",
4+
"prefix": "demo",
5+
"targets": {
6+
"build": {
7+
"executor": "@nativescript/nx:build",
8+
"options": {
9+
"noHmr": true,
10+
"production": true,
11+
"uglify": true,
12+
"release": true,
13+
"forDevice": true
14+
},
15+
"dependsOn": [
16+
{
17+
"target": "build.all",
18+
"projects": "dependencies"
19+
}
20+
]
21+
},
22+
"ios": {
23+
"executor": "@nativescript/nx:build",
24+
"options": {
25+
"platform": "ios",
26+
"noHmr": true
27+
},
28+
"dependsOn": [
29+
{
30+
"target": "build.all",
31+
"projects": "dependencies"
32+
}
33+
]
34+
},
35+
"android": {
36+
"executor": "@nativescript/nx:build",
37+
"options": {
38+
"platform": "android",
39+
"noHmr": true
40+
},
41+
"dependsOn": [
42+
{
43+
"target": "build.all",
44+
"projects": "dependencies"
45+
}
46+
]
47+
},
48+
"clean": {
49+
"executor": "@nativescript/nx:build",
50+
"options": {
51+
"clean": true
52+
}
53+
},
54+
"lint": {
55+
"executor": "@nrwl/linter:eslint",
56+
"options": {
57+
"lintFilePatterns": ["apps/demo/**/*.ts"]
58+
}
59+
}
60+
}
61+
}

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/e0d86d81b1ab801dfcf200b3e68feab2085e9404

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy