Skip to content

esoul-cz/guidelines 0.2.1: V2 template follow-ups - conditional derived-data rule, LSR network guard and queue path, Astro template names

Choose a tag to compare

@Heroyt Heroyt released this 22 Nov 23:00
· 26 commits to main since this release

Follow-ups from the V2 review of the app templates.

Changed

  • Derived data: the rule that a shared base test class fakes the recomputation of read models, search indexes, projections, feeds and sitemaps applies only when the project has derived data; the Laravel template ships neither the fake nor the WithDerivedData trait.
  • LSR testing: the network guard is a DI HTTP client bound to a fake in tests plus a PHPUnit extension that fails http(s) stream requests to anything but localhost; raw sockets are covered by review.
  • LSR: the boltdb jobs queue file lives in /app/temp/queue/ (replacing the open path), and cache cleaning (cache:clean, the generated-cache cleanup of /prepare-runtime) leaves it alone.
  • Astro: B-admin has the astro-ssr template (an ADR is still required; D-static-api has no template yet). The three templates are named (laravel-cms, astro-cms-frontend and the root astro-cms), a no-CMS site that needs forms starts its backend from laravel-cms, and the subdomain is the default of the CMS backend with a path as the documented exception.
  • README: package/lunar will be written from the first Lunar project.