Adjust example runtime architecture and CLI initialization with automatic .gitignore management#29
Merged
huangyiirene merged 7 commits intomainfrom Jan 22, 2026
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Copilot stopped work on behalf of
huangyiirene due to an error
January 22, 2026 03:36
Contributor
|
@copilot 继续 |
Contributor
|
@copilot 注意添加 gitignore,包括在init命令中 |
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Contributor
Author
已完成!实现已完成并测试通过。 The architecture adjustment is now complete (commit 82f6f70). The new workflow:
All commands now use the local |
Copilot
AI
changed the title
[WIP] Adjust example runtime architecture and CLI initialization
Adjust example runtime architecture and CLI initialization
Jan 22, 2026
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Contributor
Author
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
Adjust example runtime architecture and CLI initialization
Adjust example runtime architecture and CLI initialization with automatic .gitignore management
Jan 22, 2026
🚀 Preview DeploymentThis pull request will be automatically deployed to Vercel. Preview Links
Build StatusCheck the CI workflow for build status and any errors. Automated preview information for PR #29 |
Contributor
|
@copilot fix build |
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
Contributor
Author
🚀 Preview DeploymentThis pull request will be automatically deployed to Vercel. Preview Links
Build StatusCheck the CI workflow for build status and any errors. Automated preview information for PR #29 |
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.
Adjust example running architecture - CLI copies site to content/.objectdocs
This PR restructures the ObjectDocs architecture to use a local copy of the site engine, providing better isolation and version control.
Changes Made
New
initCommand (packages/cli/src/commands/init.mjs):@objectdocs/sitepackage tocontent/.objectdocs--legacy-peer-depsflagcontent/.objectdocsto.gitignore(creates file if needed, prevents duplicates)Updated CLI Commands:
dev.mjs: Usescontent/.objectdocsas the Next.js app directorybuild.mjs: Usescontent/.objectdocsas the Next.js app directorystart.mjs: Usescontent/.objectdocsas the Next.js app directory.objectdocsexists and provide helpful error messagesDocumentation Updates:
README.md: Added init step to Quick Start guide, notes automatic .gitignore updatepackages/cli/README.md: Documented the new init command with .gitignore featureexamples/starter/README.md: Updated installation and testing instructions.objectdocsdirectoryUpdated .gitignore Files:
.gitignore: Excludescontent/.objectdocsexamples/starter/.gitignore: Excludescontent/.objectdocs.gitignoreCI/CD Fixes:
build:sitefor monorepo buildsinitNew Workflow
Users now follow this workflow:
@objectdocs/clipnpm objectdocs initto initialize the site engine locallycontent/.objectdocsto.gitignorepnpm dev,pnpm build,pnpm startas usualMonorepo Development
For monorepo development and CI:
pnpm run build:siteto build the site package directlyinitin the monorepo contextTesting
.gitignore.gitignorefiles correctly.gitignoreif it doesn't exist.objectdocs.objectdocsbuild:sitecommandOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.