To contribute to the development of aunty, clone the project:
git clone [email protected]:abcnews/aunty.git
...then, from the project directory, run:
npm link
This will link the globally-available aunty
command to your clone.
To revert to your original global install, run:
npm unlink
Releases are managed by release-it
. To release a new version of aunty from the default branch, run:
npm run release
By default this will do the following:
- Bump the
patch
version inpackage.json
(andpackage-lock.json
if it exists) - Commit and tag that version.
- Push the tag & commit to GitHub
- Publish to npm
If you want to cut a minor or major release, run either of the following commands instead:
npm run release -- minor
npm run release -- major
If you're ever unsure about what will happen, you can perform a dry run (which logs to the console) by running:
npm run release -- --dry-run
View the release-it
docs for full usage examples, including pre-release and npm tag management.
This project's codebase should be managed with eslint and prettier. You should configure your editor to take advantage of this to maintain the code style specifed in .eslintrc
and .prettierrc
. If your editor has a format-on-save option and a Prettier plugin, even better!