peanut 3.2.0 copy "peanut: ^3.2.0" to clipboard
peanut: ^3.2.0 copied to clipboard

outdated

Update your GitHub gh-pages branch with the compiled output of your Dart web app. Supports 'pub build' and the new 'pub run build_runner'.

Pub Package Build Status

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.

Options #

$ peanut --help
Usage: peanut [<args>]

Arguments:
-d, --directories                (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 <directories>")
    --[no-]source-branch-info    Includes the name of the source branch and SHA
                                 in the commit message
                                 (defaults to on)

    --post-build-dart-script     Optional Dart script to run after all builds
                                 have completed, but before files are committed
                                 to the repository.

    --builder-options            Builder options YAML or a path to a file
                                 containing builder options YAML.
                                 See the README for details.

-h, --help                       Prints usage information.
    --version                    Print the current version.

Configuration file #

You can also configure peanut with a configuration file. Convenient if you have one-off settings you'd rather not time you deploy.

The peanut.yaml from this repository:

# Configuration for https://pub.dartlang.org/packages/peanut
directories:
- example

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.

97
likes
0
pub points
70%
popularity

Publisher

verified publisherj832.com

Update your GitHub gh-pages branch with the compiled output of your Dart web app. Supports 'pub build' and the new 'pub run build_runner'.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, build_cli_annotations, checked_yaml, git, glob, io, json_annotation, meta, path, pub_semver, yaml

More

Packages that depend on peanut