Skip to content

Commit 4b59981

Browse files
committed
chore: nx migrate @nativescript/plugin-tools
1 parent 2931e2c commit 4b59981

16 files changed

+359
-326
lines changed

.eslintrc

-40
This file was deleted.

.eslintrc.json

+41
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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
apps/**/*_off

apps/demo-angular/.eslintrc.json

+18
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/project.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"root": "apps/demo-angular/",
3+
"sourceRoot": "apps/demo-angular/src",
4+
"projectType": "application",
5+
"prefix": "demo",
6+
"targets": {
7+
"build": {
8+
"executor": "@nativescript/nx:build",
9+
"options": {
10+
"noHmr": true,
11+
"production": true,
12+
"uglify": true,
13+
"release": true,
14+
"forDevice": true
15+
},
16+
"dependsOn": [
17+
{
18+
"target": "build.all",
19+
"projects": "dependencies"
20+
}
21+
]
22+
},
23+
"ios": {
24+
"executor": "@nativescript/nx:build",
25+
"options": {
26+
"platform": "ios"
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+
},
40+
"dependsOn": [
41+
{
42+
"target": "build.all",
43+
"projects": "dependencies"
44+
}
45+
]
46+
},
47+
"clean": {
48+
"executor": "@nativescript/nx:build",
49+
"options": {
50+
"clean": true
51+
}
52+
},
53+
"lint": {
54+
"executor": "@nrwl/linter:eslint",
55+
"options": {
56+
"lintFilePatterns": ["apps/demo-angular/**/*.ts"]
57+
}
58+
}
59+
}
60+
}

apps/demo-angular/tsconfig.json

+5-20
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
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"]
197
}
208
},
21-
"files": [
22-
"./references.d.ts",
23-
"./src/main.ts",
24-
"./src/polyfills.ts"
25-
]
26-
}
9+
"files": ["./references.d.ts", "./src/main.ts", "./src/polyfills.ts"],
10+
"include": ["../../packages/**/references.d.ts"]
11+
}

apps/demo/.eslintrc.json

+18
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/project.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"root": "apps/demo/",
3+
"sourceRoot": "apps/demo/src",
4+
"projectType": "application",
5+
"prefix": "demo",
6+
"targets": {
7+
"build": {
8+
"executor": "@nativescript/nx:build",
9+
"options": {
10+
"noHmr": true,
11+
"production": true,
12+
"uglify": true,
13+
"release": true,
14+
"forDevice": true
15+
},
16+
"dependsOn": [
17+
{
18+
"target": "build.all",
19+
"projects": "dependencies"
20+
}
21+
]
22+
},
23+
"ios": {
24+
"executor": "@nativescript/nx:build",
25+
"options": {
26+
"platform": "ios"
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+
},
40+
"dependsOn": [
41+
{
42+
"target": "build.all",
43+
"projects": "dependencies"
44+
}
45+
]
46+
},
47+
"clean": {
48+
"executor": "@nativescript/nx:build",
49+
"options": {
50+
"clean": true
51+
}
52+
},
53+
"lint": {
54+
"executor": "@nrwl/linter:eslint",
55+
"options": {
56+
"lintFilePatterns": ["apps/demo/**/*.ts"]
57+
}
58+
}
59+
}
60+
}

apps/demo/tsconfig.json

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"rootDirs": [
5-
".",
6-
"../.."
7-
],
4+
"rootDirs": [".", "../.."],
85
"baseUrl": ".",
96
"paths": {
10-
"~/*": [
11-
"src/*"
12-
],
13-
"@nativescript/*": [
14-
"../../packages/*"
15-
],
16-
"@demo/shared": [
17-
"../../tools/demo/index.ts"
18-
]
7+
"~/*": ["src/*"],
8+
"@demo/shared": ["../../tools/demo/index.ts"]
199
}
2010
}
21-
}
11+
}

nx.json

+30-29
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
{
2-
"npmScope": "nativescript",
3-
"affected": {
4-
"defaultBase": "master"
5-
},
6-
"implicitDependencies": {
7-
"workspace.json": "*",
8-
"package.json": {
9-
"dependencies": "*",
10-
"devDependencies": "*"
11-
},
12-
"tsconfig.base.json": "*",
13-
"tslint.json": "*",
14-
"nx.json": "*"
15-
},
16-
"projects": {
17-
"demo": {
18-
"tags": []
19-
},
20-
"demo-angular": {
21-
"tags": []
22-
},
23-
"all": {
24-
"tags": []
25-
}
26-
},
27-
"workspaceLayout": {
28-
"appsDir": "apps",
29-
"libsDir": "packages"
30-
}
2+
"npmScope": "nativescript",
3+
"affected": {
4+
"defaultBase": "master"
5+
},
6+
"implicitDependencies": {
7+
"workspace.json": "*",
8+
"package.json": {
9+
"dependencies": "*",
10+
"devDependencies": "*"
11+
},
12+
"tsconfig.base.json": "*",
13+
"tslint.json": "*",
14+
"nx.json": "*"
15+
},
16+
"workspaceLayout": {
17+
"appsDir": "apps",
18+
"libsDir": "packages"
19+
},
20+
"tasksRunnerOptions": {
21+
"default": {
22+
"runner": "@nrwl/workspace/tasks-runners/default",
23+
"options": {
24+
"cacheableOperations": ["build", "build.all", "lint", "test", "e2e"],
25+
"runtimeCacheInputs": ["node -v"]
26+
}
27+
}
28+
},
29+
"cli": {
30+
"defaultCollection": "@nrwl/workspace"
31+
}
3132
}

0 commit comments

Comments
 (0)