repub 1.0.0-beta

  • README.md
  • Installing
  • Versions
  • 46

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.

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  repub: "^1.0.0-beta"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

Version Uploaded Documentation Archive
1.0.0-beta Mar 20, 2017 Go to the documentation of repub 1.0.0-beta Download repub 1.0.0-beta archive

Analysis

We analyzed this package on Apr 9, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.46.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
8 / 100
Health:
Code health derived from static analysis. [more]
94 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70 / 100
Overall score:
Weighted score of the above. [more]
46
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 4 errors 9 warnings 125 hints.

    Strong-mode analysis of lib/src/io.dart failed with the following error:

    line: 700 col: 10
    The return type 'Future<Future<PubProcessResult>>' isn't a 'Future<PubProcessResult>', as defined by the method 'runProcess'.

    Strong-mode analysis of lib/src/utils.dart failed with the following error:

    line: 540 col: 49
    The getter 'first' isn't defined for the class 'Object'.

    Similar analysis of the following files failed:

    • lib/src/asset/dart/serialize/aggregate_transform.dart (warning)
    • lib/src/asset/dart/serialize/transform.dart (warning)
    • lib/src/command/uploader.dart (warning)
    • lib/src/solver/solve_report.dart (warning)
    • lib/src/source/hosted.dart (warning)
    • lib/src/asset/dart/serialize.dart (hint)
    • lib/src/asset/dart/serialize/exception.dart (hint)
    • lib/src/asset/dart/serialize/get_input_transform.dart (hint)
    • lib/src/asset/dart/serialize/transformer.dart (hint)
    • lib/src/asset/dart/transformer_isolate.dart (hint)
    • lib/src/barback.dart (hint)
    • lib/src/barback/asset_environment.dart (hint)
    • lib/src/barback/barback_server.dart (hint)
    • lib/src/barback/base_server.dart (hint)
    • lib/src/barback/dart2js_transformer.dart (hint)
    • lib/src/barback/dart_forwarding_transformer.dart (hint)
    • lib/src/barback/dependency_computer.dart (hint)
    • lib/src/barback/excluding_aggregate_transformer.dart (hint)
    • lib/src/barback/excluding_transformer.dart (hint)
    • lib/src/barback/foreign_transformer.dart (hint)
    • lib/src/barback/load_all_transformers.dart (hint)
    • lib/src/barback/pub_package_provider.dart (hint)
    • lib/src/barback/transformer_id.dart (hint)
    • lib/src/barback/transformer_isolate.dart (hint)
    • lib/src/barback/transformer_loader.dart (hint)
    • lib/src/command/barback.dart (hint)
    • lib/src/command/build.dart (hint)
    • lib/src/command/cache_list.dart (hint)
    • lib/src/command/global_run.dart (hint)
    • lib/src/command/run.dart (hint)
    • lib/src/command/serve.dart (hint)
    • lib/src/dart.dart (hint)
    • lib/src/entrypoint.dart (hint)
    • lib/src/error_group.dart (hint)
    • lib/src/executable.dart (hint)
    • lib/src/global_packages.dart (hint)
    • lib/src/http.dart (hint)
    • lib/src/log.dart (hint)
    • lib/src/package.dart (hint)
    • lib/src/package_graph.dart (hint)
    • lib/src/repubspec.dart (hint)
    • lib/src/solver/version_solver.dart (hint)
    • lib/src/validator/strict_dependencies.dart (hint)
    • lib/src/validator/utf8_readme.dart (hint)
  • Package is pre-release.

    Pre-release versions should be used with caution, their API may change in breaking ways.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use repub.dart.

  • Use analysis_options.yaml.

    Rename old .analysis_options file to analysis_options.yaml.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.11.0 <2.0.0
analyzer >=0.25.0 <0.30.0 0.29.11 0.31.1
args ^0.13.5 0.13.7 1.4.1
async ^1.5.0 1.13.3 2.0.6
barback ^0.15.2 0.15.2+15
collection ^1.8.0 1.14.9
compiler_unsupported ^1.22.0 1.22.0 1.23.0-alpha.0
crypto >=1.0.0 <3.0.0 2.0.2+1
glob ^1.0.0 1.1.5
http ^0.11.0 0.11.3+16
http_multi_server >=1.0.0 <3.0.0 2.0.4
http_throttle ^1.0.0 1.0.1
json_rpc_2 ^2.0.0 2.0.7
mime ^0.9.0 0.9.6
oauth2 ^1.0.0 1.2.0
package_config ^1.0.0 1.0.3
package_resolver ^1.0.0 1.0.2
path ^1.2.0 1.5.1
pool ^1.0.0 1.3.4
pub_semver ^1.3.0 1.3.5
shelf >=0.6.0 <0.7.0 0.6.8 0.7.2
shelf_web_socket ^0.2.0 0.2.2
source_span ^1.0.0 1.4.0
stack_trace ^1.0.0 1.9.2
stream_channel ^1.4.0 1.6.4
string_scanner ^1.0.0 1.0.2
watcher ^0.9.2 0.9.7+7
web_socket_channel ^1.0.0 1.0.7
yaml ^2.0.0 2.1.13
Transitive dependencies
charcode 1.1.1
cli_util 0.0.1+2 0.1.2+1
convert 2.0.1
csslib 0.14.1
dart2js_info 0.2.7+2 0.5.5+2
html 0.13.3
http_parser 3.1.1
isolate 1.1.0 2.0.0
logging 0.11.3+1
matcher 0.12.1+4
meta 1.1.2
plugin 0.2.0+2
quiver 0.22.0 0.29.0+1
typed_data 1.1.5
utf 0.9.0+4
when 0.2.0
which 0.1.3
Dev dependencies
scheduled_test ^0.12.0
test ^0.12.3+3