Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s
- Laravel 13 mit Filament 5 (Admin), Inertia 3 + Vue 3 + Vuetify 4 (Material 3) - Anmeldung über Fortify (Login, Passwort vergessen/ändern), keine Selbstregistrierung - Profil mit Profilbild (WebP in festen Größen), Personenseiten, Header mit Avatar-Menü - Material-3-Farbschema aus der Primärfarbe, hell/dunkel/System pro Person - Basis-Branding (Portalname, Logo, Primärfarbe) im Admin unter „Erscheinungsbild“ - Benutzerverwaltung im Admin, Zugang vorläufig über is_admin - vendor/ (ohne Dev-Pakete) und Frontend-Build mitversioniert, Dev-Pakete in vendor-dev/ - PHPUnit-Tests gegen MySQL/MariaDB, Forgejo-CI-Matrix, Docker-Entwicklungsumgebung - VERSION, CHANGELOG.md und CONTRIBUTING.md mit Release-Ablauf Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
75 lines
2.6 KiB
Markdown
75 lines
2.6 KiB
Markdown
# Project Overview
|
|
|
|
Livewire is a full-stack framework for Laravel. It allows you to build dynamic front-end applications without leaving the comfort of PHP/Laravel/Blade.
|
|
|
|
It is similar to projects like Phoenix Liveview however it isn't "live" in that it doesn't use real-time connections like websockets. Just simple http requests.
|
|
|
|
It renders on the server and uses morphing algorithm to path the DOM with updates from the server.
|
|
|
|
It "dehydrates" the state of a component into a JS-consumable object that is passed back to the server to be "hydrated" during the next request.
|
|
|
|
# Tech Stack
|
|
|
|
- Laravel + PHP + Vanilla JS
|
|
- JS Bundling: esbuild
|
|
|
|
# Project Structure
|
|
|
|
```
|
|
src/ → The PHP source files
|
|
- Features/ → Individual ~modules to isolate features
|
|
js/ → The JavaScript source files
|
|
tests/ → A smattering of PHP tests however, most tests are inside their src/Feature directories
|
|
```
|
|
|
|
# Development Workflow
|
|
|
|
## Setup
|
|
|
|
Run `composer setup` to install all dependencies (PHP, JS, ChromeDriver).
|
|
|
|
## Build JS assets
|
|
|
|
Run `npm run build` to bundle the JS
|
|
|
|
**IMPORTANT:** Do not commit `dist/` files. They are built in CI.
|
|
|
|
# Code Patterns
|
|
|
|
- Write JavaScript without semicolons
|
|
- Always use `let` (no `const`)
|
|
- Strive for single-word features and affordances (ex. `wire:click.stop` instead of `wire:click.stop-propagation`)
|
|
|
|
# Testing
|
|
|
|
Most browser and unit tests live inside of feature directories for example:
|
|
|
|
src/Features/SupportSlots/[UnitTest.php|BrowserTest.php]
|
|
|
|
```bash
|
|
composer test # all tests
|
|
composer test:unit # unit tests only
|
|
composer test:browser # browser tests (headless)
|
|
composer test:browser:headed # browser tests (opens Chrome)
|
|
composer test:browser -- --filter="SupportCSP" # specific browser tests
|
|
```
|
|
|
|
**IMPORTANT:** Never run the full Livewire browser test suite — it takes too long. Always use `--filter` to run only the specific tests relevant to your changes. The full suite runs in CI.
|
|
|
|
# Releasing
|
|
|
|
## Bumping Alpine (optional)
|
|
|
|
If you need to update the Alpine.js dependency before a release:
|
|
|
|
```bash
|
|
npm run bump-alpine
|
|
```
|
|
|
|
Then commit the updated `package.json` and `package-lock.json`.
|
|
|
|
## Creating a release
|
|
|
|
1. Go to **Actions → "Release" → "Run workflow"**
|
|
2. Enter the version number (e.g. `4.3.0` — the `v` prefix is added automatically)
|
|
3. The workflow installs deps, builds assets, runs JS tests, creates a tag with the built `dist/` files, and creates a GitHub Release with auto-generated notes
|