dart-lang / dart-lang/webdev

Expose HTTP handler for `webdev serve` as library

Open
#181 0 comments 0 reactions 0 assignees View on GitHub
package:webdev type-enhancement
Dominant language
Dart
Stars
224
Forks
94
Avg merge
7h 14m
Merged PRs (30d)
2

Description

When writing an HTTP server in Dart and using `webdev` for building assets, it would be nice to have an HTTP handler that:
A) serves what `webdev serve` serves when running in development mode, and,
B) serves what is built by `webdev build` when running in production mode.

This probably means depending on `webdev` as a `dependency` (not `dev_dependency`), and using it as a library if running in development mode.

Use case: https://github.com/dart-lang/appengine/pull/92#issuecomment-470146418

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the webdev serve and webdev build entry points and how their development and production asset-serving paths are organized. Define the library-facing HTTP handler and dependency arrangement so both modes expose the requested behavior, then add or update tests covering development and production serving.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
cli, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.