Skip to content

chore: track build scripts in version control#70

Merged
aka-blackboots merged 1 commit into
mainfrom
chore/track-scripts-dir
May 3, 2026
Merged

chore: track build scripts in version control#70
aka-blackboots merged 1 commit into
mainfrom
chore/track-scripts-dir

Conversation

@aka-blackboots
Copy link
Copy Markdown
Contributor

Summary

Removes the blanket scripts/ ignore from .gitignore and commits the three build-related files inside the directory:

File Used by
scripts/generate-thumbnails.js npm run generate-thumbnails
scripts/prepare-dist-package.mjs npm run release (pre-prepare)
scripts/thumbnail-generator.html HTML harness for the thumbnail flow

One optional maintainer-only file in the directory stays gitignored by name. vite.config.js now checks for its presence and skips the corresponding plugin when it's absent, so contributors can build examples without needing it locally.

Why

package.json and vite.config.js both reference files inside scripts/. With the directory fully gitignored, fresh clones could not run release or build steps.

Test plan

  • npm run build (rollup) — green
  • Reviewer-side: clone fresh, confirm npm run release reaches the publish step (without actually publishing)
  • Reviewer-side: confirm npm run build-examples works without the optional file present (note: there is a separate pre-existing issue with examples/src/demo.html that is unrelated to this PR)

Notes

  • scripts/generate-thumbnails.js references catalog 2D classes that don't currently exist in src/. Pre-existing condition; tracked separately, not addressed here.

🤖 Generated with Claude Code

Removes the blanket scripts/ ignore that prevented fresh clones from
running release/thumbnail commands. Tracks the three build-related files:
- scripts/generate-thumbnails.js
- scripts/prepare-dist-package.mjs
- scripts/thumbnail-generator.html

One optional maintainer-only file in scripts/ remains gitignored by name;
vite.config.js now skips it gracefully when absent so contributors can
build without it.

Note: scripts/generate-thumbnails.js references catalog 2D classes that
do not currently exist in src/. Pre-existing condition tracked
separately, not addressed here.
@aka-blackboots aka-blackboots merged commit d7d7cdf into main May 3, 2026
@aka-blackboots aka-blackboots deleted the chore/track-scripts-dir branch May 3, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant