Getting started
Updating
Bring a new version of the template into a project you have already changed, without losing your work.
Every purchase includes future updates. When a new version comes out, download it again from the store: the package has the same full/ and starter/ folders as before, plus two files that tell you what changed.
File | What it tells you |
|---|---|
CHANGELOG.md | What changed in each version, grouped by area, with the steps to follow when a change breaks something. Also in Changelog. |
CHANGES-<from>-to-<to>.md | Every file added, changed or removed in full/ and in starter/ since the previous version. Use it as a checklist. |
Versions follow Semantic Versioning: a patch (1.0.1) only fixes bugs, a minor version (1.1.0) adds components or pages without breaking anything, and a major version (2.0.0) can change props, routes or the folder structure, so read its changelog entry before you update.
If you started from full/
You have changed the template, so you cannot simply replace the folder. Keep an untouched copy of the template in its own Git branch and let Git merge each new version into your work. Set it up once, when you start the project: copy the contents of full/ into your project folder and run
$git init$git checkout -b upstream$git add -A$git commit -m "melsami-ui 1.0.0"$git checkout -b main
Build your product on main. When a new version arrives, switch to upstream (git checkout upstream), delete everything in the folder except .git, copy the contents of the new full/ in, and run
$git add -A$git commit -m "melsami-ui 1.1.0"$git checkout main$git merge upstream
Git applies only what changed between the two versions. Where you and the template edited the same lines, it marks a conflict: keep your version, the new one or a mix, then run npm install, npm run lint, npm run typecheck and npm test.
upstream from the commit where you first copied the template (git checkout -b upstream <commit>), then follow the update steps above. If you have no such commit, commit the old version of full/ on a new orphan branch (git checkout --orphan upstream) and merge with --allow-unrelated-histories the first time.If you started from starter/
Your project no longer looks like full/, so a merge would bring back the demos. Go through CHANGES-<from>-to-<to>.md instead and copy what you want:
components/ui/,components/layout/,composables/,utils/andassets/styles/are shared by both folders, so their changes usually apply as they are.- Compare the
starter/section of the file with your project: those are the files the clean project itself received. - New dependencies or versions are in
package.json; update yours and runnpm install.
Files you are likely to have edited
These files hold your brand and settings, so expect conflicts there and keep your values: config/brand.config.ts, config/theme.config.ts, composables/useNavigation.ts, config/features.config.ts, the locales/ you translated and anything in content/.