Skip to content

Commit 1dccd5c

Browse files
committed
chore: nx migrate @nativescript/plugin-tools
1 parent 62dcd61 commit 1dccd5c

File tree

5 files changed

+67
-81
lines changed

5 files changed

+67
-81
lines changed

apps/demo-angular/project.json

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,8 @@
1212
"production": true,
1313
"uglify": true,
1414
"release": true,
15-
"forDevice": true
16-
},
17-
"dependsOn": [
18-
{
19-
"target": "build.all",
20-
"dependencies": true
21-
}
22-
]
23-
},
24-
"ios": {
25-
"executor": "@nativescript/nx:build",
26-
"options": {
27-
"platform": "ios"
28-
},
29-
"dependsOn": [
30-
{
31-
"target": "build.all",
32-
"dependencies": true
33-
}
34-
]
35-
},
36-
"android": {
37-
"executor": "@nativescript/nx:build",
38-
"options": {
39-
"platform": "android"
15+
"forDevice": true,
16+
"tsConfig": "apps/demo-angular/tsconfig.json"
4017
},
4118
"dependsOn": [
4219
{
@@ -46,13 +23,21 @@
4623
]
4724
},
4825
"clean": {
49-
"executor": "@nativescript/nx:build",
50-
"options": {
51-
"clean": true
52-
}
26+
"executor": "@nativescript/nx:clean",
27+
"options": {}
5328
},
5429
"lint": {
5530
"executor": "@nx/eslint:lint"
31+
},
32+
"debug": {
33+
"executor": "@nativescript/nx:debug",
34+
"options": {
35+
"noHmr": true,
36+
"uglify": false,
37+
"release": false,
38+
"forDevice": false,
39+
"prepare": false
40+
}
5641
}
5742
}
5843
}

apps/demo/project.json

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,8 @@
1212
"production": true,
1313
"uglify": true,
1414
"release": true,
15-
"forDevice": true
16-
},
17-
"dependsOn": [
18-
{
19-
"target": "build.all",
20-
"dependencies": true
21-
}
22-
]
23-
},
24-
"ios": {
25-
"executor": "@nativescript/nx:build",
26-
"options": {
27-
"platform": "ios"
28-
},
29-
"dependsOn": [
30-
{
31-
"target": "build.all",
32-
"dependencies": true
33-
}
34-
]
35-
},
36-
"android": {
37-
"executor": "@nativescript/nx:build",
38-
"options": {
39-
"platform": "android"
15+
"forDevice": true,
16+
"tsConfig": "apps/demo/tsconfig.json"
4017
},
4118
"dependsOn": [
4219
{
@@ -46,13 +23,21 @@
4623
]
4724
},
4825
"clean": {
49-
"executor": "@nativescript/nx:build",
50-
"options": {
51-
"clean": true
52-
}
26+
"executor": "@nativescript/nx:clean",
27+
"options": {}
5328
},
5429
"lint": {
5530
"executor": "@nx/eslint:lint"
31+
},
32+
"debug": {
33+
"executor": "@nativescript/nx:debug",
34+
"options": {
35+
"noHmr": true,
36+
"uglify": false,
37+
"release": false,
38+
"forDevice": false,
39+
"prepare": false
40+
}
5641
}
5742
}
5843
}

nx.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,21 @@
2929
"useDaemonProcess": false,
3030
"parallel": 1,
3131
"useInferencePlugins": false,
32-
"defaultBase": "master"
32+
"defaultBase": "master",
33+
"release": {
34+
"releaseTagPattern": "{version}-{projectName}",
35+
"projects": ["packages/*"],
36+
"projectsRelationship": "independent",
37+
"changelog": {
38+
"workspaceChangelog": false,
39+
"projectChangelogs": {
40+
"renderOptions": {
41+
"authors": true,
42+
"commitReferences": true,
43+
"versionTitleDate": true
44+
}
45+
}
46+
}
47+
},
48+
"useLegacyCache": true
3349
}

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@
1616
},
1717
"private": true,
1818
"devDependencies": {
19-
"@angular-devkit/build-angular": "^18.0.0",
20-
"@angular/animations": "^18.0.0",
21-
"@angular/common": "^18.0.0",
22-
"@angular/compiler": "^18.0.0",
23-
"@angular/compiler-cli": "^18.0.0",
24-
"@angular/core": "^18.0.0",
25-
"@angular/forms": "^18.0.0",
26-
"@angular/platform-browser": "^18.0.0",
27-
"@angular/platform-browser-dynamic": "^18.0.0",
28-
"@angular/router": "^18.0.0",
29-
"@nativescript/angular": "^18.0.0",
19+
"@angular-devkit/build-angular": "^19.0.0",
20+
"@angular/animations": "^19.0.0",
21+
"@angular/common": "^19.0.0",
22+
"@angular/compiler": "^19.0.0",
23+
"@angular/compiler-cli": "^19.0.0",
24+
"@angular/core": "^19.0.0",
25+
"@angular/forms": "^19.0.0",
26+
"@angular/platform-browser": "^19.0.0",
27+
"@angular/platform-browser-dynamic": "^19.0.0",
28+
"@angular/router": "^19.0.0",
29+
"@nativescript/angular": "^19.0.0",
3030
"@nativescript/core": "~8.8.0",
31-
"@nativescript/plugin-tools": "5.4.2",
31+
"@nativescript/plugin-tools": "5.5.1",
3232
"@nativescript/types": "~8.8.0",
3333
"@nativescript/webpack": "~5.0.22",
34-
"@ngtools/webpack": "^18.0.0",
34+
"@ngtools/webpack": "^19.0.0",
3535
"husky": "~9.0.0",
36-
"ng-packagr": "^18.0.0",
36+
"ng-packagr": "^19.0.0",
3737
"rxjs": "~7.8.0",
38-
"typescript": "~5.5.0",
39-
"zone.js": "~0.14.0"
38+
"typescript": "~5.6.0",
39+
"zone.js": "~0.15.0"
4040
},
4141
"lint-staged": {
4242
"**/*.{js,ts,scss,json,html}": [

tools/workspace-scripts.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ module.exports = {
2323
},
2424
demo: {
2525
clean: {
26-
script: 'nx run demo:clean',
26+
script: 'nx clean demo',
2727
description: '⚆ Clean 🧹',
2828
},
2929
ios: {
30-
script: 'nx run demo:ios',
30+
script: 'nx debug demo ios',
3131
description: '⚆ Run iOS ',
3232
},
3333
android: {
34-
script: 'nx run demo:android',
34+
script: 'nx debug demo android',
3535
description: '⚆ Run Android 🤖',
3636
},
3737
},
@@ -41,15 +41,15 @@ module.exports = {
4141
},
4242
'demo-angular': {
4343
clean: {
44-
script: 'nx run demo-angular:clean',
44+
script: 'nx clean demo-angular',
4545
description: '⚆ Clean 🧹',
4646
},
4747
ios: {
48-
script: 'nx run demo-angular:ios',
48+
script: 'nx debug demo-angular ios',
4949
description: '⚆ Run iOS ',
5050
},
5151
android: {
52-
script: 'nx run demo-angular:android',
52+
script: 'nx debug demo-angular android',
5353
description: '⚆ Run Android 🤖',
5454
},
5555
},

0 commit comments

Comments
 (0)