cli_pkg: ^1.1.0 copied to clipboard
Grinder tasks for releasing Dart CLI packages.
- The main function generated by this package will return a
Promiseif the corresponding Dart main function returns a
- Initial stable release.
Changes since 1.0.0-beta.13 #
- Don't fold link reference declarations like paragraphs when generating GitHub release notes.
ConfigVariable.defaultValueproperty to get the default value for variables that are overridden by functions.
Fix a typo in error messages when files need to be regenerated for tests.
- Deploy Chocolatey packages as source files rather than a zip file, to avoid
validation errors around the need for a
Properly load the Dart SDK license when it's in the directory above the SDK, as in a Homebrew installation.
Use the latest version of the
Breaking change: All configurable variables are now defined as
ConfigVariableobjects rather than top-level fields. These objects make it possible to configure variables with callback functions and to freeze those variables once execution has begun.
Properly handle git repositories that use branch names other than
- Improve error messages if release notes can't be extracted from
- Fixes a bug when reading a
CHANGELOG.mdwith Windows-style line endings.
- Breaking change: Dart snapshots are now named based on the executable name
(specified in the pubspec or in
pkg.executables) instead of the name of the Dart file in
Breaking change: Chocolatey now uses the
chocoCLI to build and deploy packages, rather than re-implementing its logic in Dart. In particular:
pkg-chocolatey-buildtask has been renamed to
pkg-chocolatey-packto match the CLI's naming scheme.
pkg-chocolatey-deploytasks must be run in an environment with the
pkg-chocolateycommand that builds an un-archived Chocolatey package directory.
Rather than releasing binary snapshots on Chocolatey, compile the source code to compile native executables on users' machines.
chocolateyFilesgetter that returns the files that should be included in the Chocolatey package.
Depend on the correct version of pre-release Dart SDKs from Chocolatey packages.
- Use the correct URL when fetching GitHub release metadata.
pkg.npmDistTaggetter that controls the distribution tag for an npm release.
pkg.homebrewCreateVersionedFormulagetter that controls whether the Homebrew release creates a new formula or updates an existing one.
pub publish --forceso it doesn't hang forever.
Properly parse GitHub repositories from HTTP URLs ending in
Drop support for Mac OS ia32 packages, since Dart 2.7 doesn't support them anymore.
- Add a
cli_pkg/testing.dartlibrary to make it easier for users to efficiently and reliably test their executables.
pkg-standalone-devtask for building a script that can be invoked for testing.
Fix a bug where the version variable wouldn't be set for certain executables.
- Initial beta release.