pubump 0.1.7

  • Readme
  • Changelog
  • Installing
  • 48

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 to run.

Usage #

pubump [--push] [--publish] <major|minor|patch|build> "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)

0.1.7 #

  • Add install instructions

0.1.6 #

  • Add simple error handling

0.1.5 #

  • Update README

0.1.4+3 #

  • Blah

0.1.4+2 #

  • Test build bump

0.1.4+1 #

  • Test build bump

0.1.4 #

  • Test publish

0.1.3 #

  • More testing

0.1.2 #

  • Test

0.1.1 #

  • Use ArgParser

0.1.0 #

  • Initial version, created by Stagehand

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  pubump: ^0.1.7

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:pubump/pubump.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

We analyzed this package on Mar 30, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Format bin/main.dart.

Run dartfmt to format bin/main.dart.

Format lib/pubump.dart.

Run dartfmt to format lib/pubump.dart.

Format lib/version.dart.

Run dartfmt to format lib/version.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and pubump.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.0 <3.0.0
args ^1.5.2 1.6.0
Dev dependencies
pedantic ^1.0.0
test ^1.0.0