Skip to content

Commit

Permalink
build: upgrade to Angular 19
Browse files Browse the repository at this point in the history
  • Loading branch information
wlucha committed Jan 20, 2025
1 parent 74f5910 commit 5558c13
Show file tree
Hide file tree
Showing 14 changed files with 3,861 additions and 3,969 deletions.
7 changes: 0 additions & 7 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
npx --no-install commitlint --edit "$1" --quiet ||
(
echo -e "\n❌ Please check commit message format! \n"
false;
)

echo -e "✅ Commit message format correct! \n"
7 changes: 0 additions & 7 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
npx lint-staged --quiet ||
(
echo -e "\n❌ Prettier formatting failed!\n"
false;
)

echo -e "✅ Prettier formatting successful!"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Wilfried Lucha
Copyright (c) 2025 Wilfried Lucha

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> The Angular starter / boilerplate project to start a new enterprise project.
[Angular 18](https://angular.dev/)
[Angular 19](https://angular.dev/)
[Angular Material](https://material.angular.io/)
✅ Unit Testing with [Jest](https://jestjs.io/)
✅ End-to-End Testing with [Cypress](https://www.cypress.io/)
Expand All @@ -19,7 +19,7 @@

<hr>

![Angular18](https://img.shields.io/badge/Angular-18-brightgreen)
![Angular19](https://img.shields.io/badge/Angular-19-brightgreen)
[![MIT](https://img.shields.io/packagist/l/doctrine/orm.svg)]()
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=wlucha_angular-starter&metric=alert_status)](https://sonarcloud.io/dashboard?id=wlucha_angular-starter)
[![Docker Pulls](https://img.shields.io/docker/pulls/wlucha/angular-starter)](https://hub.docker.com/repository/docker/wlucha/angular-starter)
Expand Down Expand Up @@ -83,7 +83,7 @@ https://hub.docker.com/r/wlucha/angular-starter

MIT License

Copyright (c) 2024 Wilfried Lucha
Copyright (c) 2025 Wilfried Lucha

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
28 changes: 16 additions & 12 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,38 @@
"projects": {
"angular-starter": {
"projectType": "application",
"schematics": {},
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/angular-starter",
"outputPath": {
"base": "dist/angular-starter"
},
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"polyfills": [
"src/polyfills.ts"
],
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
"src/styles.css"
],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true,
"preserveSymlinks": true
"preserveSymlinks": true,
"browser": "src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -45,8 +51,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -64,7 +68,7 @@
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular/build:dev-server",
"options": {
"buildTarget": "angular-starter:build"
},
Expand All @@ -75,7 +79,7 @@
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@angular/build:extract-i18n",
"options": {
"buildTarget": "angular-starter:build"
}
Expand Down
6 changes: 0 additions & 6 deletions jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import type { Config } from 'jest';

const jestConfig: Config = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
};

export default jestConfig;
6 changes: 3 additions & 3 deletions junit.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="1" failures="0" errors="0" time="29.734">
<testsuite name="AppComponent" errors="0" failures="0" skipped="0" timestamp="2024-11-03T08:12:58" time="26.051" tests="1">
<testcase classname="AppComponent should create the app" name="AppComponent should create the app" time="0.232">
<testsuites name="jest tests" tests="1" failures="0" errors="0" time="6.442">
<testsuite name="AppComponent" errors="0" failures="0" skipped="0" timestamp="2025-01-20T18:33:54" time="5.433" tests="1">
<testcase classname="AppComponent should create the app" name="AppComponent should create the app" time="0.041">
</testcase>
</testsuite>
</testsuites>
Loading

0 comments on commit 5558c13

Please sign in to comment.