-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
flutter dart foo.dart
to run dart foo.dart
with FLUTTER_ROOT set
#13607
Comments
Strawman: In the meantime, could source_gen ship a generic runner accessible from |
SGTM...
Sadly, no. We're working on a solution w/ pkg/build where there will be a common entry point. Hoping to have that nailed down in Q1. |
Would a more idea solution be some way to register (maybe in |
That'd be good, too... We'd want to start talking about a real design at
that point...
…On Mon, Dec 18, 2017 at 8:10 AM, Michael Thomsen ***@***.***> wrote:
Would a more idea solution be some way to register (maybe in pubspec.yaml,
that flutter should execute some dart "script" during build? Then you
wouldn't need to remember to manually run the generators?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13607 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABCilMzBf-metyvWioaobf2F-clKeQoks5tBo6FgaJpZM4RDynL>
.
|
dart
executableflutter dart foo.dart
to run dart foo.dart
with FLUTTER_ROOT set
|
Closing as pub can run dart scripts, and because we'll likely use a different solution for build_runner integration. |
Also, note that I recently added passthrough for all
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Required to run things like
source_gen
generators.#13360 deals with
pub run
. This is just getting access to thedart
command to run things not in thebin
directory.Here's the draft text I've included in
json_serializable
– which is pretty gnarly.NOTE: If you're using Flutter, running a Dart script is a bit tricky. You can
find the Dart entry point at
$FLUTTER_ROOT/bin/cache/dart-sdk/bin/dart
.You can determine
FLUTTER_ROOT
by looking at the first few lines offlutter doctor
.The text was updated successfully, but these errors were encountered: