Skip to content

Commit c2307e8

Browse files
committed
refactor: updated those contents as well
1 parent ece0a24 commit c2307e8

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

.github/workflows/default.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
matrix:
2121
example:
2222
[
23-
angular17-example,
23+
angular18-example,
2424
react-example,
2525
vue-example,
2626
]
@@ -56,8 +56,8 @@ jobs:
5656
- name: ⬇ Download build angular
5757
uses: actions/download-artifact@v4
5858
with:
59-
name: angular17-example
60-
path: ./build/angular17-example
59+
name: angular18-example
60+
path: ./build/angular18-example
6161

6262
- name: ⬇ Download build react
6363
uses: actions/download-artifact@v4

angular18-example/angular.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"angular17-example": {
6+
"angular18-example": {
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:component": {
@@ -63,18 +63,18 @@
6363
"builder": "@angular/build:dev-server",
6464
"configurations": {
6565
"production": {
66-
"buildTarget": "angular17-example:build:production"
66+
"buildTarget": "angular18-example:build:production"
6767
},
6868
"development": {
69-
"buildTarget": "angular17-example:build:development"
69+
"buildTarget": "angular18-example:build:development"
7070
}
7171
},
7272
"defaultConfiguration": "development"
7373
},
7474
"extract-i18n": {
7575
"builder": "@angular/build:extract-i18n",
7676
"options": {
77-
"buildTarget": "angular17-example:build"
77+
"buildTarget": "angular18-example:build"
7878
}
7979
}
8080
}

angular18-example/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

angular18-example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "angular17-example",
2+
"name": "angular18-example",
33
"version": "0.0.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
7-
"build": "ng build --base-href /angular17-example/",
7+
"build": "ng build --base-href /angular18-example/",
88
"watch": "ng build --watch --configuration development",
99
"test": "ng test",
1010
"postbuild": "node ./post-build.js"
@@ -38,4 +38,4 @@
3838
"karma-jasmine-html-reporter": "~2.1.0",
3939
"typescript": "~5.4.2"
4040
}
41-
}
41+
}

angular18-example/post-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
const fs = require("fs-extra");
2-
fs.moveSync("dist/browser", "../build/angular17-example", { overwrite: true });
2+
fs.moveSync("dist/browser", "../build/angular18-example", { overwrite: true });

angular18-example/src/app/app.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ describe('AppComponent', () => {
1414
expect(app).toBeTruthy();
1515
});
1616

17-
it(`should have the 'angular17-example' title`, () => {
17+
it(`should have the 'angular18-example' title`, () => {
1818
const fixture = TestBed.createComponent(AppComponent);
1919
const app = fixture.componentInstance;
20-
expect(app.title).toEqual('angular17-example');
20+
expect(app.title).toEqual('angular18-example');
2121
});
2222

2323
it('should render title', () => {
2424
const fixture = TestBed.createComponent(AppComponent);
2525
fixture.detectChanges();
2626
const compiled = fixture.nativeElement as HTMLElement;
27-
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, angular17-example');
27+
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, angular18-example');
2828
});
2929
});

angular18-example/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ import { DBButton } from '@db-ux/ngx-core-components';
1010
styleUrl: './app.component.scss',
1111
})
1212
export class AppComponent {
13-
title = 'angular17-example';
13+
title = 'angular18-example';
1414
}

e2e/tests/angular-example.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { test } from "@playwright/test";
33
import { getDefaultScreenshotTest } from "./default.ts";
44

55
test.describe("Angular Example", () => {
6-
getDefaultScreenshotTest("angular17-example");
6+
getDefaultScreenshotTest("angular18-example");
77
});

0 commit comments

Comments
 (0)