wiki.techinc.nl/tests/phpunit/data/resourceloader
Roan Kattouw ca46126e98 resourceloader: Support single-file component .vue files
Allows .vue files to be used in package modules as if they were .js
files: they can be added to the 'packageFiles' array in module
definitions, and require()d from JS files.

In the load.php output, each .vue file is transformed to a function that
contains the JS from the <script> tag, then a line that sets
module.exports.template to the contents of the <template> tag (encoded
as a string). The contents of the <style> tag are added to the module's
styles.

Internally, the type of a .vue file is inferred as 'script-vue', and the
file is parsed with VueComponentParser, which extracts the three parts.
After the transformation, the file's type is set to 'script+style', and
files of this type contribute to both getScript() and getStyles().

This change also adds caching to getPackageFiles(), because it now needs
to be called twice (in getScript() and getStyles()).

Change-Id: Ic0a5c771901450a518eb7d24456053956507e1ed
2020-03-12 14:32:41 -07:00
..
oouiimagemodule Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
abc.gif Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
def.svg resourceloader: Avoid toplevel <title> under <g> in ResourceLoaderImage 2019-01-15 22:48:54 +00:00
def_variantize.svg resourceloader: Avoid unnecessary xmlns attributes in ResourceLoaderImage 2019-01-16 02:22:45 +00:00
direction.css resourceloader: Add tests for module-level 'noflip' option 2019-12-03 15:58:36 +00:00
ghi.svg Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
ghi_massage.svg Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
jkl.svg Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
mno-ltr.svg Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
mno-rtl.svg Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
pqr-a.svg Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
pqr-b.svg Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
pqr-f.svg Rename all files used in ResourceLoaderImageModule tests to fake names 2017-06-06 13:17:29 +00:00
sample.json ResourceLoader: Add support for packageFiles 2019-02-05 22:05:02 +00:00
script-comment.js resourceloader: Add basic tests for getScript() and buildContent() 2017-06-26 22:15:17 -07:00
script-nosemi.js resourceloader: Add basic tests for getScript() and buildContent() 2017-06-26 22:15:17 -07:00
vue-component-output-debug.js.txt resourceloader: Support single-file component .vue files 2020-03-12 14:32:41 -07:00
vue-component-output-nondebug-php72.js.txt resourceloader: Support single-file component .vue files 2020-03-12 14:32:41 -07:00
vue-component-output-nondebug.js.txt resourceloader: Support single-file component .vue files 2020-03-12 14:32:41 -07:00
vue-component.vue resourceloader: Support single-file component .vue files 2020-03-12 14:32:41 -07:00