Skip to content

Commit

Permalink
Add version preview to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Jun 30, 2023
1 parent f35fe9d commit 890c6e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions README.md
Expand Up @@ -51,16 +51,19 @@ targets:

## Result example

![](version.png)
Generated record for version.

By default, at project path `lib/src/constants/pubspec.yaml.g.dart`:

```dart
sealed class Pubspec {
static const PubspecVersion version = (
representation: r'4.0.0-pre.1',
canonical: r'4.0.0-pre.1',
major: r'4',
minor: r'0',
patch: r'0',
major: 4,
minor: 0,
patch: 0,
preRelease: <String>[r'pre', r'1'],
build: <String>[],
);
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Expand Up @@ -33,8 +33,8 @@ topics:
- codegeneration

screenshots:
- description: 'Version'
path: .img/version.png
- description: 'Generated version record'
path: version.png

# This package supports all platforms listed below.
platforms:
Expand Down
File renamed without changes

0 comments on commit 890c6e1

Please sign in to comment.