Repository navigation
Stop committing build output - #16
Merged
Merged
Conversation
dist/, the compiled src/css themes, build/ns.js and index.html are now build output only. npm pack/publish build them first (prepack), and CI checks the package has its built files instead of checking the committed copies are fresh. The `lm` namespace declaration is generated inside the build, so build/ns.js is gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dist/, the compiledsrc/cssthemes (and their maps),build/ns.jsandindex.htmlare no longer committed. They're generated bynpm run build, and are now in.gitignore.prepackscript runs the build, sonpm packandnpm publishalways ship freshly built files, whether from the workflow or by hand.npm pack --dry-runincludesdist/goldenlayout.js,dist/goldenlayout.min.js,src/css/goldenlayout-base.cssandindex.d.ts. I ran it locally, and it also fails as it should when a required file is missing.build/ns.jsis gone. The build generates thelmnamespace declaration inline from the directories undersrc/js, so a new directory no longer needs a regeneration step. The in-memory test build and watch mode no longer depend on it either.src/css/default-theme.cssandsrc/css/README.mdstay committed: they aren't generated.Same published files.
npm packfrom a clean checkout, with no build output on disk, produces a package whosedist/andsrc/cssare byte-identical to the published@compiler-explorer/golden-layout@1.6.1. Onlypackage.jsonand the README differ. The local build also reproduces every previously committed file exactly.npm testpasses from a clean tree with nothing built.Compiler Explorer installs from npm, so it's unaffected. Anything still installing straight from git (
github:compiler-explorer/golden-layout) would get nodist/from a commit after this one; existing tags likev1.6.0keep their committed build.🤖 Generated with Claude Code