Skip to content

Commit 11966f1

Browse files
authored
[hooks] Document main functions for library (#2268)
1 parent 8aa3f53 commit 11966f1

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

pkgs/hooks/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.19.1-wip
2+
3+
- Added links to the `build` and `link` methods as primary entry points.
4+
15
## 0.19.0
26

37
- Split up `package:native_assets_cli` in `package:hooks`,

pkgs/hooks/lib/hooks.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
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-
/// A library that contains the argument and file formats for implementing a
6-
/// build hook (`hook/build.dart`).
5+
/// A library that contains the protocol for implementing hooks.
6+
///
7+
/// The main entrypoint for build hooks (`hook/build.dart`) is [build]. The main
8+
/// entrypoint for link hooks (`hook/link.dart`) is [link].
79
library;
810

11+
import 'src/api/build.dart';
12+
import 'src/api/link.dart';
13+
914
export 'src/api/build.dart' show build;
1015
export 'src/api/builder.dart' show Builder;
1116
export 'src/api/link.dart' show link;

pkgs/hooks/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: >-
33
A library that contains a Dart API for the JSON-based protocol for
44
`hook/build.dart` and `hook/link.dart`.
55
6-
version: 0.19.0
6+
version: 0.19.1-wip
77

88
repository: https://github.com/dart-lang/native/tree/main/pkgs/hooks
99

0 commit comments

Comments
 (0)