dpp 1.2.0
dpp: ^1.2.0 copied to clipboard
A better dart pub publish. Before publish, runs tests, fixes, lint, updates CHANGELOG, pubspec file and git commands.
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
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.
Simple CLI usage #
dpp <version> [optional commit/changelog message]
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
void main() {
final pubPublisher = DartPubPublish(git: false);
// Publish a new version with default message
pubPublisher.run('1.2.0'); // default message: 'Update version number'
// Publish a new version with a changelog message
pubPublisher.run('1.3.0', message: 'Added a new feature');
print('Package published!');
}
LICENSE #
CONTRIBUTE #
If you have an idea for a new feature or have found a bug, just do a pull request (PR).