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

पैकेज विवरणv11.11.1

pub_release

Dart पैकेज को pub.dev पर रिलीज़ करने के लिए स्वचालित करता है, जिसमें dartfmt चलाना, गिट टैग बनाना, पैकेज के संस्करण संख्या बढ़ाना और पैकेज को pub.dev पर अपलोड करना शामिल है।

macOSWindowsLinux
30-दिन डाउनलोड
970
लाइक
22
Pub अंक
150

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

flutter pub add pub_release

पैकेज अवलोकन

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

pub_release एक Flutter/Dart पैकेज है जो Dart पैकेज को pub.dev पर जारी करने की प्रक्रिया को स्वचालित करता है। यह dartfmt का उपयोग करके कोड को स्वरूपित करने, संस्करण संख्या बढ़ाने, git टैग बनाने और अद्यतन पैकेज को pub.dev पर अपलोड करने के माध्यम से प्रकाशन को सुगम बनाता है। विकासकर्ताओं के लिए डिज़ाइन किया गया है जो नियमित रूप से पैकेज जारी करते हैं, यह हस्तचालित चरणों को कम करता है और जारी करने के कार्यप्रवाह में त्रुटियों को कम करता है। इस उपकरण को macOS, Windows और Linux के लिए समर्थित किया गया है, जिससे यह मुख्य विकास वातावरणों में उपलब्ध है।

उपयोग

  • पैकेज रिलीज़ को स्वचालित करना
  • pub.dev प्रकाशन को सुगम बनाना
  • सुनिश्चित करें कि कोड का फॉर्मेट समान हो
  • संस्करण वृद्धि प्रबंधन
  • हाथ से जारी करने में त्रुटियों को कम करना

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

  • स्वचालित dartfmt निष्पादन
  • संस्करण अपग्रेड करना
  • Git टैगिंग
  • pub.dev पर पुश करें
  • क्रॉस-प्लेटफ़ॉर्म समर्थन

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

  • Dart पैकेज रखरखाव कर्मी
  • CI/CD पाइपलाइन एंटीग्रेशन
  • अक्सर प्रकाशित करने वाले
  • ओपन-सोर्स योगदानकर्ता

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

  • git सेटअप की आवश्यकता है
  • पब डेव प्रमाणपत्र की आवश्यकता है
  • सही संस्करण नियंत्रण रणनीति पर निर्भर करता है
  • जटिल वर्कफ़्लो के लिए कस्टम कॉन्फ़िगरेशन की आवश्यकता हो सकती है

मूल README

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

README

Pub Release is a package that automates publishing dart/flutter packages to pub.dev.

Pub Release also supports the simultaneous release of multiple related packages.

Pub Release performs the following operations:

  • Run pre/post release 'hook' scripts.
  • Formats all code using dartfmt
  • Increments the version no. using semantic versioning after asking what sort of changes have been made.
  • Creates a dart file containing the version no. in src/version/version.g.dart
  • Updates the pubspec.yaml with the new version no.
  • If you are using Git:
    • Generates a Git Tag using the new version no.
    • Generates release notes from commit messages since the last tag.
    • Publish any executables list in pubspec.yaml as assets on github
  • Allows you to edit the release notes.
  • Adds the release notes to CHANGELOG.MD along with the new version no.
  • Publishes the package to pub.dev.

Getting Started

Install Pub Release globally:

dart pub global activate pub_release

Run it from your package root:

pub_release

Read the full documentation to learn how to use it.

Common Workflows

Dry-run a release (no publish):

pub_release --dry-run

Set a specific version and skip prompts:

pub_release --setVersion=1.2.3 --autoAnswer

Run multi-package release in a mono-repo:

pub_release multi

Dry Run

Use --dry-run to validate a release without publishing. During a dry run, pub_release performs the publish step inside a temporary copy of your package to avoid git working tree warnings while still validating the generated version and changelog.

If you need to allow warnings from dart pub publish, pass --ignore-warnings.

Commands

  • pub_release - release a single package (default).
  • pub_release multi - release related packages using tool/pubrelease.multi.yaml.
  • pub_release help - show usage.

Flags

  • --dry-run - validate but do not publish.
  • --ignore-warnings - pass --ignore-warnings to dart pub publish.
  • --[no]-test - enable/disable unit tests (default: on).
  • --test-concurrency=<n> - maximum concurrent test suites (positive integer); overrides the project setting.
  • --line=<n> - formatter line length (default: 80).
  • --[no]-format - enable/disable formatting (default: on).
  • --verbose - enable verbose logging.
  • --git - enable git operations (default: on).
  • --no-multi - disable multi-release even if a multi config exists.
  • --askVersion - prompt for version (default).
  • --setVersion=<x.y.z> - set version directly.
  • --autoAnswer - suppress prompts (requires --setVersion).
  • --tags=<tag,...> - only run tests matching tags.
  • --exclude-tags=<tag,...> - exclude tests by tag.
  • --skip-packages=<name,...> - skip named packages when running the multi command.

Test Concurrency

For projects whose tests share external state, run test suites serially by adding the following to tool/.pubrelease.yaml:

test-concurrency: 1

Override the project setting for a release with:

pub_release --test-concurrency=4

Pub Release passes the selected value to critical_test as --concurrency=<n>. The value must be a positive integer. If neither setting is provided, critical_test's default concurrency is unchanged. For multi-package releases, the selected value applies to every released package. --no-test still skips tests regardless of the concurrency setting.

Multi Release Notes

When using pub_release multi, the first package that generates a changelog entry will have its release notes propagated to the other packages unless they already contain notes for that version.

श्रेणियाँ

निर्भरताएँ

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

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

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

अभी कोई डेटा उपलब्ध नहीं है।