mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
## Summary Adds `create-factory`, the scaffolding CLI for the Mastra Software Factory. ```bash npm create factory npm create factory my-project npm create factory -- --default ``` The CLI is intentionally minimal: 1. Ask for a project name 2. Clone [`mastra-ai/softwarefactory-template`](https://github.com/mastra-ai/softwarefactory-template) 3. Install dependencies 4. Initialize git 5. Print next steps Configuration (model providers, database, WorkOS/GitHub/Linear) happens in the web UI on first load. An optional "auth with the Mastra platform" step is planned as a follow-up. ### Package layout - Monorepo path: `mastracode/mastra-factory` (folder kept; npm name is `create-factory`) - Published: `create-factory@0.0.2` - Template source: generated from `mastracode/web` via `scripts/sync-template.mjs` - Template distribution: `mastra-ai/softwarefactory-template` - Versioning: changesets release train (`!create-factory` un-ignored) ### Also included - Template sync workflow (gated on E2E) - E2E verdaccio suite that scaffolds, typechecks, builds, and boots - Checked-in user-facing template README with version token injection ## Test plan - [x] Unit tests (`create.test.ts`, `sync-template.test.ts`) - [x] Local E2E softwarefactory suite (sync → scaffold → typecheck → build → boot) - [x] Published `create-factory@0.0.2` and verified `npm create factory` / bin help - [x] Unpublished unused `mastra-factory` name claim - [ ] CI green on this PR --------- Co-authored-by: Mastra Code (anthropic/claude-fable-5) <noreply@mastra.ai> Co-authored-by: Tyler Barnes <tylerdbarnes@gmail.com>
25 lines
No EOL
685 B
25 lines
No EOL
685 B