Skip to content

[codex] Set up monorepo foundation#1276

Draft
jderochervlk wants to merge 16 commits intomasterfrom
vlk/monorepo-foundation
Draft

[codex] Set up monorepo foundation#1276
jderochervlk wants to merge 16 commits intomasterfrom
vlk/monorepo-foundation

Conversation

@jderochervlk
Copy link
Copy Markdown
Collaborator

Context

This is the foundation PR for splitting the existing docs site into a monorepo before adding the separate interactive guide site. It keeps the current docs app behavior intact while moving it under apps/docs and making root scripts delegate to the docs workspace.

Summary

  • Add a Yarn workspace root with apps/* and packages/*, and move the existing site package to apps/docs as @rescript-lang/docs.
  • Move the docs app, source, content, scripts, tests, assets, functions, and config files under apps/docs with mostly pure renames.
  • Update root scripts, Makefile, ignore/format config, generated-script paths, source/edit links, and deployment workflows for the new docs workspace location.
  • Keep this PR limited to monorepo structure; it does not add guide content or a guide app yet.

Validation

  • yarn build:res
  • yarn ci:format
  • yarn build:scripts
  • yarn build:update-index
  • yarn workspace @rescript-lang/docs ci:format
  • yarn build
  • git diff --check

Known test caveat

yarn test does not complete in this checkout. It timed out during the MDX example/compiler path, and the isolated generated temp project repro also timed out with rescript build apps/docs/temp --quiet. The docs href test itself exits 0, with the existing link warnings. This appears to be separate from the monorepo production build path, which exits 0.

@github-actions
Copy link
Copy Markdown

Cloudflare deployment

Deployement ID: 7b062452-4c1c-41a5-8b40-64f026d3d506
Deployment Environment: preview

⛅️ wrangler 4.63.0 (update available 4.85.0)
─────────────────────────────────────────────
✨ Compiled Worker successfully
Uploading... (8027/8029)
Uploading... (8028/8029)
Uploading... (8029/8029)
✨ Success! Uploaded 2 files (8027 already uploaded) (2.63 sec)

✨ Uploading _redirects
✨ Uploading Functions bundle
🌎 Deploying...
✨ Deployment complete! Take a peek over at https://7b062452.rescript-lang.pages.dev
✨ Deployment alias URL: https://vlk-monorepo-foundation.rescript-lang.pages.dev

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