This guide is for maintainers and contributors who want to develop, test, and publish the CLI itself.
git clone https://github.com/patnir/starterminiapp-cli.git
cd starterminiapp-cli
npm installRun locally (without publishing):
node bin/index.mjs test-appor test it as if it were installed:
npx ./bin/index.mjs test-appEdit bin/index.mjs as needed:
- To point to a new starter repo
- To change installation steps
- To add flags or behaviors (e.g.
--no-install,--branch main)
Each time you publish a new release, bump the version number in package.json:
# Patch: small fixes
npm version patch
# Minor: new features, backward compatible
npm version minor
# Major: breaking changes
npm version majorThis will:
- Update the version number
- Create a new git tag
- Commit the change automatically
Then push the tag:
git push && git push --tagsMake sure you're logged in:
npm whoamiThen publish the latest version:
npm publish --access publicThat automatically updates what users get when they run:
npx starterminiapp my-mini-appAfter publishing a new version, test with:
npx starterminiapp@latest test-appYou can also install a specific version explicitly:
npx starterminiapp@1.1.0 my-mini-app| Action | Command |
|---|---|
| Create new app | npx starterminiapp my-mini-app |
| Version bump | npm version patch |
| Publish update | npm publish --access public |
| Test latest | npx starterminiapp@latest test-app |
- Every publish replaces the version users get when they run
npx starterminiapp. - You must bump the version (e.g.
npm version patch) before every newnpm publishβ npm doesn't allow re-publishing the same version number. - The README doubles as your GitHub front page and what appears on npmjs.com/package/starterminiapp.