https://github.com/lynn/pubump
A tool for making quick versioned changes to a Dart package.
https://github.com/lynn/pubump
Last synced: about 1 month ago
JSON representation
A tool for making quick versioned changes to a Dart package.
- Host: GitHub
- URL: https://github.com/lynn/pubump
- Owner: lynn
- License: mit
- Created: 2019-11-15T01:55:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-15T03:16:59.000Z (over 5 years ago)
- Last Synced: 2025-02-14T08:23:10.250Z (3 months ago)
- Language: Dart
- Size: 12.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pubump
A tool for making quick versioned changes to a Dart package.
I found myself often doing this:
```
~ $ git add ... # Stage a change.
~ $ vi pubspec.yaml # Manually bump version to 1.3.0.
~ $ vi CHANGELOG.md # Manually add "## 1.3.0 \n\n * Fix this and that"
~ $ git commit -m "1.3.0: Fix this and that"
```This tool automates exactly those steps.
```
~ $ git add ... # Stage a change.
~ $ pubump minor "Fix this and that"
```## Installing
Clone this repository, then put `alias pubump=/path/to/pubump/bin/main.dart` in your .bashrc (or equivalent).
pubump needs the [Dart VM](https://dart.dev/tools/dart-vm) to run.
## Usage
```
pubump [--push] [--publish] "Changed X, Y, and Z"* Updates pubspec.yaml
* Updates CHANGELOG.md
* Makes a git commit
* Runs `git push` (if -g or --push is passed)
* Runs `pub publish` (if -p or --publish is passed)
```