पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.2.10

cider

pubspec.yaml में पैकेज वर्जन को स्वचालित रूप से बढ़ाएं, सेट करें, और प्रिंट करें। चेंजलॉग में एंट्रीज को जोड़ें, सूचीबद्ध करें, और प्रिंट करें। चेंजलॉग में डिफ लिंक बनाएं।

AndroidiOSmacOSWindowsLinux
30-दिन डाउनलोड
38.5 हज़ार
लाइक
175
Pub अंक
150

पैकेज इंस्टॉल करें

flutter pub add cider

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

Cider एक Flutter/Dart पैकेज है जो pubspec.yaml में संस्करण प्रबंधन को स्वचालित करता है, जिसमें संस्करण संख्या बढ़ाने और प्रिंट करने शामिल है। यह उपयोगकर्ताओं को घटना दर्ज करने, सूचीबद्ध करने और प्रिंट करने की अनुमति देकर परिवर्तन लॉग के हैंडलिंग को सरल बनाता है, जबकि संस्करणों के बीच डिफ लिंक स्वचालित रूप से उत्पन्न करता है। विकास कार्यप्रवाह में बिना किसी बाधा के एकीकरण के लिए डिज़ाइन किया गया है, यह Android, iOS, macOS, Windows और Linux प्लेटफॉर्म पर रिलीज प्रक्रियाओं को सरल बनाता है। निरंतर संस्करण प्रबंधन और विस्तृत परिवर्तन लॉग बनाए रखने के लिए हाथ से काम करने के बिना टीम के लिए आदर्श है।

उपयोग

  • रिलीज़ से पहले स्वचालित वर्जन बढ़ाएं
  • संरचित बदलाव लॉग बनाए रखना
  • रिलीज नोट्स में git diff लिंक जनरेट करना
  • CI/CD पाइपलाइन को सुव्यवस्थित करना
  • प्लेटफॉर्म के बीच संस्करण सुसंगतता सुनिश्चित करना

मुख्य विशेषताएँ

  • पैकेज संस्करण को स्वचालित रूप से बढ़ाएं
  • डिफ़ लिंक के साथ बदलाव दस्तावेज़ प्रविष्टियाँ उत्पन्न करता है
  • वर्तमान संस्करण और परिवर्तन लॉग प्रिंट करता है
  • कई प्लेटफॉर्म का समर्थन करता है
  • pubspec.yaml के साथ एकीकरण

इनके लिए उपयुक्त

  • Flutter का उपयोग करने वाली विकास टीमें
  • अक्सर रिलीज़ वाले प्रोजेक्ट्स
  • CI/CD पर्यावरण
  • रिलीज़ दस्तावेज़ को प्राथमिकता देने वाली टीमें
  • ओपन-सोर्स पैकेज के रखरखावकर्ता

विचार योग्य बातें

  • डिफ लिंक के लिए गिट सेटअप की आवश्यकता है
  • कस्टम संस्करण प्रारूप के लिए हस्तक्षेप की आवश्यकता है
  • अन्य संस्करण उपकरणों के साथ संघर्ष कर सकता है
  • नियंत्रित रिलीज वर्कफ़्लो में सबसे अच्छा उपयोग किया जाता है
  • pubspec.yaml संरचना पर निर्भर करता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

logo

Cider (CI for Dart: Efficient Release)

Cider is a CLI tool for Dart package maintenance. It updates CHANGELOG.md and pubspec.yaml to help automate releases.

Assumptions

Cider expects:

  • a CHANGELOG.md file in the project root
  • changelog format compatible with Keep a Changelog
  • simple Markdown in changelog entries (no HTML or complex formatting)
  • project versions that follow Semantic Versioning 2.0.0

Installation

dart pub global activate cider

Configuration

Configure Cider in pubspec.yaml under cider:

cider:
  link_template:
    tag: https://github.com/example/project/releases/tag/%tag%
    diff: https://github.com/example/project/compare/%from%...%to%
    version: v%version% # default: %version%

Placeholders:

  • %from% - previous version tag
  • %to% - current version tag
  • %tag% - release tag

Project root detection

You can run Cider from any subdirectory. It searches upward for pubspec.yaml.

To override auto-detection:

cider --project-root=/path/to/project version

Changelog commands

These commands modify CHANGELOG.md unless stated otherwise.

Add an entry
cider log <type> <description>
  • <type>: added, changed, deprecated, removed, fixed, security
  • <description>: one Markdown line

Examples:

cider log changed 'Improve parser performance'
cider log added 'Support workspace mode'
cider log fixed 'Null pointer in changelog parser'
Release Unreleased entries
cider release [options]

Options:

  • --date - release date (default: today)

If link_template.diff is configured, Cider generates changelog diff links automatically.

Print changes for a version (read-only)
cider describe [<version>] [options]
  • <version> defaults to Unreleased if omitted

Options:

  • --only-body - omit section header and link footer
List versions
cider list [options]

Options:

  • --include-yanked, -y
  • --include-unreleased, -u

Version commands

These commands operate on version in pubspec.yaml.

Print current version (read-only)
cider version
Set version
cider version <new_version>

<new_version> must be SemVer-compatible.

Examples:

Before Command After
1.2.3+1 cider version 3.2.1 3.2.1
0.2.1-dev cider version 0.0.1-alpha+42 0.0.1-alpha+42
Yank / unyank a release in changelog
cider yank <version>
cider unyank <version>

Yanked versions are marked as [YANKED] in CHANGELOG.md.

Bump version
cider bump <part> [options]

<part> can be:

  • breaking (y for 0.y.z, otherwise x for x.y.z)
  • major
  • minor
  • patch
  • build
  • pre (pre-release)
  • release (remove pre-release suffix)

Options:

  • --keep-build - keep existing build metadata
  • --bump-build - increment build metadata
  • --build=<value> - set build metadata explicitly
  • --pre=<prefix> - set pre-release prefix

Notes:

  • For pre and build, Cider increments the rightmost dot-separated numeric identifier.
  • If no numeric identifier exists, Cider appends .1.
  • Per SemVer, build metadata does not affect version precedence.

Examples:

Before Command After
1.2.1-alpha+42 cider bump breaking 2.0.0
0.2.1-alpha+42 cider bump breaking 0.3.0
0.2.1-alpha+42 cider bump major 1.0.0
0.2.1-alpha+42 cider bump minor 0.3.0
0.2.1-alpha+42 cider bump patch 0.2.1
0.2.1 cider bump patch 0.2.2
0.2.1-alpha+42 cider bump pre 0.2.1-alpha.1
1.2.1-alpha+42 cider bump breaking --keep-build 2.0.0+42
0.2.1-alpha+42 cider bump breaking --bump-build 0.3.0+43
0.2.1-alpha+42 cider bump major --build=2020-02-02 1.0.0+2020-02-02
0.2.1-alpha+42 cider bump minor --pre=alpha --bump-build 0.3.0-alpha+43
0.2.1-alpha+42 cider bump release 0.2.1
0.2.1-alpha+42 cider bump release --keep-build 0.2.1+42

Exit codes

Code Meaning
0 Success
64 Usage error (invalid arguments)
65 Data error (missing/invalid project files)
70 Internal software error (consider opening an issue)

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 9 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट