Repository navigation
feat(cli): add 'stackbase add' and 'stackbase list' commands - #7
Merged
Merged
Conversation
- Support incremental package injection into existing workspaces - Add module registry for queue, storage, rate-limit, email, and auth - Implement transformers for scope, catalog, docker-compose, and env - Link injected packages directly to target apps - Add comprehensive unit test suite
- Display formatted workspace status of installed and available modules - Add git working tree protection with uncommitted change warnings - Add --list and --allow-dirty flags to 'stackbase add' - Integrate module status detection with interactive add prompt - Add tests for module status detection and git dirty checks
- Add 'add' and 'list' command usage, flags, and options to docs app - Update packages/stackbase README with examples - Add release notes to CHANGELOG.md
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 22, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When evolving an existing Stackbase Turborepo workspace, adding infrastructure modules (such as queue, storage, email, or rate-limiting) requires tedious, error-prone manual configuration: copying package directories, adapting workspace scope names, rewriting catalog dependencies, merging docker-compose services, and synchronizing
.env.exampletemplates. Additionally, developers lack an in-CLI mechanism to discover which official modules are currently installed versus available for installation.Change
This PR introduces modular package injection and workspace discovery via two new CLI commands, supported by dedicated AST and file transformers:
stackbase list:queue,storage,rate-limit,email,auth).✔ installedvs○ available), and descriptions.stackbase add [module]:@workspace/*or custom scopes).pnpm-workspace.yamlcatalog versions where available, preventing version fragmentation.queue, MinIO forstorage) intodocker-compose.yml..env.examplewithout overwriting existing entries.apps/apiby default, or specified via--app).--allow-dirtyor-y).--dry-runpreview mode,--skip-install,--allow-dirty, and--listalias.Documentation & Changelog:
apps/docs/content/docs/cli.mdxandpackages/stackbase/README.md.[Unreleased]inCHANGELOG.md.Scope
Verification
Ran focused unit test suites and workspace type checking locally:
pnpm check-types:turbo check-types, 2/2 tasks successful).pnpm test(packages/stackbase):src/__tests__/cli.test.ts(23 tests)src/__tests__/migrate.test.ts(6 tests)src/__tests__/add.test.ts(14 tests)packages/<module>@workspace/*and custom scopes)catalog:).env.exampletemplate appendingapps/api/package.json--allow-dirtybypassstackbase listinstallation status detection (installedvsavailable)