- .gitignore: /files/*.svg reverted to /files/logos.svg — files/preview.svg is deliberately NOT ignored anymore (it is the editable source of preview.png and lives committed in the private variants repo). The public export still excludes files/*.svg (LimeSurvey's image validator rejects SVG for images). - variants/build.php: copyDirRecursive() gained a $neverOverwrite list; files/preview.svg is copied into a variant only at FIRST creation (seeded from the mother when the definitions dir has none) and never overwritten on later builds. The build prints a WARNING when the variant's preview.png is md5-identical to the mother's, enforcing the standing rule that every variant has its own preview. - Standing rule recorded in AGENTS.md (project) and ~/.vibe/AGENTS.md. Verified in a /tmp sandbox build: first build copies/seeds preview.svg; a user-edited preview.svg survives rebuilds (also when the definitions copy changes); all other assets are still overwritten; identical-preview.png warning fires; php -l clean; export_public.sh exit 0 with no .svg in the zip. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
80 lines
3.5 KiB
Text
80 lines
3.5 KiB
Text
# ---------------------------------------------------------------------------
|
|
# Public-repo policy (Forgejo): this repository contains ONLY the files needed
|
|
# to run the theme (config.xml, views/, options/, css/, scripts/, files/,
|
|
# README.md, LICENSE). Everything listed below is developer-local tooling or
|
|
# internal notes and is deliberately NOT tracked, so it never reaches Forgejo.
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# variants/ — only the confidential parts stay local: the client definitions
|
|
# (*.json), the leak patterns (client names/colors) and the dev tests. The
|
|
# generic tooling (build.php, export_public.sh — verified to contain no client
|
|
# data) IS tracked, so variants can be built from the public repo alone, and
|
|
# variants/example/ IS tracked on purpose: it is the public example output of
|
|
# the build process (the respondage_respondage example variant). The canonical
|
|
# client definitions live in the private variants repository
|
|
# (vanilla_respondage_variants); point variants/build.php at that folder via
|
|
# its 2nd CLI argument or RESPONDAGE_VARIANTS_DIR.
|
|
/variants/*.json
|
|
/variants/leak-patterns.txt
|
|
/variants/tests/
|
|
|
|
# sass/ sources are developer-only and LEADING: every sass/*.sass (except _*
|
|
# partials) is compiled locally to its css/<name>.css counterpart (which IS
|
|
# committed — sass is leading, css is the build artifact). LimeSurvey serves
|
|
# the committed css and never compiles sass itself. The .sass files were purged
|
|
# from history with git filter-repo. Watcher: `sass --watch sass:css`.
|
|
/sass/
|
|
|
|
# Source maps are artifacts of the local sass compile — not needed at runtime
|
|
# (LimeSurvey serves css/ as-is).
|
|
/css/*.map
|
|
|
|
# Export zips, if an output dir inside the theme is ever used.
|
|
/dist/
|
|
|
|
# Work-in-progress logo artwork — local only, never commit/publish.
|
|
/files/logos.svg
|
|
|
|
# NOTE: files/preview.svg is deliberately NOT ignored (standing rule, row 235):
|
|
# it is the editable source of files/preview.png and is meant to be committed —
|
|
# in a variant (private variants repo) build.php adds it only once, at first
|
|
# creation, and never overwrites it afterwards. The public export still excludes
|
|
# all files/*.svg (see variants/export_public.sh): LimeSurvey's image validator
|
|
# rejects SVG for theme images, so only the exported PNG ships.
|
|
|
|
# Session prompt log (prompts used + results). Internal working notes — never
|
|
# commit, never publish.
|
|
prompts.md
|
|
|
|
# Local LimeSurvey working notes (limesurvey.md) — internal, never commit/publish.
|
|
limesurvey.md
|
|
|
|
# Feature-request drafts for LimeSurvey core (English, well-substantiated) are
|
|
# internal too: never commit them to the public repo.
|
|
FEATURE_REQUEST*.md
|
|
|
|
# Bug-report drafts for LimeSurvey core (English, with repro + stack trace) are
|
|
# internal too: never commit them to the public repo.
|
|
BUG_REPORT*.md
|
|
|
|
# Parked-prompt index (moved out of prompts.md so it stays findable) and
|
|
# security-review reports are internal too: never commit, never publish.
|
|
OPEN_PROMPTS.md
|
|
SECURITY_REVIEW*.md
|
|
|
|
# Working agreements for the agent (AGENTS.md) are internal too: never commit.
|
|
AGENTS.md
|
|
|
|
# Local agent config for this repo (tool permissions) — never commit, never publish.
|
|
/.vibe/
|
|
|
|
# Local dev tooling (jsdom DOM tests for options/options.js): package files and
|
|
# node_modules live in the theme dir so tests run from here, but they are
|
|
# developer-local only — never commit, never publish.
|
|
/node_modules/
|
|
/package.json
|
|
/package-lock.json
|
|
|
|
# Runtime cache the app writes into the theme dir during local renders (twig
|
|
# cache) — never commit, never publish.
|
|
/tmp/
|