From 717ab2173e0cb351d73952d0e13a04972380775d Mon Sep 17 00:00:00 2001 From: Egutierrez Date: Tue, 21 Apr 2026 19:11:43 +0200 Subject: [PATCH] chore: add push_all.sh and document remotes in README Co-Authored-By: Claude Opus 4.7 (1M context) --- README.md | 15 ++++++++++++--- push_all.sh | 13 +++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100755 push_all.sh diff --git a/README.md b/README.md index 9f955ef..1e69d77 100644 --- a/README.md +++ b/README.md @@ -33,18 +33,27 @@ fn-design-system/ Read `DESIGN_SYSTEM.md`. It is the single source of truth. +## Remotes + +| Remote | URL | +|--------|-----| +| `gitea` | `https://gitea-dgg044oo04woo4ggcsws4gk0.organic-machine.com/dataforge/fn-design-system` | +| `github` | `https://github.com/gutierenmanuel/fn-design-system` | + +The GitHub copy is the one to link in Claude Design. + ## How to re-sync When you add or modify components in `fn_registry/frontend/functions/ui/`: ```bash -./sync_from_registry.sh +./sync_from_registry.sh # pulls from fn_registry git add -A git commit -m "sync: " -git push +./push_all.sh # pushes to gitea + github ``` -The script auto-detects the fn_registry root when the mirror lives at `fn_registry/subrepos/fn-design-system/`. Override with `FN_REGISTRY_ROOT=/path/to/fn_registry` if needed. +The sync script auto-detects the fn_registry root when the mirror lives at `fn_registry/subrepos/fn-design-system/`. Override with `FN_REGISTRY_ROOT=/path/to/fn_registry` if needed. ## What is NOT in this repo diff --git a/push_all.sh b/push_all.sh new file mode 100755 index 0000000..4355eb2 --- /dev/null +++ b/push_all.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# Push master to both remotes (gitea + github). +set -euo pipefail + +cd "$(dirname "${BASH_SOURCE[0]}")" + +echo "→ Pushing to Gitea..." +git push gitea master + +echo "→ Pushing to GitHub..." +git push github master + +echo "✓ Both remotes updated."