publish_tools 1.0.0+8 publish_tools: ^1.0.0+8 copied to clipboard
A set of tasks the enhance the pub.dev publishing experience. With a single command push to GitHub, pub.dev and even Homebrew.
import 'package:publish_tools/publish_tools.dart';
// this code is normally placed in the [project]/tool folder
main(args) async {
PublishTools.addAllTasks();
grind(args);
}
@DefaultTask('task to run if none specified on the command line')
@Depends('pt-commit', 'pt-publish', 'pt-homebrew')
done() {
log('commit of main project completed');
log('publish to pub.dev/packages complete.');
log('commit of brew tap complete');
}