Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Webdev Support #110

Open
jonas-jonas opened this issue Jul 26, 2019 · 5 comments
Open

Webdev Support #110

jonas-jonas opened this issue Jul 26, 2019 · 5 comments
Assignees
Labels

Comments

@jonas-jonas
Copy link
Contributor

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

  1. by parsing the pubspec.yaml file or
  2. by looking at the output of pub deps -s compact (also relevant for Flutter Support #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 jonas-jonas changed the title Webdev support Webdev Support Jul 26, 2019
@jonas-jonas jonas-jonas self-assigned this Jul 26, 2019
@lak-proddev
Copy link
Contributor

@jonas-jonas I am interested to work on it. If you are not started yet.

@jonas-jonas
Copy link
Contributor Author

jonas-jonas commented Jul 31, 2019 via email

@jonas-jonas
Copy link
Contributor Author

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.

@lak-proddev
Copy link
Contributor

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

@jonas-jonas
Copy link
Contributor Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants