Skip to content

Commit a2ac1d9

Browse files
committed
fix: fix ci.yml and prettier fixes
1 parent 7068b1b commit a2ac1d9

12 files changed

Lines changed: 25 additions & 43 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
# Comments: Quick diagnostics in CI logs.
7070

7171
- name: Run unit tests (headless)
72-
run: pnpm run test -- --watch=false --browsers=ChromeHeadless --no-progress
72+
run: pnpm run test:ci
7373
# Comments: Add --no-sandbox if your launcher requires it.
7474

7575
build:

frontend/angular.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,11 @@
2323
"outputPath": "dist/frontend",
2424
"index": "src/index.html",
2525
"browser": "src/main.ts",
26-
"polyfills": [
27-
"zone.js"
28-
],
26+
"polyfills": ["zone.js"],
2927
"tsConfig": "tsconfig.app.json",
3028
"inlineStyleLanguage": "scss",
31-
"assets": [
32-
"src/favicon.ico",
33-
"src/assets"
34-
],
35-
"styles": [
36-
"src/styles.scss"
37-
],
29+
"assets": ["src/favicon.ico", "src/assets"],
30+
"styles": ["src/styles.scss"],
3831
"scripts": [],
3932
"server": "src/main.server.ts",
4033
"prerender": true,

frontend/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"build:pages": "ng build --configuration production --base-href=/",
1616
"build:pages:ssg": "ng build --configuration production --base-href=/ && ng run frontend:prerender",
1717
"deploy:pages": "pnpm run build:pages && pnpm dlx angular-cli-ghpages --dir=dist/frontend/browser --branch=gh-pages --message=\"deploy: pages (spa)\"",
18-
"deploy:pages:ssg": "pnpm run build:pages:ssg && pnpm dlx angular-cli-ghpages --dir=dist/frontend --branch=gh-pages --message=\"deploy: pages (ssg)\""
18+
"deploy:pages:ssg": "pnpm run build:pages:ssg && pnpm dlx angular-cli-ghpages --dir=dist/frontend --branch=gh-pages --message=\"deploy: pages (ssg)\"",
19+
"test:ci": "ng test --watch=false --browsers=ChromeHeadless --progress=false"
1920
},
2021
"private": true,
2122
"dependencies": {
@@ -64,4 +65,4 @@
6465
"typescript": "~5.8.3",
6566
"typescript-eslint": "8.40.0"
6667
}
67-
}
68+
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<app-nav></app-nav>
2-
<router-outlet></router-outlet>
1+
<app-nav></app-nav> <router-outlet></router-outlet>

frontend/src/app/pages/about/about.component.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
66
imports: [],
77
templateUrl: './about.component.html',
88
styleUrl: './about.component.scss',
9-
changeDetection: ChangeDetectionStrategy.OnPush
9+
changeDetection: ChangeDetectionStrategy.OnPush,
1010
})
11-
export class AboutComponent {
12-
13-
}
11+
export class AboutComponent {}

frontend/src/app/pages/contact/contact.component.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
66
imports: [],
77
templateUrl: './contact.component.html',
88
styleUrl: './contact.component.scss',
9-
changeDetection: ChangeDetectionStrategy.OnPush
9+
changeDetection: ChangeDetectionStrategy.OnPush,
1010
})
11-
export class ContactComponent {
12-
13-
}
11+
export class ContactComponent {}

frontend/src/app/pages/home/home.component.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
66
imports: [],
77
templateUrl: './home.component.html',
88
styleUrl: './home.component.scss',
9-
changeDetection: ChangeDetectionStrategy.OnPush
9+
changeDetection: ChangeDetectionStrategy.OnPush,
1010
})
11-
export class HomeComponent {
12-
13-
}
11+
export class HomeComponent {}

frontend/src/app/pages/music/music.component.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
66
imports: [],
77
templateUrl: './music.component.html',
88
styleUrl: './music.component.scss',
9-
changeDetection: ChangeDetectionStrategy.OnPush
9+
changeDetection: ChangeDetectionStrategy.OnPush,
1010
})
11-
export class MusicComponent {
12-
13-
}
11+
export class MusicComponent {}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<ul>
2-
<li><a routerLink="/">Home</a></li>
3-
<li><a routerLink="/about">About</a></li>
4-
<li><a routerLink="/projects">Projects</a></li>
5-
<li><a routerLink="/music">Music</a></li>
6-
<li><a routerLink="/contact">Contact</a></li>
2+
<li><a routerLink="/">Home</a></li>
3+
<li><a routerLink="/about">About</a></li>
4+
<li><a routerLink="/projects">Projects</a></li>
5+
<li><a routerLink="/music">Music</a></li>
6+
<li><a routerLink="/contact">Contact</a></li>
77
</ul>

frontend/src/main.server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { bootstrapApplication, BootstrapContext } from '@angular/platform-browse
22
import { AppComponent } from './app/app.component';
33
import { config } from './app/app.config.server';
44

5-
const bootstrap = (context: BootstrapContext) => bootstrapApplication(AppComponent, config, context);
5+
const bootstrap = (context: BootstrapContext) =>
6+
bootstrapApplication(AppComponent, config, context);
67

78
export default bootstrap;

0 commit comments

Comments
 (0)