Do you ever want to
pub run build_runner build into another branch? This is your ticket.
$ pub global activate peanut
$ 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.
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 --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.
BREAKING Now only works with the latest
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.
/binso it's not activated during
pub global activate.
pub from the SDK invoking
peanut. Also fixes the case where
not in the user's PATH.
Send all output to
Improve exit codes and error messages on failure.
**.ng_placeholderto the set of files to exclude.
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.
Improve sub-process management.
Print error/warnings in red – where supported.
Initial support for
Updated Dart SDK lower-bound to
Iterable.whereType<T> – introduced in this release.
pub buildto run in debug mode.
runInShellto make things work on Windows.
Add this to your package's pubspec.yaml file:
dependencies: peanut: "^2.0.0"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
|2.0.0||Apr 16, 2018|
|1.1.6||Apr 4, 2018|
|1.1.5||Apr 4, 2018|
|1.1.4||Mar 14, 2018|
|1.1.3||Mar 10, 2018|
|1.1.2||Mar 9, 2018|
|1.1.1||Mar 9, 2018|
|1.1.0||Mar 6, 2018|
|1.0.0||Oct 20, 2017|
|0.1.0||Oct 26, 2016|
We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
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]
Detected platforms: Flutter, web, other
No platform restriction found in libraries.
Maintain an example.
None of the files in your
example/directory matches a known example patterns. Common file name patterns include:
example.dartor you could also use
|Dart SDK||>=2.0.0-dev.22 <2.0.0|