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
abc.gif
def.svg
def_variantize.svg
direction.css
ghi.svg
ghi_massage.svg
jkl.svg
mno-ltr.svg
mno-rtl.svg
pqr-a.svg
pqr-b.svg
pqr-f.svg
sample.json
script-comment.js
script-nosemi.js
vue-component-output-debug.js.txt
vue-component-output-nondebug-php72.js.txt
vue-component-output-nondebug.js.txt
vue-component.vue