Renamed `--require-build-web-compilers` flag to `--build-web-compilers`
diff --git a/webdev/CHANGELOG.md b/webdev/CHANGELOG.md
index aaf52c1..abc66c2 100644
--- a/webdev/CHANGELOG.md
+++ b/webdev/CHANGELOG.md
@@ -2,6 +2,7 @@
- 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
diff --git a/webdev/README.md b/webdev/README.md
index 9a6aab4..1873090 100644
--- a/webdev/README.md
+++ b/webdev/README.md
@@ -24,17 +24,17 @@
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".
--v, --verbose Enables verbose logging.
- --[no-]require-build-web-compilers If a dependency on `build_web_compilers` is required to run.
- (defaults to on)
+-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".
+-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")
+ --hostname Specify the hostname to serve on
+ (defaults to "localhost")
- --log-requests Enables logging for each request to the server.
+ --log-requests Enables logging for each request to the server.
Run "webdev help" to see global options.
```
@@ -46,14 +46,14 @@
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)
+-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".
--v, --verbose Enables verbose logging.
- --[no-]require-build-web-compilers If a dependency on `build_web_compilers` is required to run.
- (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".
+-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.
```
diff --git a/webdev/lib/src/command/command_base.dart b/webdev/lib/src/command/command_base.dart
index 0f0538b..087126f 100644
--- a/webdev/lib/src/command/command_base.dart
+++ b/webdev/lib/src/command/command_base.dart
@@ -17,7 +17,7 @@
const _output = 'output';
const _verbose = 'verbose';
-const _requireBuildWebCompilers = 'require-build-web-compilers';
+const _requireBuildWebCompilers = 'build-web-compilers';
/// Extend to get a command with the arguments common to all build_runner
/// commands.
diff --git a/webdev/test/integration_test.dart b/webdev/test/integration_test.dart
index 21630d0..8e24118 100644
--- a/webdev/test/integration_test.dart
+++ b/webdev/test/integration_test.dart
@@ -71,7 +71,7 @@
test(
'`build_web_compilers` should be ignored with '
- '--no-require-build-web-compilers', () async {
+ '--no-build-web-compilers', () async {
await d.file('pubspec.yaml', '''
name: sample
''').create();
@@ -83,8 +83,7 @@
await d.file('.packages', '''
''').create();
- var process = await runWebDev(
- ['serve', '--no-require-build-web-compilers'],
+ var process = await runWebDev(['serve', '--no-build-web-compilers'],
workingDirectory: d.sandbox);
// Fails w/ an isolate exception instead - since this is a fake package