feat(create-ideal-cms): add npx scaffolding CLI#14
Merged
Conversation
Introduce @focus-reactive/create-ideal-cms — an interactive CLI that scaffolds a new Payload + Next.js monorepo from this repo's apps/cms template, pinning the @focus-reactive plugin suite as published npm deps. Highlights: - Manual recursive local copy that handles the dest-inside-src case (so `bun run test:local` can scaffold into .test-output/) - Initial DB migration runner with an OpenAI placeholder so the translator plugin instantiates cleanly when no real key is provided - --from-local flag for testing against an in-progress source repo - Brand color overlay + interactive prompts for project name, env values, package manager, and migration step Source-side overrides added to silence peer-warning noise when consuming the published plugins (vs workspace:* in source): - root overrides: + react, react-dom, @payloadcms/plugin-mcp, @modelcontextprotocol/sdk - apps/cms: @payloadcms/plugin-mcp 3.84.0 -> 3.84.1 Also: in-progress UI tweaks across apps/cms and packages/ui from pending working-tree state.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
@focus-reactive/create-ideal-cms— annpx-runnable CLI that scaffolds a Payload + Next.js monorepo from this repo'sapps/cmstemplate, pinning the@focus-reactiveplugin suite as published npm deps.react,react-dom,@payloadcms/plugin-mcp,@modelcontextprotocol/sdkversions).@payloadcms/plugin-mcp3.84.0 → 3.84.1 inapps/cmsto align with payload 3.84.1.apps/cms/src/...andpackages/ui/components/...from pending working-tree state.What the CLI does
Interactive prompts:
--color-primaryoverlay inpackages/tailwind-config/base.css)DATABASE_URL,NEXT_PUBLIC_SERVER_URLUnder the hood:
giget(GitHub tarball) or copies a local checkout with--from-localworkspace:*plugin refs inapps/cms/package.jsonto pinned published versionspayload migrate:create initpost-installPAYLOAD_SECRET; writesOPENAI_API_KEYplaceholder so the translator plugin instantiates cleanly without a real keyTest plan
bun run lint— clean (0/0)bun run check-types— clean (pre-push hook passed)bun run buildinpackages/create-ideal-cms— outputs 16 KB ESM with shebangbun run test:local— scaffolds into.test-output/<name>/, install + migration run cleanlybun install— 0 peer warnings (verified)npm publish --access public(one-time) → configure npm Trusted Publisher →gh release create @focus-reactive/create-ideal-cms@1.0.0→ push docs commit to let CI auto-publish 1.0.1Follow-ups (post-merge, see
payload-plugins-add-packageskill)packages/create-ideal-cms/runnpm publish --access publicfocusreactive/payload-plugins+release.yml+main)gh release create "@focus-reactive/create-ideal-cms@1.0.0" --target <merge-commit-sha> --title "create-ideal-cms v1.0.0" --notes "Initial release"docs:commit touching the package → CI publishes 1.0.1 automatically