Description
peanut is a command-line tool that publishes a Dart or Flutter web build to GitHub Pages. You build the app, for example with flutter build web or a build_runner build, and peanut builds the project into a temporary directory and then updates the local gh-pages branch with the output. This replaces the manual steps of building and copying files into a gh-pages branch, and makes the deploy repeatable. Settings can be given on the command line, and any you want to keep can go in a peanut.yaml configuration file. You can also name a Dart script to run after the build and before the changes are committed. The script receives the path of the temporary build output and a map of the source directories that were built, so it can adjust the files before they are published. The README includes two examples: a sample Dart app that uses no custom configuration, and a project that sets builder options and uses an example folder as its source. The tool is aimed at Dart and Flutter developers who host web builds on GitHub Pages and want a simple deploy step.…
Highlights
- Publishes web builds to the gh-pages branch
- Works with flutter build web and build_runner
- peanut.yaml configuration file
- Optional Dart script to change output before commit
- Examples for plain and customised projects
Ratings & Reviews
No ratings yet
Be the first to rate Peanut.dart.
People also visit
Peanut.dart FAQ
What does peanut do?
It builds a Dart or Flutter web app and publishes the output to the gh-pages branch of your repository for GitHub Pages.
Which build commands does it work with?
The README mentions flutter build web and dart pub run build_runner build.
Can I keep my settings?
Yes. A peanut.yaml configuration file stores settings you would otherwise type on every deploy.
Can I change the output before it is committed?
Yes. You can name a Dart script that runs after the build and before the changes are committed.
Are there examples?
Yes. The README links to a sample Dart app and to pubviz, which uses a custom peanut.yaml.
What are the best Peanut.dart alternatives?
Popular alternatives to Peanut.dart include GLPub.dev, Github Pages Deploy Action and PR Preview Action. See all Peanut.dart alternatives





