pmm
Version:
Better npm publish
52 lines (34 loc) • 1.72 kB
Markdown
# pmm
[](https://www.npmjs.com/package/pmm)
[](http://opensource.org/licenses/MIT)
[](https://github.com/d4rkr00t/pmm/issues)
[](http://commitizen.github.io/cz-cli/)
Better npm publish
## Features
* Ensures the working directory is clean and that there are no unpulled changes
* Runs your checks before publishing via npm scripts
* Bumps the package version and creates git tag
* Publishes new version to npm
* Pushes commits and tags to GitHub
* Confirm before publishing
* Verbose release info after publishing

## Install
```sh
npm install -g pmm
```
## Usage
```sh
pmm [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease] [<npmtag>]
# default version: patch
# default npm tag: latest
```
If you define **"pmm:prepare"** script in **package.json** it will be run before every publish. Also you can use **prepublish** or **preversion** npm scripts to run checks before publishing.
* Read more about [npm tags](https://docs.npmjs.com/cli/tag).
* Read more about [npm verisons](https://docs.npmjs.com/cli/version).
## Author
Stanislav Sysoev d4rkr00t@gmail.com https://github.com/d4rkr00t
## License
- **MIT** : http://opensource.org/licenses/MIT
## Contributing
Contributing are highly welcome! This repos is commitizen friendly — please read about it [here](http://commitizen.github.io/cz-cli/).