Add type hints for extension static media bundles.

Review Request #13651 — Created March 19, 2024 and submitted

Information

Djblets
release-5.x

Reviewers

This introduces some type hints we can use to fully verify the CSS and
JavaScript bundle configurations used for an extension. These are
effectively supersets of Pipeline's own package configuration formats,
with some additional settings that we offer (such as apply_to and
include_bundles).

Some code working with bundles have been updated to make use of the new
types (and have had type hints introduced as a side-effect). This is not
comprehensive. More code will be updated in coming changes.

This is all part of a dual project to both allow extensions to use
modern static media building support, and to begin incorporating Ink
into the codebase.

Unit tests pass.

Summary ID
Add type hints for extension static media bundles.
This introduces some type hints we can use to fully verify the CSS and JavaScript bundle configurations used for an extension. These are effectively supersets of Pipeline's own package configuration formats, with some additional settings that we offer (such as `apply_to` and `include_bundles`). Some code working with bundles have been updated to make use of the new types (and have had type hints introduced as a side-effect). This is not comprehensive. More code will be updated in coming changes. This is all part of a dual project to both allow extensions to use modern static media building support, and to begin incorporating Ink into the codebase.
708142f8f8a4fb8f6d7d9b0762c0161b52a7f331
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-5.x (f70ed36)
Loading...