repub 1.0.0-beta

  • README.md
  • Installing
  • Versions
  • 41

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.

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate repub

2. Use it

The package has the following executables:


$ repub
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 Jun 22, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
8 / 100
Health:
Code health derived from static analysis. [more]
92 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
47 / 100
Overall score:
Weighted score of the above. [more]
41
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.

  • Homepage does not exists.

    We were unable to access https://github.com/thosakwe/repub at the time of the analysis.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 13 errors 139 hints.

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

    line: 156 col: 65
    The function 'deserializeId' has type '(Map<dynamic, dynamic>) → AssetId' that isn't of expected type '(dynamic) → AssetId'. This means its parameter or return type does not match what is expected.

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

    line: 120 col: 15
    The argument type '(Map<dynamic, dynamic>) → Asset' can't be assigned to the parameter type '(dynamic) → FutureOr<Asset>'.

    Similar analysis of the following files failed:

    • lib/src/command/uploader.dart (error)
    • lib/src/io.dart (error)
    • lib/src/solver/solve_report.dart (error)
    • lib/src/source/hosted.dart (error)
    • lib/src/utils.dart (error)
    • 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/progress.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 getting outdated.

    The package was released 65 weeks ago.

  • 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.32.1
args ^0.13.5 0.13.7 1.4.3
async ^1.5.0 1.13.3 2.0.7
barback ^0.15.2 0.15.2+16
collection ^1.8.0 1.14.10
compiler_unsupported ^1.22.0 1.22.0 1.23.0-alpha.0
crypto >=1.0.0 <3.0.0 2.0.5
glob ^1.0.0 1.1.6
http ^0.11.0 0.11.3+16
http_multi_server >=1.0.0 <3.0.0 2.0.5
http_throttle ^1.0.0 1.0.2
json_rpc_2 ^2.0.0 2.0.8
mime ^0.9.0 0.9.6+1
oauth2 ^1.0.0 1.2.1
package_config ^1.0.0 1.0.3
package_resolver ^1.0.0 1.0.3
path ^1.2.0 1.6.1
pool ^1.0.0 1.3.5
pub_semver ^1.3.0 1.4.1
shelf >=0.6.0 <0.7.0 0.6.8 0.7.3+1
shelf_web_socket ^0.2.0 0.2.2 0.2.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.7+1
string_scanner ^1.0.0 1.0.2
watcher ^0.9.2 0.9.7+8
web_socket_channel ^1.0.0 1.0.8
yaml ^2.0.0 2.1.14
Transitive dependencies
charcode 1.1.1
cli_util 0.0.1+2 0.1.3
convert 2.0.1
csslib 0.14.4
dart2js_info 0.2.7+2 0.5.8
html 0.13.3+1
http_parser 3.1.2
isolate 1.1.0 2.0.1
logging 0.11.3+1
matcher 0.12.3
meta 1.1.5
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