webdev 1.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 82

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.
    --live-reload                 Automatically refreshes the page after each build.
                                  Can't be used together with --hot-reload.

    --hot-reload                  Automatically reloads changed modules after each build.
                                  See https://github.com/dart-lang/build/blob/master/docs/hot_module_reloading.md for more info.
                                  Can't be used together with --live-reload.

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.

1.0.0

  • Support package:build_runner v1.0.0.
  • Add --version to CLI.

0.2.5

  • Added support for the --hot-reload flag, if on build_runner >=0.10.2.

0.2.4+1

  • Print Creating build script on startup so the user is aware of what the process is doing.

0.2.4

  • Added support for the --live-reload flag, if on build_runner >=0.10.1.

0.2.3+2

  • Support latest package:build_runner.

0.2.3+1

  • Support Dart 2 stable.

0.2.3

  • Update required Dart SDK and package:build_runner to support latest versions.

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
1.0.0 Sep 27, 2018 Go to the documentation of webdev 1.0.0 Download webdev 1.0.0 archive
0.2.4+1 Aug 28, 2018 Go to the documentation of webdev 0.2.4+1 Download webdev 0.2.4+1 archive
0.2.4 Aug 8, 2018 Go to the documentation of webdev 0.2.4 Download webdev 0.2.4 archive
0.2.3+2 Aug 1, 2018 Go to the documentation of webdev 0.2.3+2 Download webdev 0.2.3+2 archive
0.2.3+1 Jul 23, 2018 Go to the documentation of webdev 0.2.3+1 Download webdev 0.2.3+1 archive
0.2.3 Jun 25, 2018 Go to the documentation of webdev 0.2.3 Download webdev 0.2.3 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

All 15 versions...

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

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

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Maintenance suggestions

Maintain an example. (-10 points)

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.64.1 <3.0.0
args ^1.2.0 1.5.0
io ^0.3.2+1 0.3.3
meta ^1.1.2 1.1.6
path ^1.5.1 1.6.2
pub_semver ^1.3.2 1.4.2
stack_trace ^1.9.2 1.9.3
yaml ^2.1.13 2.1.15
Transitive dependencies
charcode 1.1.2
collection 1.14.11
source_span 1.4.1
string_scanner 1.0.4
Dev dependencies
build_runner ^1.0.0
build_verify ^1.0.0
build_version ^2.0.0
test ^1.0.0
test_descriptor ^1.0.3
test_process ^1.0.1