Skip to content

Commit

Permalink
Use pub for execution of build runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jmewes committed Feb 20, 2021
1 parent 1237afd commit 81307fb
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dartfn/templates/cloudevent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for the function server app, which invokes the function in `lib/functions.dart`.
Run the `build_runner` tool, as shown here:

```shell
$ dart run build_runner build
$ pub run build_runner build
[INFO] Generating build script completed, took 337ms
[INFO] Reading cached asset graph completed, took 48ms
[INFO] Checking for updates since last build completed, took 426ms
Expand Down
2 changes: 1 addition & 1 deletion dartfn/templates/helloworld/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Response handleGet(Request request) => Response.ok('Hello, World!');
Run the `build_runner` to regenerate `bin/server.dart` from `lib/functions.dart`

```shell
$ dart run build_runner build
$ pub run build_runner build
[INFO] Generating build script completed, took 304ms
[INFO] Reading cached asset graph completed, took 46ms
[INFO] Checking for updates since last build completed, took 412ms
Expand Down
2 changes: 1 addition & 1 deletion dartfn/templates/json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The Dart `build_runner` tool generates the following files
Run the `build_runner` tool, as shown here:

```shell
$ dart run build_runner build
$ pub run build_runner build
[INFO] Generating build script completed, took 337ms
[INFO] Reading cached asset graph completed, took 48ms
[INFO] Checking for updates since last build completed, took 426ms
Expand Down
2 changes: 1 addition & 1 deletion dartfn/tool/bashcmds
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi

# dart build - generates encoded templates from source
function db() {
(cd $pubdir; dart run build_runner build --delete-conflicting-outputs "$@")
(cd $pubdir; pub run build_runner build --delete-conflicting-outputs "$@")
}

# dart run
Expand Down
4 changes: 2 additions & 2 deletions docs/quickstarts/01-quickstart-dart.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CloudEvent requests. The output of this build process is `bin/server.dart`.
To generate `bin/server.dart`, you need to run the Dart `build_runner` tool.

```shell
$ dart run build_runner build --delete-conflicting-outputs
$ pub run build_runner build --delete-conflicting-outputs
[INFO] Generating build script completed, took 304ms
[INFO] Reading cached asset graph completed, took 46ms
[INFO] Checking for updates since last build completed, took 412ms
Expand Down Expand Up @@ -133,7 +133,7 @@ Response handleGet(Request request) => Response.ok('Hello, World!');
Run `build_runner` to regenerate `bin/server.dart` from `lib/functions.dart`

```shell
$ dart run build_runner build
$ pub run build_runner build
...
```

Expand Down
2 changes: 1 addition & 1 deletion examples/hello/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Response handleGet(Request request) => Response.ok('Hello, World!');
Run the `build_runner` to regenerate `bin/server.dart` from `lib/functions.dart`

```shell
$ dart run build_runner build
$ pub run build_runner build
[INFO] Generating build script completed, took 304ms
[INFO] Reading cached asset graph completed, took 46ms
[INFO] Checking for updates since last build completed, took 412ms
Expand Down
2 changes: 1 addition & 1 deletion examples/json/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The Dart `build_runner` tool generates the following files
Run the `build_runner` tool, as shown here:

```shell
$ dart run build_runner build
$ pub run build_runner build
[INFO] Generating build script completed, took 337ms
[INFO] Reading cached asset graph completed, took 48ms
[INFO] Checking for updates since last build completed, took 426ms
Expand Down
2 changes: 1 addition & 1 deletion examples/raw_cloudevent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for the function server app, which invokes the function in `lib/functions.dart`.
Run the `build_runner` tool, as shown here:

```shell
$ dart run build_runner build
$ pub run build_runner build
[INFO] Generating build script completed, took 337ms
[INFO] Reading cached asset graph completed, took 48ms
[INFO] Checking for updates since last build completed, took 426ms
Expand Down

0 comments on commit 81307fb

Please sign in to comment.