Modernise & deploy #1

Merged
andras merged 25 commits from asch/modernise into master 2026-05-31 16:48:45 +01:00
6 changed files with 22 additions and 29 deletions
Showing only changes of commit 757cae5dcf - Show all commits

View file

@ -5,9 +5,9 @@
"packageManager": "npm", "packageManager": "npm",
"schematicCollections": [ "schematicCollections": [
"angular-eslint" "angular-eslint"
] ],
"analytics": false
}, },
"newProjectRoot": "projects",
"projects": { "projects": {
"frontend": { "frontend": {
"projectType": "application", "projectType": "application",
@ -76,9 +76,6 @@
"proxyConfig": "proxy.conf.json" "proxyConfig": "proxy.conf.json"
} }
}, },
"test": {
"builder": "@angular/build:unit-test"
},
"lint": { "lint": {
"builder": "@angular-eslint/builder:lint", "builder": "@angular-eslint/builder:lint",
"options": { "options": {
@ -91,4 +88,4 @@
} }
} }
} }
} }

View file

@ -14,8 +14,8 @@
"@angular/core": "^21.2.0", "@angular/core": "^21.2.0",
"@angular/forms": "^21.2.0", "@angular/forms": "^21.2.0",
"@angular/platform-browser": "^21.2.0", "@angular/platform-browser": "^21.2.0",
"@angular/router": "^21.2.0",
"@angular/service-worker": "^21.2.0", "@angular/service-worker": "^21.2.0",
"@plausible-analytics/tracker": "^0.4.5",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0" "tslib": "^2.3.0"
}, },
@ -718,24 +718,6 @@
} }
} }
}, },
"node_modules/@angular/router": {
"version": "21.2.14",
"resolved": "https://registry.npmjs.org/@angular/router/-/router-21.2.14.tgz",
"integrity": "sha512-Yo3LdgcqkfMu2/Ycl8o/4QjCBqZhtA+a7B8JVdW5cWdrpFTxKCOrzm+YRUMuIFmH5nzSv9oGnUuz64uk1+7r5Q==",
"license": "MIT",
"dependencies": {
"tslib": "^2.3.0"
},
"engines": {
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
},
"peerDependencies": {
"@angular/common": "21.2.14",
"@angular/core": "21.2.14",
"@angular/platform-browser": "21.2.14",
"rxjs": "^6.5.3 || ^7.4.0"
}
},
"node_modules/@angular/service-worker": { "node_modules/@angular/service-worker": {
"version": "21.2.14", "version": "21.2.14",
"resolved": "https://registry.npmjs.org/@angular/service-worker/-/service-worker-21.2.14.tgz", "resolved": "https://registry.npmjs.org/@angular/service-worker/-/service-worker-21.2.14.tgz",
@ -3519,6 +3501,12 @@
"license": "MIT", "license": "MIT",
"optional": true "optional": true
}, },
"node_modules/@plausible-analytics/tracker": {
"version": "0.4.5",
"resolved": "https://registry.npmjs.org/@plausible-analytics/tracker/-/tracker-0.4.5.tgz",
"integrity": "sha512-6BfAGejXY+YA3Cw6LYT2Zpn4hTxDtPQAawFsYUsQCOg78wIS5C4deAGXTfJffa5VleMWITv5lpJ/EYuQBl1tPA==",
"license": "MIT"
},
"node_modules/@playwright/test": { "node_modules/@playwright/test": {
"version": "1.60.0", "version": "1.60.0",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0.tgz", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0.tgz",

View file

@ -15,12 +15,12 @@
"packageManager": "npm@10.9.2", "packageManager": "npm@10.9.2",
"dependencies": { "dependencies": {
"@angular/cdk": "^21.2.13", "@angular/cdk": "^21.2.13",
"@plausible-analytics/tracker": "^0.4.5",
"@angular/common": "^21.2.0", "@angular/common": "^21.2.0",
"@angular/compiler": "^21.2.0", "@angular/compiler": "^21.2.0",
"@angular/core": "^21.2.0", "@angular/core": "^21.2.0",
"@angular/forms": "^21.2.0", "@angular/forms": "^21.2.0",
"@angular/platform-browser": "^21.2.0", "@angular/platform-browser": "^21.2.0",
"@angular/router": "^21.2.0",
"@angular/service-worker": "^21.2.0", "@angular/service-worker": "^21.2.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0" "tslib": "^2.3.0"

View file

@ -10,6 +10,6 @@
"src/**/*.ts" "src/**/*.ts"
], ],
"exclude": [ "exclude": [
"src/**/*.spec.ts" "src/**/*.vitest.ts"
] ]
} }

View file

@ -10,6 +10,6 @@
}, },
"include": [ "include": [
"src/**/*.d.ts", "src/**/*.d.ts",
"src/**/*.spec.ts" "src/**/*.vitest.ts"
] ]
} }

View file

@ -1,10 +1,18 @@
import { defineConfig } from 'vitest/config'; import { defineConfig } from 'vitest/config';
export default defineConfig({ export default defineConfig({
resolve: {
alias: {
// The package ships only a `module` field, which Vite's resolver
// can't always find — point it at the file directly.
'@plausible-analytics/tracker':
'@plausible-analytics/tracker/plausible.js',
},
},
test: { test: {
globals: true, globals: true,
environment: 'jsdom', environment: 'jsdom',
include: ['src/**/*.vitest.ts', 'src/**/*.spec.vitest.ts'], include: ['src/**/*.vitest.ts'],
setupFiles: ['./vitest.setup.ts'], setupFiles: ['./vitest.setup.ts'],
coverage: { coverage: {
provider: 'v8', provider: 'v8',