How to deploy flutter web site on GitHub using peanut

This Article is posted by nikhilchaudhary12155 at 10/13/2019 4:59:45 AM

**What is peanut?**font-size: 1rem;](Peanut is a dart package to use for deploy flutter web site directly to Github Repo. color: rgb(0, 0, 0); font-family: Roboto, sans-serif;](Do you ever want to `background: rgba(27, 31, 35, 0.05); border: 1px solid rgb(238, 238, 238); font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; padding: 0.2em 0.4em; margin: 0px; border-radius: 3px; color: rgb(0, 0, 0);](pub run build_runner build`color: rgb(0, 0, 0); font-family: Roboto, sans-serif;]( into another branch? This is your ticket. For Example: [https://flutter.github.io/samples/font-size: 1rem;](https://flutter.github.io/samples/) ## hash-headerid="installmargin-top: 24px; margin-bottom: 16px; font-weight: 600; line-height: 1.25; padding-bottom: 0.3em; font-size: 1.5em; border-bottom: 1px solid rgb(234, 236, 239); color: rgb(0, 0, 0); font-family: Roboto, sans-serif;](Install [https://pub.dev/packages/peanut#installhash-linkcolor: rgb(204, 204, 204); cursor: pointer; font-weight: 500; opacity: 0; transition: opacity 0.5s ease-in-out 0.1s;](#)] Arguments: -d, --directories The directories that should be built. (defaults to "web") -b, --branch The git branch where the built content should be committed. (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 ") --[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. --[no-]verbose Print more details when running. --dry-run Verifies configuration and prints commands that would be executed, but does not do any work. -h, --help Prints usage information. --version Print the current version. ```## hash-headerid="configuration-filemargin-top: 24px; margin-bottom: 16px; font-weight: 600; line-height: 1.25; padding-bottom: 0.3em; font-size: 1.5em; border-bottom: 1px solid rgb(234, 236, 239); color: rgb(0, 0, 0); font-family: Roboto, sans-serif;](Configuration file [https://pub.dev/packages/peanut#configuration-filehash-linkcolor: rgb(204, 204, 204); cursor: pointer; font-weight: 500; opacity: 0; transition: opacity 0.5s ease-in-out 0.1s;](#)margin-bottom: 16px; color: rgb(0, 0, 0); font-family: Roboto, sans-serif;](You can also configure `background: rgba(27, 31, 35, 0.05); border: 1px solid rgb(238, 238, 238); font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; padding: 0.2em 0.4em; margin: 0px; border-radius: 3px;](peanut` with a configuration file. Convenient if you have one-off settings you'd rather not time you deploy. margin-bottom: 16px; color: rgb(0, 0, 0); font-family: Roboto, sans-serif;](The `background: rgba(27, 31, 35, 0.05); border: 1px solid rgb(238, 238, 238); font-family: "Source Code Pro", Menlo, monospace; font-size: 13.6px; padding: 0.2em 0.4em; margin: 0px; border-radius: 3px;](peanut.yaml` from this repository:

Tags: flutter flutterweb flutterisfuture dart flutterforweb peanut



0 Comments
Login to comment.
Recent Comments

Be the first to Comment. You can ask a Query or Share your toughts or Just say thanks.




© 2018 - Fluttercentral | Email to me - Seven.srikanth@gmail.com