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

पैकेज विवरणv2.16.0

cli_pkg

Dart CLI पैकेज के रिलीज़ के लिए Grinder कार्य।

macOSWindowsLinux
30-दिन डाउनलोड
75.7 हज़ार
लाइक
23
Pub अंक
110

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

flutter pub add cli_pkg

पैकेज अवलोकन

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

cli_pkg एक डार्ट पैकेज है जिसका उपयोग कमांड-लाइन इंटरफ़ेस (CLI) पैकेज के रिलीज प्रक्रिया को सुगम बनाने के लिए किया जाता है। यह आम प्रकाशन कार्यवाहियों, जैसे संस्करण प्रबंधन, परीक्षण और रिलीज नोट्स बनाने को स्वचालित करने के लिए ग्राइंडर कार्य प्रदान करता है। sass-lang.com द्वारा बनाया गया और गिटहब पर स्थापित, यह macOS, Windows और Linux के लिए समर्थन प्रदान करता है, जो क्रॉस-प्लेटफ़ॉर्म CLI टूल बनाए रखने वाले डेवलपर्स के लिए आदर्श है। यह पैकेज फ्लटर और डार्ट इकोसिस्टम के साथ बिना किसी बाधा के एकीकृत होता है, जिससे पैकेज रिलीज के दौरान हाथ से काम करने की आवश्यकता कम हो जाती है।

उपयोग

  • CLI पैकेज रिलीज़ को स्वचालित करना
  • CLI प्रोजेक्ट्स में संस्करण प्रबंधन करना
  • रिलीज़ नोट्स जनरेट करना
  • क्रॉस-प्लेटफ़ॉर्म CLI विकास
  • CI/CD पाइपलाइन को सुव्यवस्थित करना

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

  • पूर्वनिर्धारित Grinder कार्य
  • संस्करण बम्प स्वचालन
  • रिलीज नोट जनरेशन
  • क्रॉस-प्लेटफ़ॉर्म समर्थन
  • Dart pub के साथ एकीकरण

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

  • Dart CLI टूल रखरखाव करने वाले
  • ओपन-सोर्स पैकेज प्रकाशक
  • CI/CD पाइपलाइन इंटीग्रेटर्स
  • Grinder का उपयोग करने वाले विकासकर्ता
  • अक्सर रिलीज़ का प्रबंधन करने वाली टीमें

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

  • ग्राइंडर सेटअप की आवश्यकता है
  • CLI पैकेज कार्यप्रवाह तक सीमित
  • रिलीज़ कार्यप्रवाह के लिए GitHub पर निर्भर
  • गैर-CLI पैकेज के लिए उपयुक्त नहीं
  • कस्टम रिलीज लॉजिक के लिए हाथ से कॉन्फ़िगरेशन की आवश्यकता होती है

मूल README

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

Dart CLI Packager

This package provides a set of Grinder tasks that make it easy to release a Dart command-line application on many different release channels, to Dart users and non-Dart users alike. It also integrates with Travis CI to make it easy to automatically deploy packages.

To use this package, import package:cli_pkg/cli_pkg.dart and call pkg.addAllTasks() before calling grind():

import 'package:cli_pkg/cli_pkg.dart' as pkg;
import 'package:grinder/grinder.dart';

void main(List<String> args) {
  pkg.addAllTasks();
  grind(args);
}

The following sets of tasks are provided, each of which can also be enabled individually:

It's strongly recommended that this package be imported with the prefix pkg.

Configuration

This package is highly configurable, using ConfigVariable fields defined at the top level of the library. By default, it infers as much configuration as possible from the package's pubspec, but almost all properties can be overridden in the main() method:

import 'package:cli_pkg/cli_pkg.dart' as pkg;
import 'package:grinder/grinder.dart';

void main(List<String> args) {
  pkg.name.value = "bot-name";
  pkg.humanName.value = "My App";

  pkg.addAllTasks();
  grind(args);
}

ConfigVariables whose values are expensive to compute or that might fail under some circumstances can also be set to callback functions, which are called lazily when the variables are used by the Grinder tasks:

import 'package:cli_pkg/cli_pkg.dart' as pkg;
import 'package:grinder/grinder.dart';

void main(List<String> args) {
  pkg.githubReleaseNotes.fn = () => File.read("RELNOTES.md");

  pkg.addAllTasks();
  grind(args);
}

Each task describes exactly which configuration variables it uses. Configuration that just applies to one set of tasks is always prefixed with a corresponding name. For example, pkg.jsFlags applies to JavaScript compilation.

श्रेणियाँ

निर्भरताएँ

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

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

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