refactor(scripts): single-process wrapper generation - #198
Open
rkaraivanov wants to merge 1 commit into
Open
Conversation
The four build-* scripts each spawned npm + tsx and built a TypeScript program over all of src/**, re-parsing the wrappers the previous step had just written. They are configs now; generate.ts runs them together and resolves every type entry in one program. ~10s -> ~2.5s, byte-identical output. - remove the undeclared `glob` import and unused `rimraf` - type-check scripts/ for the first time (typecheck:scripts) - add check:manifests: published ranges must admit installed versions - read custom-elements.json rather than import it; tsc was inferring a literal type for 4.5MB of JSON nothing used (typecheck 3.9s -> 1.5s) - warn on config tags matching no declaration; drop two stale ignores - stop mutating the shared manifest in createEvents/parseElementsJSON - resolve template config into one predicate, dropping the igc-chat branch - CI: static gates before the build in both pipelines; cache Playwright - rename build-* npm scripts to generate:* - update igniteui-webcomponents to 7.3.1, grid-lite to 0.10.0
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.
The four build-* scripts each spawned npm + tsx and built a TypeScript program over all of src/**, re-parsing the wrappers the previous step had just written. They are configs now; generate.ts runs them together and resolves every type entry in one program. ~10s -> ~2.5s, byte-identical output.
globimport and unusedrimrafAdditional information (check all that apply):
Checklist: