Add a noop entry type for documenting upstream libraries which we
use in some non-standard way (patched, with a build step etc).
Use it to document jquery.ui (heavily patched). Also fix alphabetic
ordering of the entries.
Bug: T335690
Change-Id: Ieb75f23dfd103ebec8bdf7911d8bb6a0c77bb95d
Add a transformation step to foreign-resources.yaml that allows
for simple modifications after the files are fetched and hashed.
This is experimental and mainly meant as a short-term solution
for T335326. In the long term, we might decide to handle the
issue of libraries with ES2017 syntax differently, and this
functionality might be removed. Use at your own risk.
Currently the only supported modification is adding a 'nomin'
filter to the beginning of the file, which is useful for files
which are already minified or which the MediaWiki minifier can't
deal with for some reason. In the future, this could be used
e.g. to apply patches.
Change-Id: I4d93bf6d04683cc4072e99f6ab02d0e618d85914
Add an extension/skin attribute and a command line option for
manageForeignResources.php, for management of an extension's or
skin's foreign resources. This is less clumsy and more
introspectable than each extension/skin creating its own copy
of manageForeignResources.php.
Bug: T330508
Change-Id: I5df95ea4799d0efce60b58a35cb916c8e0f555b0
It is currently possible to update the source URL of a package
in foreign-resources.yaml without updating the integrity hash (
or updating it but forgetting to stage/commit it). And yet CI would
still pass if the URL ends with an unversioned filename, because
the cache key would remain unchanged and thus CI would not download
the URL.
Change-Id: I04d77c438b7b083b1981f92cf6ddeaae0633ec86
* Wait until we know the action before choosing the temp directory.
Use the configured temp directory if the action is verify, since the
arguments for using a subdirectory of the source tree do not apply on
verify.
* Use the configured cache directory in precedence over the source tree.
Change-Id: I0431db332238c8e2de14ec71fb611e0a8d4e959b