-
Notifications
You must be signed in to change notification settings - Fork 412
latest pkg:source_gen, and a lot of deprecation cleanup #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...and support the latest `package:source_gen`.
@natebosch – yes, this is a bear. Happy to split it up if it'll help... |
json_serializable/build.yaml
Outdated
import: "package:json_serializable/builder.dart" | ||
builder_factories: ["jsonSerializable"] | ||
import: "package:json_serializable/json_serializable.dart" | ||
builder_factories: ["createBuilderForJsonSerializable"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file move away from the conventions we've been trying to establish. Perhaps I should document them somewhere...
Importing from /builder.dart
is a signal that the code in here is meant more for the build system than for end users - it's good IMO to keep the builder separate from the annotations.
Having a noun name for the factory makes the build.yaml look a little nicer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm...k
@@ -0,0 +1,30 @@ | |||
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2018
|
||
/// Supports `package:build_runner` creation and configuration of `build_cli`. | ||
/// | ||
/// Not meant to be invoked by hand-authored code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which is why I like to have it in a separate library 😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm...k
8f3a730
to
3eabbf2
Compare
@natebosch PTAL |
No description provided.