peanut 2.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 50

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.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 README.md.

0.0.1

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  peanut: "^2.0.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

Version Uploaded Documentation Archive
2.0.0 Apr 16, 2018 Go to the documentation of peanut 2.0.0 Download peanut 2.0.0 archive
1.1.6 Apr 4, 2018 Go to the documentation of peanut 1.1.6 Download peanut 1.1.6 archive
1.1.5 Apr 4, 2018 Go to the documentation of peanut 1.1.5 Download peanut 1.1.5 archive
1.1.4 Mar 14, 2018 Go to the documentation of peanut 1.1.4 Download peanut 1.1.4 archive
1.1.3 Mar 10, 2018 Go to the documentation of peanut 1.1.3 Download peanut 1.1.3 archive
1.1.2 Mar 9, 2018 Go to the documentation of peanut 1.1.2 Download peanut 1.1.2 archive
1.1.1 Mar 9, 2018 Go to the documentation of peanut 1.1.1 Download peanut 1.1.1 archive
1.1.0 Mar 6, 2018 Go to the documentation of peanut 1.1.0 Download peanut 1.1.0 archive
1.0.0 Oct 20, 2017 Go to the documentation of peanut 1.0.0 Download peanut 1.0.0 archive
0.1.0 Oct 26, 2016 Go to the documentation of peanut 0.1.0 Download peanut 0.1.0 archive

All 14 versions...

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
50
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Suggestions

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use peanut.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.22 <2.0.0
args >=0.13.0 <2.0.0 1.4.2
build_cli_annotations ^0.1.0 0.1.2
git ^0.5.1 0.5.1
glob ^1.1.5 1.1.5
io ^0.3.2+1 0.3.2+1
path ^1.3.4 1.5.1
webdev 0.2.0 0.2.0
Transitive dependencies
async 2.0.6
charcode 1.1.1
collection 1.14.9
meta 1.1.2
pub_semver 1.3.7
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
yaml 2.1.13
Dev dependencies
build_cli ^0.1.2
build_runner ^0.8.2
build_web_compilers ^0.3.6
test ^0.12.0
test_process ^1.0.1