Skip to content

Declare the apps of a repository with component tables - #115

Merged
ericof merged 2 commits into
mainfrom
issue-113
Dec 3, 2026
Merged

ericof merged 2 commits into
mainfrom
issue-113

Conversation

@ericof

@ericof ericof commented Dec 3, 2026

Copy link
Copy Markdown
Member

A specification 2 repository.toml can now declare the apps its packages are developed in with a [[component]] array. One repository can then hold, for example, a Volto site and an Aurora site that share packages. Each package lists the components it is installed in with components.

[[component]]
name = "aurora"
type = "node-aurora"
path = "aurora"

[[package]]
type = "node"
name = "@acme/videos-core"
path = "packages/videos-core"
components = ["volto", "aurora"]

A file without component tables gets backend and frontend components derived from its primary packages. The settings dump of every existing fixture project is unchanged apart from the new components key.

Changes

  • deps info, check, upgrade, sync and constraints, versions dependencies and the frontend changelog copy work per component. The make targets are <component>-install.
  • A node-aurora component reads @plone/aurora from configDependencies in pnpm-workspace.yaml, falling back to the first document of pnpm-lock.yaml. deps upgrade aurora edits that line in place and keeps its comments.
  • settings github-outputs prints components, packages, <component>-version and a dorny/paths-filter filter as step outputs.
  • settings migrate --components writes the derived components out as tables.
  • Schema repository-v2: a new component definition and a components key on packages.
  • Bug fixes:
    • two-document pnpm lockfiles are read;
    • a node package at path = "." uses the root as its workspace;
    • a missing mrs.developer.json no longer fails the version lookup.

Behaviour changes to review

  • frontend_root returns the repository root for a package at the root. test_utils_path now expects that.
  • With declared components, primary and base_package on a package have no effect, and repoplone warns about them. settings.backend and settings.frontend still report the component versions.

CI

A separate commit runs coverage alongside the test matrix. It also adds a "Final result" job that summarizes lint, test and coverage and fails when any of them did not succeed.

Closes #113

Coverage no longer waits for the test matrix, so a run finishes sooner.
A new "Final result" job waits for lint, test and coverage, writes their
results to the run summary, and fails when any of them did not succeed.
A specification 2 repository.toml can now declare the apps its packages
are developed in with a [[component]] array, so one repository can hold a
Volto site and an Aurora site that share packages. Each package lists the
components it is installed in with components.

Files without component tables get backend and frontend components derived
from their primary packages, and behave as before.

- deps info, check, upgrade, sync and constraints, versions dependencies
  and the frontend changelog copy work per component; make targets are
  <component>-install.
- An Aurora component reads and pins @plone/aurora as a pnpm config
  dependency, from pnpm-workspace.yaml or the first lockfile document.
- settings github-outputs prints components, packages, versions and a
  dorny/paths-filter filter as GitHub Actions step outputs.
- settings migrate --components writes the derived components out.
- Two-document pnpm lockfiles are read, a node package at the repository
  root uses the root as its workspace, and a missing mrs.developer.json
  no longer fails the version lookup.
@ericof
ericof requested a review from a team as a code owner December 3, 2026 14:21
@ericof ericof self-assigned this Dec 3, 2026
@ericof
ericof merged commit 32cdef2 into main Dec 3, 2026
9 checks passed
@ericof
ericof deleted the issue-113 branch December 3, 2026 14:36
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.

Support repositories with several frontends: components (apps) separate from packages

1 participant