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
Explain how to use this package #322
Comments
Here are two examples: https://github.com/dart-lang/json_serializable/tree/master/json_serializable
Agreed, we need better docs here, but this may get you unblocked... |
Progress towards #322 by making it easier to include a fully functional example
Progress towards #322 by making it easier to include a fully functional example
Progress towards #322 by making it easier to include a fully functional example
I think @kevmoo's comments are likely all we'll have at this point. Pull requests welcome! |
I'm going to reopen and keep this assigned to me. Once we publish the bits on master, I want to come back here and add an example. |
I have a PR out w/ some initial examples. #390 |
Hi @kevmoo, thanks for putting up the examples. After spending hours looking over the code, its beginning to click. However I've seen in source_gen_example|property_sum:
generate_for:
- lib/*.dart
source_gen_example|property_product:
generate_for:
- lib/*.dart And I would like to know: Why upon removing this configuration, the contents of the build output file So far I've seen that it relates to this line in part 'library_source.g.dart'; Removing that line understandably does not create |
@graphicbeacon - the purpose of the By adding a |
Thank you @natebosch. That clarifies things. I wish to cover this on my YouTube channel. I hope that will help with documentation. |
@graphicbeacon – if you want to send a PR adding notes to clarify what you've learned, we'd happily add it! |
The nicely documented |
Ok. now I kind of feel stupid. Looks like I needed to look into https://github.com/dart-lang/source_gen/tree/master/example_usage. But my comment about lack of good documentation that just doesn't point to each other still stands. Outside the official doc, any good tutorial for |
Have you run 'pub upgrade' in this directory? Which SDK are you using?
…On Sat, Apr 20, 2019 at 10:54 PM Ashok Gelal ***@***.***> wrote:
Unfortunately, still no luck:
[image: Screenshot 2019-04-20 23 53 04]
<https://user-images.githubusercontent.com/401055/56466011-93c03600-63c7-11e9-8a65-3289ee0a6e93.png>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#322 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAEFCTBK5BSDWGDGR4EGDDPRP6QLANCNFSM4EY7HUPA>
.
|
I got it working (somehow :). Not sure why but I'm sure it was on my side |
I've been trying hard enough to figure out how to use this package, reading all the extense build package documentation and that... and I'm still lost.
Can someone please put some trivial e2e example in the wiki, with both the code and the commands needed to generate code and execute it in your project?
Thanks in advance
The text was updated successfully, but these errors were encountered: