gh_pages 0.1.1 gh_pages: ^0.1.1 copied to clipboard
Deploy files to gh-pages branch for Github Pages. Run from CLI or import into your project.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate gh_pages
Use it
The package has the following executables:
$ gh_pages
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add gh_pages
With Flutter:
$ flutter pub add gh_pages
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
gh_pages: ^0.1.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:gh_pages/gh_pages.dart';