Files
ng-signals-template/angular.json
T
ehoandClaude Sonnet 5 6ad5b65f68 chore: add CI, coverage gates, and fix template hygiene
Wires the previously-inert @vitest/coverage-v8 into the test builder with
measured thresholds, adds a GitHub Actions workflow (format, test, build),
and fixes assorted gaps a cloning team would hit: no LICENSE, no engines/
.nvmrc, an unusable prettier install, a committed local-only settings file,
a dead 0-byte stylesheet, and a broken Karma-era VS Code test/debug config.
Also drops @angular/forms, which nothing in src/ imports.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-01 10:29:32 +02:00

83 lines
2.2 KiB
JSON

{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"cli": {
"packageManager": "npm",
"analytics": false
},
"newProjectRoot": "projects",
"projects": {
"ng-signals-template": {
"projectType": "application",
"schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular/build:application",
"options": {
"browser": "src/main.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
{
"glob": "**/*",
"input": "public"
}
],
"styles": ["src/styles.css"]
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
},
{
"type": "anyComponentStyle",
"maximumWarning": "4kB",
"maximumError": "8kB"
}
],
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular/build:dev-server",
"configurations": {
"production": {
"buildTarget": "ng-signals-template:build:production"
},
"development": {
"buildTarget": "ng-signals-template:build:development"
}
},
"defaultConfiguration": "development"
},
"test": {
"builder": "@angular/build:unit-test",
"options": {
"coverageExclude": ["src/main.ts", "**/*.spec.ts"],
"coverageReporters": ["text-summary", "lcovonly"],
"coverageThresholds": {
"statements": 90,
"branches": 90,
"functions": 85,
"lines": 95
}
}
}
}
}
}
}