Megamono

DOCUMENTATION

On this page
  1. When to use it
  2. Usage
  3. Options
  4. Next steps

workspace-init

Initialize Megamono repository configuration and documentation

When to use it

Add Megamono conventions to an existing Nx workspace. Start with a survey to see your projects, then choose the modules you want. The pilot is a small starting point that keeps your existing CI and release workflows.

Usage

bash
npm exec -- nx generate @megamono/plugin:workspace-init --dry-run

Replace angle-bracket placeholders with reviewed values. Nx's --dry-run previews generator writes; remove it only after reviewing the plan. Examples use npm; use your workspace's package manager if it differs.

Options

Use these options with @megamono/plugin:workspace-init. Nx uses the camelCase names shown here; the CLI reference describes command-line aliases. Some options are required only for particular choices.

OptionRequiredTypeDefaultDescription
localPackagesNostring"registry"Resolve inferred Megamono plugins and their required internal closure from the registry or the local Yalc store. Allowed: "registry", "yalc".
surveyNobooleanfalsePrint the deterministic workspace survey and exit without mutation.
dryRunNobooleanfalsePrint the selected module plan and exit without mutation.
formatNostring"markdown"Output format used by survey and plan reports. Allowed: "markdown", "json".
onlyNostring—Comma-separated modules to adopt: docs, agents, ci, release, lint, skills, health, inference.
profileNostring—Named adoption profile; mutually exclusive with --only. Allowed: "minimal", "pilot", "platform", "full".
interactiveNobooleantrueAllow guided module, ambiguity, and confirmation prompts when attached to a terminal.
yesNobooleanfalseApply an explicit, fully resolved non-interactive plan.
reportNostring—Workspace-relative path for the optional completion report.
platformsNostring—Comma-separated platform vocabulary determined by a calling scaffolder.
portsNostring—JSON object of application names to assigned development ports.
serviceRunnerNostring—Optional local service runner selected by the workspace scaffolder. Allowed: "none", "springbar".
serviceRequirementsNostring—JSON object of service names to tested version requirements.
packageRegistriesNostring—JSON object mapping package scopes such as @megamono and @playstack to HTTPS registry URLs; authentication remains repository/CI-owned.
renderServiceProjectsNostring—Reviewed JSON object mapping root-level Render service names to existing Nx project names and roots.
packageManagerNostring—Package manager selected by a calling scaffolder; existing workspaces infer it from their lockfile. Allowed: "npm", "pnpm", "yarn", "bun".
ciModeNostring"auto"Retain equivalent repository CI automatically, or generate a standalone or reusable Megamono workflow. Allowed: "auto", "standalone", "reusable".
docsRootNostring"docs"Repository documentation root.
docsLoaderNostring—Workspace-relative Content Collections configuration used for repository docs.
docsModuleNostring—TypeScript import alias for generated repository-doc modules.
docsOutputNostring—Workspace-relative generated Content Collections output directory.
docsLoaderModeNostring—Create a Megamono-owned loader or adopt an explicitly selected compatible repository loader. Allowed: "create", "adopt".
docsAdoptionMapNostring—Workspace-relative reviewed JSON map of existing Markdown paths to complete Megamono lifecycle metadata; paths remain unchanged.
defaultScopeNostring"shared"Scope tag value assigned to projects that have no scope tag.
defaultPlatformNostring—Platform assigned to untagged existing applications. Allowed: "web", "node", "worker", "mobile", "apple", "android", "rust", "php", "extension".
adoptionMapNostring—Workspace-relative JSON file resolving per-project type and platform ambiguity.
toolchainPinNostring"none"Optionally seed repository-owned Node runtime pin files. Allowed: "none", "nvmrc", "node-version", "both".
toolchainNodeNostring—Exact supported Node version written by --toolchainPin.

Next steps

Review changed files and run the affected project's checks. For options that accept structured values, run the generator's --help or consult the schema in the installed package.

Megamono

One repository system for the applications, tools, and people building together inside it.

BUILD

Get startedGuidesDocumentationCLI referenceCapabilitiesInference

SOURCE

GitHub ↗

MIT licensed

© 2026 Megamono

By

Commune Software