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 28 additions and 7 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
+6 -6
View File
@@ -1550,16 +1550,16 @@
},
{
"name": "guzzlehttp/psr7",
"version": "2.12.5",
"version": "2.12.4",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
"reference": "9365d578a9fd1552ad6ca9c3cb530708526feb09"
"reference": "51e27f9e2b332ab3e72f4520d5ff4f3c68c3577c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/9365d578a9fd1552ad6ca9c3cb530708526feb09",
"reference": "9365d578a9fd1552ad6ca9c3cb530708526feb09",
"url": "https://api.github.com/repos/guzzle/psr7/zipball/51e27f9e2b332ab3e72f4520d5ff4f3c68c3577c",
"reference": "51e27f9e2b332ab3e72f4520d5ff4f3c68c3577c",
"shasum": ""
},
"require": {
@@ -1649,7 +1649,7 @@
],
"support": {
"issues": "https://github.com/guzzle/psr7/issues",
"source": "https://github.com/guzzle/psr7/tree/2.12.5"
"source": "https://github.com/guzzle/psr7/tree/2.12.4"
},
"funding": [
{
@@ -1665,7 +1665,7 @@
"type": "tidelift"
}
],
"time": "2026-07-13T01:27:20+00:00"
"time": "2026-07-08T15:56:20+00:00"
},
{
"name": "jean85/pretty-package-versions",