Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit be53cd1

Browse files
authored
Update to the latest build_runner. (#194)
* Update to the latest build_runner. * Remove library directives.
1 parent 5127d17 commit be53cd1

24 files changed

+48
-65
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,13 @@ will be on a best-effort basis.
9191
[wiki]: https://github.com/dart-lang/code_builder/wiki
9292
[issue]: https://github.com/dart-lang/code_builder/issues
9393
[pull]: https://github.com/dart-lang/code_builder/pulls
94+
95+
### Updating generated (`.g.dart`) files
96+
97+
Use [`build_runner`][build_runner]:
98+
99+
```bash
100+
$ pub run build_runner build --delete-conflicting-outputs
101+
```
102+
103+
[build_runner]: https://pub.dartlang.org/packages/build_runner

build.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
targets:
2+
$default:
3+
builders:
4+
"|_built_value":
5+
6+
builders:
7+
_built_value:
8+
target: ":code_builder"
9+
import: "../../../tool/src/builder.dart"
10+
builder_factories:
11+
- "builtValueBuilder"
12+
build_extensions:
13+
".dart": ".g.dart"
14+
build_to: "source"

lib/src/specs/class.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
library code_builder.src.specs.class_;
6-
75
import 'package:built_value/built_value.dart';
86
import 'package:built_collection/built_collection.dart';
97
import 'package:meta/meta.dart';

lib/src/specs/class.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/specs/code.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
library code_builder.src.specs.code;
6-
75
import 'package:built_value/built_value.dart';
86
import 'package:built_collection/built_collection.dart';
97
import 'package:meta/meta.dart';

lib/src/specs/code.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/specs/constructor.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
library code_builder.src.specs.constructor;
6-
75
import 'package:built_value/built_value.dart';
86
import 'package:built_collection/built_collection.dart';
97
import 'package:meta/meta.dart';

lib/src/specs/constructor.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/specs/directive.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
library code_builder.src.specs.directive;
6-
75
import 'package:built_value/built_value.dart';
86
import 'package:meta/meta.dart';
97

lib/src/specs/directive.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)