peanut 2.0.2

  • Installing
  • Versions
  • 0

Do you ever want to pub run build_runner build into another branch? This is your ticket.

Install #

$ pub global activate peanut

Run #

$ cd ~/my_dart_proj/
$ peanut

This will build your project into a temporary directory, and then it will update the local gh-pages branch with its contents.

Git tricks #

The easiest way to push your gh-pages branch to github (without switching from your working branch) is:

$ git push origin --set-upstream gh-pages

To create (or update) your local gh-pages branch to match what's on the server.

$ git update-ref refs/heads/gh-pages origin/gh-pages

This is also useful if you want to undo a peanut run.

Options #

$ peanut --help

-d, --directory       (defaults to "web")
-b, --branch          (defaults to "gh-pages")
-c, --build-config    The configuration to use when running `build_runner`.
    --[no-]release    (defaults to on)
-m, --message         (defaults to "Built <directory>")
-h, --help            Prints usage information.

2.0.2 #

  • Require Dart >=2.0.0-dev.56.

  • Other updates to support running on Dart 2.

2.0.1 #

  • Support the latest version of package:build_web_compilers.

2.0.0 #

  • BREAKING Now only works with the latest package:build_runner and friends.

  • Removed manual file management that likely caused problems on Windows.

  • The public library has been removed. This package is meant to be an executable only.

1.1.6 #

  • Moved non-executable file out of /bin so it's not activated during pub global activate.

1.1.5 #

  • Run pub from the SDK invoking peanut. Also fixes the case where pub is not in the user's PATH.

  • Send all output to stdout.

  • Improve exit codes and error messages on failure.

1.1.4 #

  • Added **.dart.js.deps, **.dart.js.tar.gz, **.ng_placeholder to the set of files to exclude.

1.1.3 #

  • Only warn if the directory does not exist. Build could still work.

  • Update dependency on pkg:git. Allows running peanut in a subdirectory of a Git repository.

1.1.2 #

  • Support the latest pkg:git.

1.1.1 #

  • Improve sub-process management.

  • Print error/warnings in red – where supported.

1.1.0 #

  • Initial support for build_runner via --build_tool option.

  • Updated Dart SDK lower-bound to 2.0.0-dev.22. Using Iterable.whereType<T> – introduced in this release.

1.0.0 #

  • Set exit code correctly on errors.

0.1.0 #

  • Tweak some things.
  • Update readme.

0.0.2 #

  • Add mode options, to allow pub build to run in debug mode.

0.0.1+2 #

  • Run pub with runInShell to make things work on Windows.

0.0.1+1 #

  • Added instructions to

0.0.1 #

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate peanut

2. Use it

The package has the following executables:

$ peanut
Version Uploaded Documentation Archive
3.2.1 May 22, 2019 Go to the documentation of peanut 3.2.1 Download peanut 3.2.1 archive
3.2.0 May 6, 2019 Go to the documentation of peanut 3.2.0 Download peanut 3.2.0 archive
3.1.1 May 3, 2019 Go to the documentation of peanut 3.1.1 Download peanut 3.1.1 archive
3.1.0 May 1, 2019 Go to the documentation of peanut 3.1.0 Download peanut 3.1.0 archive
3.0.3 Apr 25, 2019 Go to the documentation of peanut 3.0.3 Download peanut 3.0.3 archive
3.0.2 Apr 24, 2019 Go to the documentation of peanut 3.0.2 Download peanut 3.0.2 archive
3.0.1 Apr 23, 2019 Go to the documentation of peanut 3.0.1 Download peanut 3.0.1 archive
3.0.0 Apr 23, 2019 Go to the documentation of peanut 3.0.0 Download peanut 3.0.0 archive
2.0.8 Dec 11, 2018 Go to the documentation of peanut 2.0.8 Download peanut 2.0.8 archive
2.0.7 Sep 27, 2018 Go to the documentation of peanut 2.0.7 Download peanut 2.0.7 archive

All 30 versions...

Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

Dependencies were not resolved.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.56 <2.0.0