From 16ea1ab3cd6fad142fde02e6f2bf8c1b4d02186c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 18 Oct 2026 18:01:22 +0000 Subject: [PATCH] :wrench: Ignore generated artifacts and local root files Local scratch files and autogenerated build output were showing up in git status: - /*.html and /*.json cover local reports and token dumps at the repo root; !/package.json keeps the tracked root manifest visible to git. - /media-processor/target/ and /scripts/__pycache__/ cover build and Python cache output. - render-wasm artifacts copied into the exporter go in their own commented block. Record the exporter and render-wasm generated paths in the module memories so nobody edits or commits them by hand. AI-assisted-by: deepseek-v4.1-flash --- .gitignore | 11 +++++++++++ .serena/memories/exporter/core.md | 1 + .serena/memories/render-wasm/core.md | 2 ++ 3 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 707d430b13..4ad6684de2 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,10 @@ .repl opencode.json .opencode/package-lock.json +/*.html /*.jpg +/*.json +!/package.json /*.md !CHANGES.md !CONTRIBUTING.md @@ -91,7 +94,14 @@ opencode.json /playwright/.cache/ /render-wasm/target/ /render-wasm/.render-wasm-build.lock + +# render-wasm build artifacts copied into the exporter (autogenerated) +/exporter/resources/wasm/render-wasm.js +/exporter/resources/wasm/render-wasm.wasm +/exporter/src/app/wasm/shared.js + /media-processor/dist/ +/media-processor/target/ /**/node_modules /**/.yarn/* /.pnpm-store @@ -112,4 +122,5 @@ opencode.json /.ci-logs /tmp/ /.codex/ +/scripts/__pycache__/ /tools/__pycache__ diff --git a/.serena/memories/exporter/core.md b/.serena/memories/exporter/core.md index 9b7078045b..f48948d8d6 100644 --- a/.serena/memories/exporter/core.md +++ b/.serena/memories/exporter/core.md @@ -5,6 +5,7 @@ ## Layout and commands - Source: `exporter/src/`; config: `deps.edn`, `shadow-cljs.edn`, `package.json`; runtime helpers/assets: `vendor/`, `scripts/`. +- `exporter/resources/wasm/render-wasm.{js,wasm}` and `exporter/src/app/wasm/shared.js` are generated render-wasm build output, not source: they are gitignored. Never hand-edit or commit them; regenerate by rebuilding render-wasm. - From `exporter/`: setup `./scripts/setup`; watch `pnpm run watch` or `pnpm run watch:app`; production build `pnpm run build`; test bundle `pnpm run build:test`; tests `pnpm run test` or `pnpm run test:quiet`; lint `pnpm run lint:clj`; format check/fix `pnpm run check-fmt:clj` / `pnpm run fmt:clj`. - Because exporter consumes `common/`, shared file/shape/model changes may need exporter verification even when the immediate change is not under `exporter/`. - Cross-cutting testing principles and anti-patterns: `mem:testing`. diff --git a/.serena/memories/render-wasm/core.md b/.serena/memories/render-wasm/core.md index 17345b7a7d..88cf0e560e 100644 --- a/.serena/memories/render-wasm/core.md +++ b/.serena/memories/render-wasm/core.md @@ -20,6 +20,8 @@ `./build` sources `_build_env`, which sets the Emscripten paths and `EMCC_CFLAGS`. The WASM heap starts at 256 MB and uses geometric growth. +Build output is gitignored and stays untracked everywhere it lands: `frontend/resources/public/js/render-wasm.{js,wasm}` and `frontend/src/app/render_wasm/api/shared.js` from `./build`, plus `exporter/resources/wasm/render-wasm.{js,wasm}` and `exporter/src/app/wasm/shared.js`. Never commit generated JS/WASM; rebuild instead. + ## Commands From `render-wasm/`: