re:pub

A souped-up Pub client with:

  • x Support for auth outside of Google OAuth2
  • x Custom hosted URL's without an environment variable
  • x 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.

Libraries