Skip to content

Commit 44a8bf2

Browse files
committed
chore: nx migration
1 parent d987d73 commit 44a8bf2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+6996
-7074
lines changed

.eslintrc.json

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

apps/demo-angular/.eslintrc.json

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

apps/demo-angular/eslint.config.mjs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import baseConfig from '../../eslint.config.mjs';
2+
3+
export default [
4+
{
5+
ignores: ['**/dist'],
6+
},
7+
...baseConfig,
8+
{
9+
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
10+
// Override or add rules here
11+
rules: {},
12+
},
13+
{
14+
files: ['**/*.ts', '**/*.tsx'],
15+
// Override or add rules here
16+
rules: {},
17+
},
18+
{
19+
files: ['**/*.js', '**/*.jsx'],
20+
// Override or add rules here
21+
rules: {},
22+
},
23+
{
24+
ignores: ['node_modules/**/*'],
25+
},
26+
];

apps/demo-angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@valor/nativescript-in-app-review": "file:../../dist/packages/nativescript-in-app-review"
1111
},
1212
"devDependencies": {
13-
"@nativescript/android": "~8.7.0",
14-
"@nativescript/ios": "~8.7.0"
13+
"@nativescript/android": "~8.8.0",
14+
"@nativescript/ios": "~8.8.0"
1515
}
1616
}

apps/demo-angular/project.json

Lines changed: 16 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -12,47 +12,28 @@
1212
"production": true,
1313
"uglify": true,
1414
"release": true,
15-
"forDevice": true
15+
"forDevice": true,
16+
"tsConfig": "apps/demo-angular/tsconfig.json"
1617
},
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"
40-
},
41-
"dependsOn": [
42-
{
43-
"target": "build.all",
44-
"dependencies": true
45-
}
46-
]
18+
"dependsOn": ["^build.all"]
4719
},
4820
"clean": {
49-
"executor": "@nativescript/nx:build",
50-
"options": {
51-
"clean": true
52-
}
21+
"executor": "@nativescript/nx:clean",
22+
"options": {}
5323
},
5424
"lint": {
5525
"executor": "@nx/eslint:lint"
26+
},
27+
"debug": {
28+
"executor": "@nativescript/nx:debug",
29+
"options": {
30+
"noHmr": true,
31+
"uglify": false,
32+
"release": false,
33+
"forDevice": false,
34+
"prepare": false
35+
},
36+
"dependsOn": ["^build.all"]
5637
}
5738
}
5839
}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component } from '@angular/core';
22

33
@Component({
4-
selector: 'demo-app',
5-
template: `<GridLayout>
6-
<page-router-outlet></page-router-outlet>
7-
</GridLayout>`,
4+
selector: 'demo-app',
5+
template: `<GridLayout>
6+
<page-router-outlet></page-router-outlet>
7+
</GridLayout>`,
8+
standalone: false,
89
})
910
export class AppComponent {}

apps/demo-angular/src/home.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
selector: 'demo-home',
55
templateUrl: 'home.component.html',
6+
standalone: false,
67
})
78
export class HomeComponent {
89
demos = [

apps/demo-angular/src/plugin-demos/nativescript-barcodescanner.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {} from '@valor/nativescript-barcodescanner';
55
@Component({
66
selector: 'demo-nativescript-barcodescanner',
77
templateUrl: 'nativescript-barcodescanner.component.html',
8+
standalone: false,
89
})
910
export class NativescriptBarcodescannerComponent {
1011
demoShared: DemoSharedNativescriptBarcodescanner;

apps/demo-angular/src/plugin-demos/nativescript-feedback.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { DemoSharedNativescriptFeedback } from '@demo/shared';
55
selector: 'demo-nativescript-feedback',
66
styleUrls: ['./nativescript-feedback.component.css'],
77
templateUrl: 'nativescript-feedback.component.html',
8+
standalone: false,
89
})
910
export class NativescriptFeedbackComponent {
1011
demoShared: DemoSharedNativescriptFeedback;

apps/demo-angular/src/plugin-demos/nativescript-in-app-review.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {} from '@valor/nativescript-in-app-review';
55
@Component({
66
selector: 'demo-nativescript-in-app-review',
77
templateUrl: 'nativescript-in-app-review.component.html',
8+
standalone: false,
89
})
910
export class NativescriptInAppReviewComponent {
1011
demoShared: DemoSharedNativescriptInAppReview;

0 commit comments

Comments
 (0)