peanut
6.0.2, released 3 months ago by kevmoo.com
Update your GitHub gh-pages branch with compiled Dart web app output.
What it does
Peanut builds your Dart or Flutter web app and automatically commits the compiled output to your local gh-pages branch. It handles running `flutter build web` or `build_runner` and supports custom build configurations, post-build scripts, and automatic version info injection.
AI-written summary of version 6.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to host a Dart or Flutter web app on GitHub Pages
- You want an automated way to build and push web outputs to the gh-pages branch
Skip it when
- You are deploying web apps to hosting providers other than GitHub Pages via git branches
Strengths
- Simplifies GitHub Pages deployment for Dart and Flutter web
- Supports custom configuration via peanut.yaml
- Allows running custom post-build Dart scripts before committing
Weaknesses
- Limited specifically to updating a git branch with web build output
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 13
Activate globally using `dart pub global activate peanut` or `flutter pub global activate peanut`, then run `peanut` in your project root.
dart pub global activate peanut
peanutAlternatives
Packages that do the same job and could replace peanut.
- sass_builder
Transpile Sass files to CSS using Dart's build system.
80Compare - flutter_olm
Builds the native Olm library for Android and iOS to be used via dart:ffi.
40Compare
Works with
Packages commonly used together with peanut: ones it builds on, ones built on it, and its own family.
- yamlpeanut depends on itA Dart library for parsing YAML documents into Dart data structures.
- pub_semverpeanut depends on itVersions and version constraints implementing pub's versioning policy.
- stack_tracepeanut depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- globpeanut depends on itA file and directory globbing library that supports Bash-style path matching and listing.
- iopeanut depends on itUtilities for the Dart VM Runtime including ANSI colors, file copying, and exit code values.
- json_annotationpeanut depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- argspeanut depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- checked_yamlpeanut depends on itProvides checkedYamlDecode to give detailed errors when decoding YAML with json_serializable.