dartboard
dartboard copied to clipboard
Webdev Support
Dart projects that are supposed to be run in the browser, need to be launched using the webdev
CLI tool.
This needs to be supported in the launch configurations.
For this we should somehow detect if the project depends on build_web_compilers
. This can either done
- by parsing the
pubspec.yaml
file or - by looking at the output of
pub deps -s compact
(also relevant for #109)
I'm not sure yet, what would be the better option.
If the detection detects such a project, there should be another Run as entry titled Run as webdev application, which launches the webdev
cli in the current project. Also; there are two commands relevant here webdev serve
and webdev build
. Both should be supported.
@jonas-jonas I am interested to work on it. If you are not started yet.
No, feel free to start work on it.
Lakshminarayana Nekkanti [email protected] schrieb am Mi., 31. Juli 2019, 07:40:
@jonas-jonas https://github.com/jonas-jonas I am interested to work on it. If you are not started yet.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eclipse/dartboard/issues/110?email_source=notifications&email_token=ABKITH5LGEWXOQYLQCVPDK3QCEQUBA5CNFSM4IHCA5JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3GEOZQ#issuecomment-516704102, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKITHZC3GU67STAC5AOUFTQCEQUBANCNFSM4IHCA5JA .
Also note, that webdev should be invoked using the pub global run
command. See the stagehand branch for a how to as it should be the same commands.
I think these are the sub-tasks.
- [ ] Detect Webdev support should be enabled for the project.
- [ ] Provide Launch configuration
- [ ] webdev serve support
- [ ] webdev build support
Yes, looks good to me. Please use https://github.com/eclipse/dartboard/blob/master/org.eclipse.dartboard/src/org/eclipse/dartboard/util/PubUtil.java when instantiating a new ProcessBuilder so you have the PUB_ENVIRONMENT variable set.