All Projects → f3ath → pubspec-version

f3ath / pubspec-version

Licence: MIT License
A CLI tool to get/set/bump the `version` key in pubspec.yaml.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to pubspec-version

crypton
A simple Dart library for asymmetric encryption and digital signatures
Stars: ✭ 25 (+0%)
Mutual labels:  dart-library, dart2
flutter sliding tutorial
User onboarding library with smooth animation of objects and background colors
Stars: ✭ 127 (+408%)
Mutual labels:  dart-library, dart2
dart-tags
ID3 Tag parser written on the pure dart language.
Stars: ✭ 35 (+40%)
Mutual labels:  dart-library, dart2
http middleware
A middleware library for Dart's http library.
Stars: ✭ 38 (+52%)
Mutual labels:  dart-library, dart2
cryptoplease-dart
Dart and Flutter apps and libraries maintained by Espresso Cash (Formerly Crypto Please) team for Solana.
Stars: ✭ 188 (+652%)
Mutual labels:  dart-library, dart2
gen lang
gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl, inspired by Intl_translation and Flutter i18n
Stars: ✭ 94 (+276%)
Mutual labels:  dart-library
http interceptor
A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.
Stars: ✭ 74 (+196%)
Mutual labels:  dart-library
FlutterMovieDetail
Simple Flutter Movie List & Detail Screen ui.
Stars: ✭ 40 (+60%)
Mutual labels:  dart2
dep check
Checks your (Flutter) dependencies for the latest version
Stars: ✭ 18 (-28%)
Mutual labels:  pubspec
hasFlutterPassedReactNativeYet
🎯 A Dart Web App to compare ↔️ GitHub stars of Flutter and React Native
Stars: ✭ 17 (-32%)
Mutual labels:  dart2
Flutter-Example
Flutter练手项目,通过一些实例项目来学习、记录 Flutter 的知识点,zhihu、2048
Stars: ✭ 44 (+76%)
Mutual labels:  dart2
Flogs
An Advanced Logging Framework develop in flutter that provides quick & simple logging solution.
Stars: ✭ 158 (+532%)
Mutual labels:  dart-library
flutter opencv
OpenCV bindings plugin for Flutter apps [work in progress]
Stars: ✭ 81 (+224%)
Mutual labels:  dart-library
flutter rongcloud im
融云通讯imlib封装的插件
Stars: ✭ 36 (+44%)
Mutual labels:  dart2
Gumao-Flutter
Gumao: A Game Character Collector App built using Flutter
Stars: ✭ 35 (+40%)
Mutual labels:  dart2
material-color-utilities
Color libraries for Material You
Stars: ✭ 605 (+2320%)
Mutual labels:  dart-library
very good analysis
Lint rules for Dart and Flutter used internally at Very Good Ventures 🦄
Stars: ✭ 194 (+676%)
Mutual labels:  dart-library
Aqueduct-MongoDB
Building a Blog API with Aqueduct framework and MongoDB
Stars: ✭ 15 (-40%)
Mutual labels:  dart2
flutter plus
Develop applications in Flutter more quickly and easily. Customize Containers, Buttons, Texts and TextFields in a few lines. Navigate between Screens and open BottomSheets, Dialogs and Snackbars without context from any point.
Stars: ✭ 17 (-32%)
Mutual labels:  pubspec
swipedetector
A Flutter package to detect up, down, left, right swipes.
Stars: ✭ 34 (+36%)
Mutual labels:  dart2

The project has moved to cider. This package is archived.






CLI tool to set/bump the version key in pubspec.yaml. Semver-compliant (Almost. It uses pub_semver which is a bit different.)

Installing

Install the package from the command line:

pub global activate pubspec_version

This will add the pubver binary to your ~/.pub-cache/bin.

Usage

Bumping the version

pubver bump <part>

where <part> can be either breaking, major, minor, patch or build.

Examples

Before Command After
1.2.3 pubver bump breaking 2.0.0
0.2.1 pubver bump breaking 0.3.0
0.2.1 pubver bump major 1.0.0
0.2.1 pubver bump minor 0.3.0
0.2.1 pubver bump patch 0.2.2
0.2.1 pubver bump build 0.2.1+1
0.2.1+42 pubver bump build 0.2.1+43
0.2.1+foo pubver bump build 0.2.1+foo.1
0.2.1+42.foo pubver bump build 0.2.1+43.foo
0.2.1+foo.bar.1.2 pubver bump build 0.2.1+foo.bar.2.0

The bump build command is a bit tricky. It either increments the first numeric part of the build (if there is a numeric part) setting other numeric parts to zeroes, or appends .1 to the build (otherwise).

Retaining the build number

When bumping either major, minor, or patch versions, it is possible to retain the existing build number (if any). To do so, pass --retain-build (-b) flag.

Before Command After
1.2.3+42 pubver bump breaking 2.0.0
0.2.1+42 pubver bump breaking -b 0.3.0+42
0.2.1+42 pubver bump patch 0.2.2
0.2.1+42 pubver bump patch -b 0.2.2+42

Setting the version

pubver set <version>

where <version> can be any arbitrary version.

Getting the version

pubver get

Output

The tool prints the new version to stdout. This allows post processing, e.g. making a git commit.

git ci . -m "Release $(pubver bump breaking)"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].