♻️(frontend) Refactor: merge cunningham#284
Draft
PanchoutNathan wants to merge 8 commits into
Draft
Conversation
Relocate the existing UI Kit sources without changing their content. Prepare the repository for the workspace-based package layout.
Configure Yarn workspaces, Turborepo, Changesets, and shared tooling. Declare the three packages and update the monorepo lockfile.
Import the Cunningham token generator, CLI, defaults, and test suite. Preserve the historical output format and cunningham binary name.
Import Cunningham components, styles, stories, documentation, and tests. Merge shared components, locales, providers, exports, icons, and themes.
Rewrite legacy package, style, font, and icon imports from an npx command. Keep preview as the default and support explicit write and check modes.
Describe the monorepo packages, install paths, and migration command. Move release guidance under docs and define independent package versioning.
Cache workspace dependencies and run package checks through Turbo. Publish the validated Storybook artifact to GitHub Pages from main.
PanchoutNathan
marked this pull request as draft
July 21, 2026 15:21
Track the token library sources hidden by the generic lib ignore. Build Storybook through Turbo so workspace dependencies are ready first.
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.
Summary
This PR merges Cunningham into UI Kit and turns the repository into a Yarn
monorepo with three packages:
@gouvfr-lasuite/ui-components: all UI Kit and Cunningham components.@gouvfr-lasuite/ui-tokens: the token engine, themes and generators.@gouvfr-lasuite/ui-codemod: an npx-only migration CLI.It also consolidates the documentation into a single Storybook, adds manual
release documentation and deploys Storybook to GitHub Pages after merges to
main.Testing
yarn lintyarn buildyarn testyarn test:ctSTORYBOOK_BASE_PATH=/ui-kit yarn build-storybook