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/admin/common.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/admin/common.js')
-rw-r--r-- | src/js/_enqueues/admin/common.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/_enqueues/admin/common.js b/src/js/_enqueues/admin/common.js index 394648befd..26abce8c95 100644 --- a/src/js/_enqueues/admin/common.js +++ b/src/js/_enqueues/admin/common.js @@ -1,3 +1,7 @@ +/** + * @output wp-admin/js/common.js + */ + /* global setUserSetting, ajaxurl, commonL10n, alert, confirm, pagenow */ var showNotice, adminMenu, columns, validateForm, screenMeta; |