webdev 0.2.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 66

Build Status

A CLI for Dart web development.

Note: Under heavy development.

See the Dart 2 Web Migration Guide for more information.

Installation

$ pub global activate webdev

Usage

webdev provides two commands: serve and build.

webdev serve

$ webdev help serve
Run a local web development server and a file system watcher that re-builds on changes.

Usage: webdev serve [arguments] [<directory>[:<port>]]...
-h, --help                        Print this usage information.
-r, --[no-]release                Build with release mode defaults for builders.
-o, --output                      A directory to write the result of a build to. Or a mapping from a top-level directory in the package to the directory to write a filtered build output to. For example "web:deploy".
                                  A value of "NONE" indicates that no "--output" value should be passed to `build_runner`.
                                  (defaults to "NONE")

-v, --verbose                     Enables verbose logging.
    --[no-]build-web-compilers    If a dependency on `build_web_compilers` is required to run.
                                  (defaults to on)

    --hostname                    Specify the hostname to serve on
                                  (defaults to "localhost")

    --log-requests                Enables logging for each request to the server.

Run "webdev help" to see global options.

webdev build

$ webdev help build
Run builders to build a package.

Usage: webdev build [arguments]
-h, --help                        Print this usage information.
-r, --[no-]release                Build with release mode defaults for builders.
                                  (defaults to on)

-o, --output                      A directory to write the result of a build to. Or a mapping from a top-level directory in the package to the directory to write a filtered build output to. For example "web:deploy".
                                  A value of "NONE" indicates that no "--output" value should be passed to `build_runner`.
                                  (defaults to "web:build")

-v, --verbose                     Enables verbose logging.
    --[no-]build-web-compilers    If a dependency on `build_web_compilers` is required to run.
                                  (defaults to on)

Run "webdev help" to see global options.

0.2.2

  • Add default value for --output to be build:web for the build command and NONE for the serve command.
  • Update to use lower-case constants from Dart ^2.0.0-dev.54.

0.2.1

  • Support package:build_web_compilers v0.4.0.
  • Always pass the argument --fail-on-severe to the build command.
  • Exit with an error if unsupported arguments are passed to build command.

0.2.0

  • Pass the arguments supporting directory:port for the serve command.
  • Add the requirement for build_web_compilers to build command.
  • Renamed --require-build-web-compilers flag to --build-web-compilers.

0.1.4

  • Require and use features from build_runner 0.8.2.
    • Added a --[no]-release flag.
  • Require build_web_compliers 0.3.6 when running serve.
    • Unless the --no-require-build-web-compilers flag is provided.

0.1.3+1

  • Support running pub when it's not in the environment path.

0.1.3

  • Now runs on Windows.

0.1.2

  • Remove check for build_web_compilers. Allows general support for build_runner from tools.
  • Use pub deps to validate target directory.

0.1.1

  • Checks for a dependency on build_web_compilers.
  • Gracefully handle exceptions.

0.1.0

  • Initial release. Supports basic invocation of build and serve with build_runner: ^0.8.0.

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate webdev

2. Use it

The package has the following executables:


$ webdev
Version Uploaded Documentation Archive
0.2.2 Jun 1, 2018 Go to the documentation of webdev 0.2.2 Download webdev 0.2.2 archive
0.2.1 May 7, 2018 Go to the documentation of webdev 0.2.1 Download webdev 0.2.1 archive
0.2.0 Apr 11, 2018 Go to the documentation of webdev 0.2.0 Download webdev 0.2.0 archive
0.1.4 Apr 10, 2018 Go to the documentation of webdev 0.1.4 Download webdev 0.1.4 archive
0.1.3+1 Apr 3, 2018 Go to the documentation of webdev 0.1.3+1 Download webdev 0.1.3+1 archive
0.1.3 Apr 3, 2018 Go to the documentation of webdev 0.1.3 Download webdev 0.1.3 archive
0.1.2 Mar 28, 2018 Go to the documentation of webdev 0.1.2 Download webdev 0.1.2 archive
0.1.1 Mar 22, 2018 Go to the documentation of webdev 0.1.1 Download webdev 0.1.1 archive
0.1.0 Mar 20, 2018 Go to the documentation of webdev 0.1.0 Download webdev 0.1.0 archive

Analysis

We analyzed this package on Jun 19, 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]
31 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
66
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Suggestions

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use webdev.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.54.0 <2.0.0
args ^1.2.0 1.4.3
io ^0.3.2+1 0.3.2+1
meta ^1.1.2 1.1.5
path ^1.5.1 1.6.1
pub_semver ^1.3.2 1.4.1
stack_trace ^1.9.2 1.9.2
yaml ^2.1.13 2.1.14
Transitive dependencies
charcode 1.1.1
collection 1.14.10
source_span 1.4.0
string_scanner 1.0.2
Dev dependencies
test ^0.12.0
test_descriptor ^1.0.3
test_process ^1.0.1