chore: Update migration and refactoring scripts#1566
Merged
Conversation
chrisjshull
requested changes
Jul 16, 2026
chrisjshull
approved these changes
Jul 16, 2026
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.
package.json,tsconfig.json, andREADME.md) fromnew-sample.shandmigrate-sample.shinto a new, executable helper script:generate-shared-boilerplate.sh. This significantly reduces duplication (removing ~140 lines of duplicate code) and provides a single source of truth for future sample boilerplate updates.package.json: Bothnew-sample.shandmigrate-sample.sh(via the new helper script) now output the updatedpackage.jsonstructure, which includes theauthorfield and the revisedtest,start,build:vite, andpreviewscripts that explicitly reference../../vite.config.js.AIza...key in thenew-sample.shbootloader generation with the standardGOOGLE_MAPS_API_KEYplaceholder.<!-- ... -->) inindex.jsinsidemigrate-sample.shwith a proper JS comment (// ...) to prevent ESLint failures.tsconfig.jsonarray formatting to properly condenseinclude: ["./*.ts"].style.css(4 spaces instead of 2).index.html(<body></body>) so that they passPrettierwithout being reformatted.Successfully tested
new-sample.shby scaffolding a dummy sample and runningbuild-single.shagainst it, which passed all Prettier, ESLint, and CI checks.