[wp-trac] [WordPress Trac] #44361: Add output tags to all JavaScript source files
WordPress Trac
noreply at wordpress.org
Fri Jun 15 10:18:46 UTC 2018
#44361: Add output tags to all JavaScript source files
--------------------------+-------------------------------
Reporter: omarreiss | Owner: atimmer
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: | Focuses: javascript, docs
--------------------------+-------------------------------
Changes (by atimmer):
* owner: (none) => atimmer
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"43347" 43347]:
{{{
#!CommitTicketReference repository="" revision="43347"
Docs: Add file doc `@output` annotations.
These annotations make it clear to the reader of a JavaScript source
where the build process outputs to. These annotations can later be
integrated in a webpack configuration. This way there is one source of
truth.
The `build` folder is omitted from the paths, because a single JS file
shouldn't not be responsible of knowing where outputs in general will
end up at. A file only knows its output location relative to the
project.
Props adamsilverstein, herregroen, omarreiss, pento.
Fixes #44361.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44361#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list