Version 1
[yaffs-website] / web / core / modules / system / tests / modules / common_test / common_test.libraries.yml
1 jquery.farbtastic:
2   version: 0.1
3   js:
4     assets/vendor/farbtastic/farbtastic.js: {}
5   css:
6     component:
7       assets/vendor/farbtastic/farbtastic.css: {}
8   dependencies:
9     - core/jquery
10
11 # Library to test CSS and JS file assets.
12 files:
13   js:
14     foo.js: {}
15   css:
16     theme:
17       bar.css: {}
18
19 # Library to test external CSS and JS file assets.
20 external:
21   version: 1
22   js:
23     http://example.com/script.js: { type: external }
24   css:
25     theme:
26       http://example.com/stylesheet.css: { type: external }
27
28 # Library to test JS file asset attributes (both internal and external).
29 js-attributes:
30   version: 1
31   js:
32     deferred-internal.js: { attributes: { defer: true, bar: foo } }
33     http://example.com/deferred-external.js:
34       type: external
35       attributes:
36         foo: bar
37         defer: true
38
39 js-header:
40   header: true
41   js:
42     header.js: {}
43   dependencies:
44     - core/drupal
45
46 # Library to test setting cache = FALSE, to prevent aggregation.
47 no-cache:
48   js:
49     nocache.js: { cache: false }
50
51 order:
52   js:
53     weight_-3_1.js: { weight: -3 }
54     weight_0_1.js: {}
55     weight_0_2.js: {}
56     weight_-8_1.js: { weight: -8 }
57     weight_-8_2.js: { weight: -8 }
58     weight_-8_3.js: { weight: -8 }
59     http://example.com/weight_-5_1.js: { type: external, weight: -5 }
60     weight_-8_4.js: { weight: -8 }
61     weight_-3_2.js: { weight: -3 }
62     weight_0_3.js: {}
63   css:
64     base:
65       base_weight_0_1.js: {}
66       base_weight_0_2.js: {}
67       base_weight_-8_1.js: { weight: -8 }
68       base_weight_-101_1.js: { weight: -101 }
69     layout:
70       layout_weight_0_1.js: {}
71       layout_weight_0_2.js: {}
72       layout_weight_-8_1.js: { weight: -8 }
73       layout_weight_-101_1.js: { weight: -101 }
74     component:
75       component_weight_0_1.js: {}
76       component_weight_0_2.js: {}
77       component_weight_-8_1.js: { weight: -8}
78       component_weight_-101_1.js: { weight: -101}
79     state:
80       state_weight_0_1.js: {}
81       state_weight_0_2.js: {}
82       state_weight_-8_1.js: { weight: -8}
83       state_weight_-101_1.js: { weight: -101}
84     theme:
85       theme_weight_0_1.js: {}
86       theme_weight_0_2.js: {}
87       theme_weight_-8_1.js: { weight: -8}
88       theme_weight_-101_1.js: { weight: -101}
89
90 weight:
91   css:
92     theme:
93       first.css: {}
94       lighter.js: { weight: -1 }
95   js:
96     first.js: {}
97     lighter.js: { weight: -1 }
98     before-jquery.js: { weight: -21 }
99
100 browsers:
101   js:
102     old-ie.js:
103       browsers:
104         'IE': 'lte IE 8'
105         '!IE': false
106     no-ie.js:
107       browsers:
108         IE: false
109
110 querystring:
111   js:
112     querystring.js?arg1=value1&arg2=value2: {}
113   css:
114     theme:
115       querystring.css?arg1=value1&arg2=value2: {}