Skip to content

chore: Move Deployable Files Into public/ - #34

Merged
Xtrimmer merged 1 commit into
masterfrom
jtrimmer/public-folder-layout
Aug 16, 2026
Merged

Xtrimmer merged 1 commit into
masterfrom
jtrimmer/public-folder-layout

Conversation

@Xtrimmer

@Xtrimmer Xtrimmer commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Problem

The repository root mixes what the site serves with what only development needs. index.html, favicon.ico, img/ and js/ go to lndecode.com; test/, tools/, eslint.config.js, package.json and the workflow do not. A deploy has to name the four served paths and keep that list correct as the repo changes, and reading the root gives no clue which is which.

Solution

Move the four served items under public/, so the deploy is a sync of one tree rather than a list of paths.

Every reference inside index.html is relative, so the page is unchanged and still opens over file://.

Paths that pointed at the old locations are updated: the eslint file globs, the test loader and the dead-code checks, the output path in tools/vendor-secp256k1.js, and the vendor-integrity diff in CI. The README now says public/ is the deploy root.

539 tests pass and eslint is clean.

index.html, favicon.ico, img/ and js/ are the only files served to
lndecode.com; test/, tools/ and the repository configuration are not.
Grouping the served files under one directory makes the deploy a sync of
a single tree rather than a list of paths to include.

Nothing inside the page changes: every reference in index.html is
relative, so the four items move together and it still opens over
file://. The paths that pointed at the old locations are updated -- the
eslint file globs, the test loader and dead-code checks, the secp256k1
vendoring output, and the CI vendor-integrity diff.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Xtrimmer
Xtrimmer merged commit efa59f6 into master Aug 16, 2026
3 checks passed
@Xtrimmer Xtrimmer changed the title chore: Move Deployable Files Into public/ chore: Move Deployable Files Into public/ and Add Wrangler Config Aug 16, 2026
@Xtrimmer Xtrimmer changed the title chore: Move Deployable Files Into public/ and Add Wrangler Config chore: Move Deployable Files Into public/ Aug 16, 2026
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