From 890c6e1f00131286ab9547596b93a9c9d00afad8 Mon Sep 17 00:00:00 2001 From: Plague Fox Date: Fri, 30 Jun 2023 13:53:13 +0400 Subject: [PATCH] Add version preview to README.md --- README.md | 9 ++++++--- pubspec.yaml | 4 ++-- .img/version.png => version.png | Bin 3 files changed, 8 insertions(+), 5 deletions(-) rename .img/version.png => version.png (100%) diff --git a/README.md b/README.md index 73ac9ed..7c0d91f 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,9 @@ targets: ## Result example +![](version.png) +Generated record for version. + By default, at project path `lib/src/constants/pubspec.yaml.g.dart`: ```dart @@ -58,9 +61,9 @@ 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: [r'pre', r'1'], build: [], ); diff --git a/pubspec.yaml b/pubspec.yaml index acd197d..ceb73dc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: diff --git a/.img/version.png b/version.png similarity index 100% rename from .img/version.png rename to version.png