0 purchases
dpp
dpp #
A better dart pub publish, by running tests, fixes, lint, update CHANGELOG file and git commands.
Installing globally as CLI #
dart pub global activate dpp
copied to clipboard
If you receive a "Warning" just follow the instructions and reopen the console. If you need more help visit Running a script from your PATH.
If you don't want to change your precious PATH, go horse, just run dart pub global run dpp
Simple CLI usage #
dpp <1.2.3|patch|minor|major> [optional commit/changelog message]
copied to clipboard
Examples:
dpp 1.0.1 Typo fix
copied to clipboard
dpp minor New great feature # version will be 1.1.0
copied to clipboard
dpp major Rewritten code from Rust to Dart # 2.0.0
copied to clipboard
Simple run dpp to see all flags available.
ProTip: create an alias "pp" with your default flags. If my standard do not fits for you. E.g. put the following in you bashrc/zshrc: alias pp="dpp --no-git --no-tests"
Using internaly in only one project #
dart pub add dev:dpp # dev: means you will use only in development
copied to clipboard
void main() {
final pubPublisher = DartPubPublish(git: false);
// Publish a new version with default message
pubPublisher.run('1.2.1'); // default message: 'Update version number'
// Publish a new version with a changelog message
pubPublisher.run('minor', message: 'Added a new feature');
print('Package published!');
}
copied to clipboard
LICENSE #
BSD 3-Clause License
CONTRIBUTE #
If you have an idea for a new feature or have found a bug, just do a pull request (PR).
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.