-
Install dependencies:
npm install
-
Make your changes in
scripts/ -
Build:
npm run build
-
Test locally by creating a PR in this repo
-
Commit both
scripts/anddist/:git add scripts/ dist/ git commit -m "Your changes"
-
Build:
npm run build git add dist/ git commit -m "Build for release" -
Tag and push:
git tag -a v1.0.1 -m "Release v1.0.1: Description" git push origin v1.0.1 # Update major version tag git tag -f v1 -m "Release v1" git push -f origin v1
-
Create GitHub Release (optional)
- Major (v2.0.0): Breaking changes
- Minor (v1.1.0): New features, backward compatible
- Patch (v1.0.1): Bug fixes
- Always run
npm run buildbefore committing - The
dist/folder must be committed - Use modern JavaScript (Node 20+)
- Add comments for complex logic