repub 1.0.0-beta copy "repub: ^1.0.0-beta" to clipboard
repub: ^1.0.0-beta copied to clipboard

Dart 1 only

A pub fork with push state, basic auth, and more.

re:pub #

A souped-up Pub client with:

  • Support for auth outside of Google OAuth2
  • Custom hosted URL's without an environment variable
  • Push state in repub serve

Installation #

$ pub global activate repub

Usage #

The way to use re:pub is to create a repubspec.yaml file in your project root.

Custom Hosted URL #

Create a repubspec.yaml:

hosted_url: https://pub.example.com

External Auth #

Create a repubspec.yaml:

auth:
  type: basic
  username: <username>
  password: <password>

Using Push State #

Create a repubspec.yaml:

push_state:
  base: index.html # Relative to web/ dir

Then, you can run pub serve like normal, and have push state routing work, out-of-the-box.