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

Install

> pub global activate peanut

Run

~/my_dart_proj/ > peanut

Git tricks

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")
-m, --message      (defaults to "Built <directory>")
-h, --help

Libraries

peanut

The peanut library.