Develop
Contributing
The branch flow, the local checks and what a component change must include.
The complete rules are in AGENTS.md at the root of the repository. This page is the short
version for a first contribution.
#Set up
npm ci
npm run build # packages/faifo-design/dist
npm test # every design-system test, from source
npm run docs:dev # this site, with live reloadNode.js 24.22.3 or later on 24.x, or 26.13.1 or later.
#Branches
| Branch | Takes | Gate |
|---|---|---|
integration | Every feature and fix pull request | The author's focused local checks |
develop | Only the promotion from integration | verify, the whole suite |
main | release/<version> and hotfix/<version> | verify, then the owner releases |
Branch from integration as feat/…, fix/…, docs/… or chore/…. Commit messages and
everything stored in the repository are in English. Integration has no broad CI, so write the
commands you ran and their results in the pull request.
#A component change includes
- The change in
packages/faifo-design/src, using tokens only: no hex colour, no numericz-index, no--faifo-ref-*in component CSS. - A specimen in the catalogue that shows the new state, and a test that fails without the change.
- For a new export: an entry in
catalogue/inventory-policy.json, a registration incatalogue/registry.tswhen it is a component, and a place on a page underpackages/docs/content/components. The documentation build fails when an export or a specimen appears on no page. - A
###entry under## Unreleasedin the package changelog when the API or behaviour changed.
#Documentation
The prose of this site is Markdown under packages/docs/content. The API tables and the code of
every example are read from the package source at build time, so they cannot be edited here: to
change them, change the source or the specimen. A component page quotes sections of the
package README with a readme: list in its frontmatter, and any page can place one with a
readme: placeholder on a line of its own (the pages under content/design show the form), which
keeps contract text in one place.
npm run docs:check # types and island registration
npm run docs:test # the extractors and the content model
npm run docs:build # the site, then link and coverage verification#Changelog
Every pull request that changes the API or behaviour of this package adds an entry
under the single ## Unreleased heading of CHANGELOG.md, one ###
subheading per change. A release renames Unreleased to its version number, for
example ## 0.1.45 — …, in the same change that sets version in package.json.