Pakete, Repositories und App-Kategorien suchen

Paketdetailsv2.16.0

cli_pkg

Grinder-Aufgaben zum Veröffentlichen von Dart-CLI-Paketen.

macOSWindowsLinux
30-Tage-Downloads
75.700
Likes
23
Pub-Punkte
110

Paket installieren

flutter pub add cli_pkg

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

cli_pkg ist ein Dart-Paket, das die Veröffentlichung von Befehlszeilen-Schnittstellen (CLI) Paketen vereinfachen soll. Es bietet Grinder-Aufgaben, die häufige Veröffentlichungsworkflows automatisieren, wie Versionsverwaltung, Testen und Erstellung von Release-Notes. Entwickelt von sass-lang.com und auf GitHub gehostet, unterstützt es macOS, Windows und Linux und ist daher ideal für Entwickler, die plattformübergreifende CLI-Tools pflegen. Das Paket integriert sich nahtlos in Flutter- und Dart-Ecosystems und verringert manuelle Schritte bei der Paketveröffentlichung.

Anwendungsfälle

  • Automatisierung von CLI-Paketveröffentlichungen
  • Versionsverwaltung in CLI-Projekten verwalten
  • Erstellungsnotizen für die Freigabe
  • Plattformübergreifende CLI-Entwicklung
  • CI/CD-Pipelines optimieren

Hauptmerkmale

  • Vordefinierte Grinder-Aufgaben
  • Versionsbump-Automatisierung
  • Erstellungsnotizen
  • Plattformübergreifende Unterstützung
  • Integration mit Dart pub

Geeignet für

  • Dart CLI-Tool-Wartungsteams
  • Open-Source-Paketverleger
  • CI/CD-Pipeline-Integratoren
  • Entwickler, die Grinder verwenden
  • Teams, die häufige Releases verwalten

Hinweise

  • Benötigt Grinder-Einrichtung
  • Beschränkt auf CLI-Paketworkflows
  • Abhängig von GitHub für Release-Workflows
  • Nicht geeignet für nicht-CLI-Pakete
  • Benötigt manuelle Konfiguration für benutzerdefinierte Release-Logik

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 25 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden