Repository navigation
feat!: templates, named states and install settings - #41
Conversation
…nd (sc-1110) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sc-1114) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the app stub's dashboard (sc-1113) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sn't created, stop workers together From review on #38: the 12-month preset and the five-year cap no longer roll past a short month or a leap day; the installer says how to create .env.e2e when playwright:env fails; task workers fails fast. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dev installs as dev-dev, which no ^2.x constraint accepts, so apps could not test it against modules that require a release. A test fails once a release passes the alias, as a reminder to move it on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
modules:seed --state=<name> runs each module's {State}{Module}DatabaseSeeder
after the required seeders; showcase is the sample content. A state no
module provides fails, a failing seeder stops the run, and in production
modules:seed asks once (--force skips, also on module-setup/module-install).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p stubs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- saucebase:template-install requires a template, copies its stubs (flattened per framework), sets up the template and its modules, then seeds its state in a process of its own, after every module's install command. - saucebase:template-capture copies a template workspace's app overrides into the template's stubs; --check fails when they are out of date. - A module (usually a template) answers another module's install command with extra.saucebase.module-options.<module>.<option>; option names and plain values only, and the module's own line wins. - The contributor Vite preset lets a template workspace override core's UI from the app, one folder per framework. - module-install and template-install share InstallsSaucebasePackages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings properties marked #[InstallSetting(label, rules, hint)] are set while modules are installed: module-setup --configure (passed by module-install and template-install) applies a template's extra.saucebase.module-settings, then --setting=module.property=value flags, then asks per module. The property's type picks the Laravel Prompt. Bad values fail before anything runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A template's extra.saucebase.configure.<module>.<key> and --set=module.key=value replace module-options, module-settings and --setting. A key marked #[InstallSetting] is a stored setting; any other must be an option of the module's install command (its own options only), checked before anything runs. Flag options take true or false. A console error in an install step is reported, not thrown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a template workspace `@/` now finds files only the app has, the way an installed template does: the app's UI first, then core's, else Vite's error. A module other than the template that imports an app-only file fails the build, since apps without the template won't have it. The dev server lists what the template replaces and adds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Added with the shadcn-vue CLI, for modules that still use native selects and tables (uptime, billing, packages, tenancy). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Selects opened behind the modal: the overlay list named only the popups that existed. All reka popups share one positioned wrapper, so one rule now covers them, including ones added later. Drawers join the dialog list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Inside an Inertia modal, Escape on an open select or menu closed the whole modal, and a popover or combobox closed as soon as it opened because the modal pulled focus back. Escape now goes to the top layer first, keeping a layer's refusal, and focus may move into a layer opened from the modal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shadcn-vue's combobox, for picking from a list by typing: modules and templates can use it without adding it themselves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Composer reverts its own failures, but not a plugin or script failing after it wrote the lock. module-install and template-install now restore composer.json and composer.lock and say to run composer install. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-dev Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ets them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BREAKING CHANGE: --demo is gone from modules:seed and saucebase:module-install.
Use --state=showcase. Demo seeders are named Showcase{Module}DatabaseSeeder.
Update the installer to 3.9 or later.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedToo many files! This PR contains 115 files, which is 15 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|



Changes
saucebase:template-install(stubs flattened to the app's framework, validated before any write, retry command on failure),saucebase:template-capture, and thetemplaterecipe (saucebase:recipe <Name> template --vendor=x). Template workspaces resolve@/from the app first. A skill for building templates.--demo(breaking):modules:seed --state=<name>andmodule-install --state; demo seeders becomeShowcase{Module}DatabaseSeeder. A missingDEMO_PASSWORDgets a random one, saved in.envand printed.configurein a template's composer.json,--set=module.key=value, or prompts.composer requireputs composer.json and composer.lock back..gitignore,.github/) reach the new module; its CI names the module by folder.fresh-appinstalls a template withtemplate-install, so a template's stubs are in its test app.saucebase/module-installer: ^3.3; branch alias3.0.x-dev.Breaking
--demois gone frommodules:seedandsaucebase:module-install; use--state=showcase. Installer 3.8.0 passes--demo: release installer 3.9.0 right after and tell users to update it.Release
Release as
v3.0.0, after module-installerv3.3.0(CI needs it to resolve). Every module, the starter and the templates then requiresaucebase/core: ^3.0.Checks
PHPUnit: 421 passed. Pint and PHPStan are clean. The
fresh-apptemplate step is proven by the notes template's CI after this release.🤖 Generated with Claude Code