diff options
author | Anton Timmermans <atimmer@git.wordpress.org> | 2018-06-15 10:18:44 +0000 |
---|---|---|
committer | Anton Timmermans <atimmer@git.wordpress.org> | 2018-06-15 10:18:44 +0000 |
commit | 78f2b0e73157a2b62ba947793d9488accfdd78c0 (patch) | |
tree | 892d41b85a1d05fd6ddcc438df3be0041966b703 /src/js/_enqueues/wp/api-request.js | |
parent | e32886cbdfc4a0f42412d28ee2d4dfabe73f019e (diff) | |
download | wordpress-78f2b0e73157a2b62ba947793d9488accfdd78c0.tar.gz wordpress-78f2b0e73157a2b62ba947793d9488accfdd78c0.zip |
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.
git-svn-id: https://develop.svn.wordpress.org/trunk@43347 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'src/js/_enqueues/wp/api-request.js')
-rw-r--r-- | src/js/_enqueues/wp/api-request.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/js/_enqueues/wp/api-request.js b/src/js/_enqueues/wp/api-request.js index 4b299beb69..3ed1c68695 100644 --- a/src/js/_enqueues/wp/api-request.js +++ b/src/js/_enqueues/wp/api-request.js @@ -9,6 +9,7 @@ * - Allows specifying only an endpoint namespace/path instead of a full URL. * * @since 4.9.0 + * @output wp-includes/js/api-request.js */ ( function( $ ) { |