Skip to content

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

Merged
merged 5 commits into from
Mar 30, 2018

Conversation

kevmoo
Copy link
Collaborator

@kevmoo kevmoo commented Mar 30, 2018

No description provided.

@kevmoo kevmoo requested a review from natebosch March 30, 2018 00:57
@kevmoo
Copy link
Collaborator Author

kevmoo commented Mar 30, 2018

@natebosch – yes, this is a bear. Happy to split it up if it'll help...

import: "package:json_serializable/builder.dart"
builder_factories: ["jsonSerializable"]
import: "package:json_serializable/json_serializable.dart"
builder_factories: ["createBuilderForJsonSerializable"]
Copy link
Member

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.

Copy link
Collaborator Author

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
Copy link
Member

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.
Copy link
Member

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 😁

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm...k

@kevmoo kevmoo force-pushed the latest_source_gen branch from 8f3a730 to 3eabbf2 Compare March 30, 2018 17:28
@kevmoo
Copy link
Collaborator Author

kevmoo commented Mar 30, 2018

@natebosch PTAL

@kevmoo kevmoo merged commit 3eabbf2 into master Mar 30, 2018
@kevmoo kevmoo deleted the latest_source_gen branch March 30, 2018 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants