Skip to content

feat!: Read saucebase.json and accept Saucebase modules by default - #24

Merged
roble merged 8 commits into
mainfrom
dev
Oct 11, 2026
Merged

roble merged 8 commits into
mainfrom
dev

Conversation

@roble

@roble roble commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

What changes

Modules install without app configuration. The installer now handles two package types by default: saucebase-module and laravel-module. Before, the default was laravel-module only, so a plain Laravel app that required a Saucebase module got it in vendor/ and crashed on boot. An app that sets extra.module-type still gets exactly that one type.

App's module-type Before Now
not set laravel-module saucebase-module and laravel-module
set to any value that one type that one type

The project config is saucebase.json. The installer reads the framework from saucebase.json instead of frontend.json, and skips flattening when "contributor": true (was "dev": true). This is a breaking change for apps still on frontend.json (sc-746).

Svelte is no longer a known framework. It isn't supported yet, so svelte directories are no longer treated as framework sources.

What does not change

Install, update and uninstall behave as before: existing module files are never downloaded over, updates merge by default, and composer remove keeps the module directory unless module-delete-on-remove is set.

How it was checked

  • 76 tests pass.
  • A new Laravel app with no module-type: composer require saucebase/auth lands in modules/auth and the app runs.
  • The Saucebase app, which sets module-type, reports nothing to install or change.

Not tested: upgrading an app that already has a Saucebase module in vendor/ from the old default.

Release note

saucebase/core should require this release, since its install step tells people to composer require saucebase/auth.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Features
    • Installers now support saucebase-module and laravel-module by default. Setting a module type configures support for that type alone.
    • Frontend framework selection now uses saucebase.json and supports Vue and React. Framework files are left untouched when the configuration is missing or unreadable, or when "contributor": true.
  • Documentation
    • Updated setup and frontend deployment guidance to reflect the new module types and configuration behavior.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 63b74652-ad19-463e-a50a-797e9f340a4e

📥 Commits

Reviewing files that changed from the base of the PR and between 55ee6d8 and 838f670.


📒 Files selected for processing (5)
  • .sonarcloud.properties
  • CLAUDE.md
  • README.md
  • src/Installer.php
  • tests/ModuleInstallerTest.php

 ____________________________________________________________________________________________________________________________________________________________
< Don't program by coincidence. Rely only on reliable things. Beware of accidental complexity, and don't confuse a happy coincidence with a purposeful plan. >
 ------------------------------------------------------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR




🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@roble roble changed the title Read saucebase.json and accept Saucebase modules by default feat!: Read saucebase.json and accept Saucebase modules by default Oct 11, 2026
@sonarqubecloud

Copy link
Copy Markdown

@roble
roble merged commit 54963a8 into main Oct 11, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant