Compare commits

..

1 Commits

Author SHA1 Message Date
Marijn 32daa17e0d Add a typescript watch service so TS assets rebuild automatically
Previously the compiled TypeScript output only existed after manually
running `bin/console typescript:build`, so a fresh checkout/worktree (or a
`just clean`) would 500 on any page rendering a TS asset until someone
remembered to build it by hand. Mirrors the existing sass watch service,
including sharing a named volume with php since the Dockerfile's
`VOLUME /app/var/` otherwise gives every container its own private,
unsynced /app/var.

Also add a `just compose` passthrough recipe for ad-hoc docker compose
commands (logs, ps, top, etc.) using the worktree's env.
2026-07-14 13:14:31 +02:00
3 changed files with 30 additions and 9 deletions
+3
View File
@@ -71,6 +71,9 @@ up *args: init
set +a
docker compose up -d {{ args }}
compose *args:
docker compose {{ args }}
down *args:
docker compose down --remove-orphans {{ args }}
+19 -1
View File
@@ -12,6 +12,7 @@ services:
- ./frankenphp/conf.d/20-app.dev.ini:/usr/local/etc/php/app.conf.d/20-app.dev.ini:ro
- ${CADDY_DATA_DIR:-./frankenphp/data}:/data
- sass:/app/var/sass
- typescript:/app/var/typescript
environment:
MERCURE_EXTRA_DIRECTIVES: demo
# See https://xdebug.org/docs/all_settings#mode
@@ -49,7 +50,23 @@ services:
- -v
healthcheck:
disable: true
typescript:
image: ${IMAGES_PREFIX:-}app-php
volumes:
- ./:/app:ro
- typescript:/app/var/typescript
entrypoint: ''
depends_on:
- php
command:
- bin/console
- typescript:build
- --watch
- -v
healthcheck:
disable: true
###> symfony/mercure-bundle ###
###< symfony/mercure-bundle ###
@@ -77,3 +94,4 @@ services:
volumes:
sass:
typescript:
Generated
+8 -8
View File
@@ -2619,16 +2619,16 @@
},
{
"name": "phpoffice/phpspreadsheet",
"version": "5.9.0",
"version": "5.8.0",
"source": {
"type": "git",
"url": "https://github.com/PHPOffice/PhpSpreadsheet.git",
"reference": "05e99ebf61238a70227b4d9cc02d0030d34f6339"
"reference": "01964d92536edf1a3a874b9580a52824bebf6fbb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/05e99ebf61238a70227b4d9cc02d0030d34f6339",
"reference": "05e99ebf61238a70227b4d9cc02d0030d34f6339",
"url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/01964d92536edf1a3a874b9580a52824bebf6fbb",
"reference": "01964d92536edf1a3a874b9580a52824bebf6fbb",
"shasum": ""
},
"require": {
@@ -2650,7 +2650,7 @@
"maennchen/zipstream-php": "^2.1 || ^3.0",
"markbaker/complex": "^3.0",
"markbaker/matrix": "^3.0",
"php": "^8.2",
"php": "^8.1",
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0"
},
"require-dev": {
@@ -2664,7 +2664,7 @@
"phpstan/phpstan": "^1.1 || ^2.0",
"phpstan/phpstan-deprecation-rules": "^1.0 || ^2.0",
"phpstan/phpstan-phpunit": "^1.0 || ^2.0",
"phpunit/phpunit": "^10.5 || ^11.0",
"phpunit/phpunit": "^10.5",
"squizlabs/php_codesniffer": "^3.7",
"tecnickcom/tcpdf": "^6.5"
},
@@ -2722,9 +2722,9 @@
],
"support": {
"issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues",
"source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/5.9.0"
"source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/5.8.0"
},
"time": "2026-07-12T19:17:39+00:00"
"time": "2026-06-07T03:51:10+00:00"
},
{
"name": "phpstan/phpdoc-parser",