Skip to content

Latest commit

 

History

History

autover

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

autover

Auto version increment.

Getting Started

  • Create yaml config file.
autover:
  projects:
      backend:
          path: '../backend'
          match_token: '_BACK_'
      frontend:
          path: '../dslideshow_flutter'
          match_token: '_FRONT_'
  targets: ["../common/lib/version.dart.template"]
  • Create 'version.dart.template' file
class ApplicationInfo{
  final String frontendVersion = '_FRONT_';
  final String backendVersion = '_BACK_';
}
For build increment
  • Run 'dart bin/main.dart -c autover.yaml -v build --apply true'
  • Profit (generated 'version.dart' )
class ApplicationInfo{
  final String frontendVersion = '1.0.0+2';
  final String backendVersion = '1.0.2+20';
}
For major increment
  • Run 'dart bin/main.dart -c autover.yaml -v major --apply true'
  • Profit (generated 'version.dart' )
class ApplicationInfo{
  final String frontendVersion = '2.0.0';
  final String backendVersion = '2.0.0';
}

Features

  • Change pubspec.yaml
  • Support for changes 'major', 'minor', 'patch', 'build'
  • Generate files with version