chore: add push_all.sh and document remotes in README
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -33,18 +33,27 @@ fn-design-system/
|
|||||||
|
|
||||||
Read `DESIGN_SYSTEM.md`. It is the single source of truth.
|
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
|
## How to re-sync
|
||||||
|
|
||||||
When you add or modify components in `fn_registry/frontend/functions/ui/`:
|
When you add or modify components in `fn_registry/frontend/functions/ui/`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./sync_from_registry.sh
|
./sync_from_registry.sh # pulls from fn_registry
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "sync: <what changed>"
|
git commit -m "sync: <what changed>"
|
||||||
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
|
## What is NOT in this repo
|
||||||
|
|
||||||
|
|||||||
Executable
+13
@@ -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."
|
||||||
Reference in New Issue
Block a user