Make WordPress Core


Ignore:
Timestamp:
06/15/2018 10:18:44 AM (8 years ago)
Author:
atimmer
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/media.js

    r43309 r43347  
    1 /* global ajaxurl, attachMediaBoxL10n, _wpMediaGridSettings, showNotice */
    2 
    31/**
    42 * Creates a dialog containing posts that can have a particular media attached
     
    64 *
    75 * @since 2.7.0
     6 * @output wp-admin/js/media.js
    87 *
    98 * @namespace findPosts
     
    1110 * @requires jQuery
    1211 */
     12
     13/* global ajaxurl, attachMediaBoxL10n, _wpMediaGridSettings, showNotice */
     14
    1315var findPosts;
    1416
Note: See TracChangeset for help on using the changeset viewer.