Skip to content

Commit 9c6c84b

Browse files
authored
chore: nx migrate latest (#9709)
1 parent a88caca commit 9c6c84b

29 files changed

+485
-463
lines changed

apps/automated/nativescript.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ export default {
77
android: {
88
v8Flags: '--expose_gc',
99
},
10+
cli: {
11+
packageManager: 'npm',
12+
},
1013
} as NativeScriptConfig;

apps/automated/project.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"root": "apps/automated/",
3+
"sourceRoot": "apps/automated/app",
4+
"projectType": "application",
5+
"prefix": "nativescript",
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+
},
17+
"ios": {
18+
"executor": "@nativescript/nx:build",
19+
"options": {
20+
"platform": "ios"
21+
}
22+
},
23+
"android": {
24+
"executor": "@nativescript/nx:build",
25+
"options": {
26+
"platform": "android"
27+
}
28+
},
29+
"clean": {
30+
"executor": "@nativescript/nx:build",
31+
"options": {
32+
"clean": true
33+
}
34+
},
35+
"lint": {
36+
"executor": "@nrwl/linter:eslint",
37+
"options": {
38+
"lintFilePatterns": ["apps/automated/**/*.ts", "apps/automated/src/**/*.html"]
39+
}
40+
}
41+
}
42+
}

apps/automated/tsconfig.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"compilerOptions": {
4-
"diagnostics": false,
5-
"paths": {
6-
"~/*": ["src/*"],
7-
"tns-core-modules/*": ["@nativescript/core/*"]
8-
}
9-
}
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"diagnostics": false,
5+
"paths": {
6+
"~/*": ["src/*"],
7+
"tns-core-modules/*": ["@nativescript/core/*"]
8+
}
9+
}
1010
}

apps/toolbox/nativescript.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ export default {
88
v8Flags: '--expose_gc',
99
suppressCallJSMethodExceptions: false,
1010
},
11+
cli: {
12+
packageManager: 'npm',
13+
},
1114
} as NativeScriptConfig;

apps/toolbox/project.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"root": "apps/toolbox/",
3+
"sourceRoot": "apps/toolbox/src",
4+
"projectType": "application",
5+
"prefix": "nativescript",
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+
},
17+
"ios": {
18+
"executor": "@nativescript/nx:build",
19+
"options": {
20+
"platform": "ios"
21+
}
22+
},
23+
"android": {
24+
"executor": "@nativescript/nx:build",
25+
"options": {
26+
"platform": "android"
27+
}
28+
},
29+
"clean": {
30+
"executor": "@nativescript/nx:build",
31+
"options": {
32+
"clean": true
33+
}
34+
},
35+
"lint": {
36+
"executor": "@nrwl/linter:eslint",
37+
"options": {
38+
"lintFilePatterns": ["apps/toolbox/**/*.ts", "apps/toolbox/src/**/*.html"]
39+
}
40+
}
41+
}
42+
}

apps/toolbox/tsconfig.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"extends": "../../tsconfig.json",
3-
"compilerOptions": {
4-
"diagnostics": false,
5-
"paths": {
6-
"~/*": ["src/*"]
7-
}
8-
}
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"diagnostics": false,
5+
"paths": {
6+
"~/*": ["src/*"]
7+
}
8+
}
99
}

apps/ui/nativescript.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ export default {
77
android: {
88
v8Flags: '--expose_gc',
99
},
10+
cli: {
11+
packageManager: 'npm',
12+
},
1013
} as NativeScriptConfig;

apps/ui/project.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"root": "apps/ui/",
3+
"sourceRoot": "apps/ui/src",
4+
"projectType": "application",
5+
"prefix": "nativescript",
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+
},
17+
"ios": {
18+
"executor": "@nativescript/nx:build",
19+
"options": {
20+
"platform": "ios"
21+
}
22+
},
23+
"android": {
24+
"executor": "@nativescript/nx:build",
25+
"options": {
26+
"platform": "android"
27+
}
28+
},
29+
"clean": {
30+
"executor": "@nativescript/nx:build",
31+
"options": {
32+
"clean": true
33+
}
34+
},
35+
"lint": {
36+
"executor": "@nrwl/linter:eslint",
37+
"options": {
38+
"lintFilePatterns": ["apps/ui/**/*.ts", "apps/ui/src/**/*.html"]
39+
}
40+
}
41+
}
42+
}

apps/ui/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
44
"diagnostics": false,
55
"paths": {

jest.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
2-
projects: ['<rootDir>/packages/core'],
3-
};
1+
const { getJestProjects } = require('@nrwl/jest');
2+
3+
module.exports = { projects: getJestProjects() };

0 commit comments

Comments
 (0)