mirror of
https://github.com/penpot/penpot.git
synced 2026-10-28 21:40:34 +00:00
🔧 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
This commit is contained in:
parent
da1791bf00
commit
16ea1ab3cd
11
.gitignore
vendored
11
.gitignore
vendored
@ -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__
|
||||
|
||||
@ -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`.
|
||||
|
||||
@ -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/`:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user