syn/template/components.yml
GnomeZworc 6796e102e0
add template + document framework in root README
template/README.md: stripped to a one-liner bootstrap command.
README.md: full project docs (structure, add page, add component, build.sh).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2026-06-07 13:06:16 +02:00

39 lines
1.3 KiB
YAML

# Component manifest — source of truth for the web UI.
#
# Edit this file, then run ./build.sh to:
# - download every remote component into sources/components/<name>/
# - generate sources/components.json (the runtime load list) in declared order
#
# Load order matters: service components (login-gate, api-client) must come
# before the components that consume them.
# Local components shipped inside this repo. Not downloaded — listed here only
# so build.sh can place them in the generated load order.
local_components: []
# Remote components fetched from git at build time.
# Each is its own repo; its root must contain <name>.js and manifest.json.
#
# - name: side-nav
# repo: https://git.g3e.fr/syonad/syn-side-nav
# ref: main
components: []
# Vendor libraries — downloaded into sources/vendor/ at build time (gitignored).
# Components import them via relative paths, never via components.json.
vendors: []
# Pages — each page is a self-contained directory (JS + CSS + index.html + manifest.json).
# Page manifest.json must contain: route, label, icon.
# Page JS must export an optional init(main) function.
local_pages:
- home
remote_pages: []
# Menu — order and visibility in the navigation.
# List routes in desired display order.
# A page not listed here is accessible via /#/route but hidden from the nav.
menu:
- home