When this course began, the store’s site used HTML, CSS, and modules loaded with script tags, and the README asked for an “Open now” badge that needed a date library. Now that same site is an npm and Vite project on main. It installs a package you checked first, builds into dist/, keeps its key out of Git, and passes npm run check. The old site stayed live on main until the move was ready.
In this summary, you’ll look back at how the move went and at the habits you picked up on the way. You’ll also find which command answers which question, so you can come back to this page whenever you’re unsure. Start with the path your project took.
Look Back at the Move
You started the move on a branch called vite, because the changes would break the home page for a while, and main had to keep the working site. Creating the branch didn’t copy any files.
A branch is a name that points to a commit, and the name you’re on moves forward with each commit you make. Switching branches puts that branch’s committed files in your one folder. Uncommitted work belongs to no branch, so it comes along when you switch. If the switch would overwrite it, Git refuses.
On vite, npm init -y gave the project its package.json. Its "type": "commonjs" broke the check script, so you set "type" to "module". You also added a "check" script, so the report runs with npm run check.
Before installing dayjs, you checked its name, weekly downloads, repository, and last publish. The install wrote a version range to package.json and the exact version to package-lock.json, and you committed both while node_modules/ stayed ignored.