Index: branches/resourceloader/phase3/includes/ResourceLoaderModule.php |
— | — | @@ -47,28 +47,28 @@ |
48 | 48 | public function __construct( $options = array() ) { |
49 | 49 | foreach ( $options as $option => $value ) { |
50 | 50 | switch ( $option ) { |
51 | | - case 'script': |
| 51 | + case 'scripts': |
52 | 52 | $this->scripts = (array)$value; |
53 | 53 | break; |
54 | | - case 'style': |
| 54 | + case 'styles': |
55 | 55 | $this->styles = $value; |
56 | 56 | break; |
57 | 57 | case 'messages': |
58 | 58 | $this->messages = $value; |
59 | 59 | break; |
60 | | - case 'needs': |
| 60 | + case 'dependencies': |
61 | 61 | $this->dependencies = $value; |
62 | 62 | break; |
63 | | - case 'debug': |
| 63 | + case 'debugScripts': |
64 | 64 | $this->debugScripts = (array)$value; |
65 | 65 | break; |
66 | | - case 'locales': |
| 66 | + case 'languageScripts': |
67 | 67 | $this->languageScripts = (array)$value; |
68 | 68 | break; |
69 | | - case 'themes': |
| 69 | + case 'skinStyles': |
70 | 70 | $this->skinStyles = (array)$value; |
71 | 71 | break; |
72 | | - case 'loader': |
| 72 | + case 'loaders': |
73 | 73 | $this->loaders = (array)$value; |
74 | 74 | break; |
75 | 75 | case 'raw': |
Index: branches/resourceloader/phase3/resources/Resources.php |
— | — | @@ -7,19 +7,19 @@ |
8 | 8 | |
9 | 9 | /* jQuery */ |
10 | 10 | |
11 | | - 'jquery' => array( 'script' => 'resources/jquery/jquery.js', 'raw' => true ), |
| 11 | + 'jquery' => array( 'scripts' => 'resources/jquery/jquery.js', 'raw' => true ), |
12 | 12 | |
13 | 13 | /* jQuery Plugins */ |
14 | 14 | |
15 | | - 'jquery.tabIndex' => array( 'script' => 'resources/jquery/jquery.tabIndex.js' ), |
16 | | - 'jquery.cookie' => array( 'script' => 'resources/jquery/jquery.cookie.js' ), |
| 15 | + 'jquery.tabIndex' => array( 'scripts' => 'resources/jquery/jquery.tabIndex.js' ), |
| 16 | + 'jquery.cookie' => array( 'scripts' => 'resources/jquery/jquery.cookie.js' ), |
17 | 17 | |
18 | 18 | /* jQuery UI */ |
19 | 19 | |
20 | 20 | // Core |
21 | 21 | 'jquery.ui.core' => array( |
22 | | - 'script' => 'resources/jquery/ui/jquery.ui.core.js', |
23 | | - 'themes' => array( |
| 22 | + 'scripts' => 'resources/jquery/ui/jquery.ui.core.js', |
| 23 | + 'skinStyles' => array( |
24 | 24 | 'default' => array( |
25 | 25 | 'resources/jquery/ui/themes/default/jquery.ui.core.css', |
26 | 26 | 'resources/jquery/ui/themes/default/jquery.ui.theme.css', |
— | — | @@ -29,82 +29,82 @@ |
30 | 30 | 'resources/jquery/ui/themes/vector/jquery.ui.theme.css', |
31 | 31 | ), |
32 | 32 | ), |
33 | | - 'needs' => 'jquery', |
| 33 | + 'dependencies' => 'jquery', |
34 | 34 | ), |
35 | 35 | 'jquery.ui.widget' => array( |
36 | | - 'script' => 'resources/jquery/ui/jquery.ui.widget.js', |
37 | | - 'needs' => 'jquery.ui.core', |
| 36 | + 'scripts' => 'resources/jquery/ui/jquery.ui.widget.js', |
| 37 | + 'dependencies' => 'jquery.ui.core', |
38 | 38 | ), |
39 | 39 | 'jquery.ui.mouse' => array( |
40 | | - 'script' => 'resources/jquery/ui/jquery.ui.mouse.js', |
41 | | - 'needs' => 'jquery', |
| 40 | + 'scripts' => 'resources/jquery/ui/jquery.ui.mouse.js', |
| 41 | + 'dependencies' => 'jquery', |
42 | 42 | ), |
43 | 43 | 'jquery.ui.position' => array( |
44 | | - 'script' => 'resources/jquery/ui/jquery.ui.position.js', |
45 | | - 'needs' => 'jquery', |
| 44 | + 'scripts' => 'resources/jquery/ui/jquery.ui.position.js', |
| 45 | + 'dependencies' => 'jquery', |
46 | 46 | ), |
47 | 47 | // Interactions |
48 | 48 | 'jquery.ui.draggable' => array( |
49 | | - 'script' => 'resources/jquery/ui/jquery.ui.draggable.js', |
50 | | - 'needs' => 'jquery.ui.core', |
| 49 | + 'scripts' => 'resources/jquery/ui/jquery.ui.draggable.js', |
| 50 | + 'dependencies' => 'jquery.ui.core', |
51 | 51 | ), |
52 | 52 | 'jquery.ui.droppable' => array( |
53 | | - 'script' => 'resources/jquery/ui/jquery.ui.droppable.js', |
54 | | - 'needs' => array( 'jquery.ui.core', 'jquery.ui.draggable' ), |
| 53 | + 'scripts' => 'resources/jquery/ui/jquery.ui.droppable.js', |
| 54 | + 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.draggable' ), |
55 | 55 | ), |
56 | 56 | 'jquery.ui.resizable' => array( |
57 | | - 'script' => 'resources/jquery/ui/jquery.ui.resizable.js', |
58 | | - 'themes' => array( |
| 57 | + 'scripts' => 'resources/jquery/ui/jquery.ui.resizable.js', |
| 58 | + 'skinStyles' => array( |
59 | 59 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.resizable.css', |
60 | 60 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.resizable.css', |
61 | 61 | ), |
62 | | - 'needs' => 'jquery.ui.core', |
| 62 | + 'dependencies' => 'jquery.ui.core', |
63 | 63 | ), |
64 | 64 | 'jquery.ui.selectable' => array( |
65 | | - 'script' => 'resources/jquery/ui/jquery.ui.selectable.js', |
66 | | - 'themes' => array( |
| 65 | + 'scripts' => 'resources/jquery/ui/jquery.ui.selectable.js', |
| 66 | + 'skinStyles' => array( |
67 | 67 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.selectable.css', |
68 | 68 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.selectable.css', |
69 | 69 | ), |
70 | | - 'needs' => 'jquery.ui.core', |
| 70 | + 'dependencies' => 'jquery.ui.core', |
71 | 71 | ), |
72 | 72 | 'jquery.ui.sortable' => array( |
73 | | - 'script' => 'resources/jquery/ui/jquery.ui.sortable.js', |
74 | | - 'needs' => 'jquery.ui.core', |
| 73 | + 'scripts' => 'resources/jquery/ui/jquery.ui.sortable.js', |
| 74 | + 'dependencies' => 'jquery.ui.core', |
75 | 75 | ), |
76 | 76 | // Widgets |
77 | 77 | 'jquery.ui.accordion' => array( |
78 | | - 'script' => 'resources/jquery/ui/jquery.ui.accordion.js', |
79 | | - 'needs' => 'jquery.ui.core', |
80 | | - 'themes' => array( |
| 78 | + 'scripts' => 'resources/jquery/ui/jquery.ui.accordion.js', |
| 79 | + 'dependencies' => 'jquery.ui.core', |
| 80 | + 'skinStyles' => array( |
81 | 81 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.accordion.css', |
82 | 82 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.accordion.css', |
83 | 83 | ), |
84 | 84 | ), |
85 | 85 | 'jquery.ui.autocomplete' => array( |
86 | | - 'script' => 'resources/jquery/ui/jquery.ui.autocomplete.js', |
87 | | - 'needs' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.position' ), |
88 | | - 'themes' => array( |
| 86 | + 'scripts' => 'resources/jquery/ui/jquery.ui.autocomplete.js', |
| 87 | + 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.position' ), |
| 88 | + 'skinStyles' => array( |
89 | 89 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.autocomplete.css', |
90 | 90 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.autocomplete.css', |
91 | 91 | ), |
92 | 92 | ), |
93 | 93 | 'jquery.ui.button' => array( |
94 | | - 'script' => 'resources/jquery/ui/jquery.ui.button.js', |
95 | | - 'needs' => array( 'jquery.ui.core', 'jquery.ui.widget' ), |
96 | | - 'themes' => array( |
| 94 | + 'scripts' => 'resources/jquery/ui/jquery.ui.button.js', |
| 95 | + 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget' ), |
| 96 | + 'skinStyles' => array( |
97 | 97 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.button.css', |
98 | 98 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.button.css', |
99 | 99 | ), |
100 | 100 | ), |
101 | 101 | 'jquery.ui.datepicker' => array( |
102 | | - 'script' => 'resources/jquery/ui/jquery.ui.datepicker.js', |
103 | | - 'needs' => 'jquery.ui.core', |
104 | | - 'themes' => array( |
| 102 | + 'scripts' => 'resources/jquery/ui/jquery.ui.datepicker.js', |
| 103 | + 'dependencies' => 'jquery.ui.core', |
| 104 | + 'skinStyles' => array( |
105 | 105 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.datepicker.css', |
106 | 106 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.datepicker.css', |
107 | 107 | ), |
108 | | - 'locales' => array( |
| 108 | + 'languageScripts' => array( |
109 | 109 | 'af' => 'resources/jquery/ui/i18n/jquery.ui.datepicker-af.js', |
110 | 110 | 'ar' => 'resources/jquery/ui/i18n/jquery.ui.datepicker-ar.js', |
111 | 111 | 'az' => 'resources/jquery/ui/i18n/jquery.ui.datepicker-az.js', |
— | — | @@ -160,216 +160,216 @@ |
161 | 161 | ), |
162 | 162 | ), |
163 | 163 | 'jquery.ui.dialog' => array( |
164 | | - 'script' => 'resources/jquery/ui/jquery.ui.dialog.js', |
165 | | - 'needs' => 'jquery.ui.core', |
166 | | - 'themes' => array( |
| 164 | + 'scripts' => 'resources/jquery/ui/jquery.ui.dialog.js', |
| 165 | + 'dependencies' => 'jquery.ui.core', |
| 166 | + 'skinStyles' => array( |
167 | 167 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.dialog.css', |
168 | 168 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.dialog.css', |
169 | 169 | ), |
170 | 170 | ), |
171 | 171 | 'jquery.ui.progressbar' => array( |
172 | | - 'script' => 'resources/jquery/ui/jquery.ui.progressbar.js', |
173 | | - 'needs' => 'jquery.ui.core', |
174 | | - 'themes' => array( |
| 172 | + 'scripts' => 'resources/jquery/ui/jquery.ui.progressbar.js', |
| 173 | + 'dependencies' => 'jquery.ui.core', |
| 174 | + 'skinStyles' => array( |
175 | 175 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.progressbar.css', |
176 | 176 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.progressbar.css', |
177 | 177 | ), |
178 | 178 | ), |
179 | 179 | 'jquery.ui.slider' => array( |
180 | | - 'script' => 'resources/jquery/ui/jquery.ui.slider.js', |
181 | | - 'needs' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ), |
182 | | - 'themes' => array( |
| 180 | + 'scripts' => 'resources/jquery/ui/jquery.ui.slider.js', |
| 181 | + 'dependencies' => array( 'jquery.ui.core', 'jquery.ui.widget', 'jquery.ui.mouse' ), |
| 182 | + 'skinStyles' => array( |
183 | 183 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.slider.css', |
184 | 184 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.slider.css', |
185 | 185 | ), |
186 | 186 | ), |
187 | 187 | 'jquery.ui.tabs' => array( |
188 | | - 'script' => 'resources/jquery/ui/jquery.ui.tabs.js', |
189 | | - 'needs' => 'jquery.ui.core', |
190 | | - 'themes' => array( |
| 188 | + 'scripts' => 'resources/jquery/ui/jquery.ui.tabs.js', |
| 189 | + 'dependencies' => 'jquery.ui.core', |
| 190 | + 'skinStyles' => array( |
191 | 191 | 'default' => 'resources/jquery/ui/themes/default/jquery.ui.tabs.css', |
192 | 192 | 'vector' => 'resources/jquery/ui/themes/vector/jquery.ui.tabs.css', |
193 | 193 | ), |
194 | 194 | ), |
195 | 195 | // Effects |
196 | 196 | 'jquery.effects.core' => array( |
197 | | - 'script' => 'resources/jquery/effects/jquery.effects.core.js', |
198 | | - 'needs' => 'jquery', |
| 197 | + 'scripts' => 'resources/jquery/effects/jquery.effects.core.js', |
| 198 | + 'dependencies' => 'jquery', |
199 | 199 | ), |
200 | 200 | 'jquery.effects.blind' => array( |
201 | | - 'script' => 'resources/jquery/effects/jquery.effects.blind.js', |
202 | | - 'needs' => 'jquery.effects.core', |
| 201 | + 'scripts' => 'resources/jquery/effects/jquery.effects.blind.js', |
| 202 | + 'dependencies' => 'jquery.effects.core', |
203 | 203 | ), |
204 | 204 | 'jquery.effects.bounce' => array( |
205 | | - 'script' => 'resources/jquery/effects/jquery.effects.bounce.js', |
206 | | - 'needs' => 'jquery.effects.core', |
| 205 | + 'scripts' => 'resources/jquery/effects/jquery.effects.bounce.js', |
| 206 | + 'dependencies' => 'jquery.effects.core', |
207 | 207 | ), |
208 | 208 | 'jquery.effects.clip' => array( |
209 | | - 'script' => 'resources/jquery/effects/jquery.effects.clip.js', |
210 | | - 'needs' => 'jquery.effects.core', |
| 209 | + 'scripts' => 'resources/jquery/effects/jquery.effects.clip.js', |
| 210 | + 'dependencies' => 'jquery.effects.core', |
211 | 211 | ), |
212 | 212 | 'jquery.effects.drop' => array( |
213 | | - 'script' => 'resources/jquery/effects/jquery.effects.drop.js', |
214 | | - 'needs' => 'jquery.effects.core', |
| 213 | + 'scripts' => 'resources/jquery/effects/jquery.effects.drop.js', |
| 214 | + 'dependencies' => 'jquery.effects.core', |
215 | 215 | ), |
216 | 216 | 'jquery.effects.explode' => array( |
217 | | - 'script' => 'resources/jquery/effects/jquery.effects.explode.js', |
218 | | - 'needs' => 'jquery.effects.core', |
| 217 | + 'scripts' => 'resources/jquery/effects/jquery.effects.explode.js', |
| 218 | + 'dependencies' => 'jquery.effects.core', |
219 | 219 | ), |
220 | 220 | 'jquery.effects.fold' => array( |
221 | | - 'script' => 'resources/jquery/effects/jquery.effects.fold.js', |
222 | | - 'needs' => 'jquery.effects.core', |
| 221 | + 'scripts' => 'resources/jquery/effects/jquery.effects.fold.js', |
| 222 | + 'dependencies' => 'jquery.effects.core', |
223 | 223 | ), |
224 | 224 | 'jquery.effects.highlight' => array( |
225 | | - 'script' => 'resources/jquery/effects/jquery.effects.highlight.js', |
226 | | - 'needs' => 'jquery.effects.core', |
| 225 | + 'scripts' => 'resources/jquery/effects/jquery.effects.highlight.js', |
| 226 | + 'dependencies' => 'jquery.effects.core', |
227 | 227 | ), |
228 | 228 | 'jquery.effects.pulsate' => array( |
229 | | - 'script' => 'resources/jquery/effects/jquery.effects.pulsate.js', |
230 | | - 'needs' => 'jquery.effects.core', |
| 229 | + 'scripts' => 'resources/jquery/effects/jquery.effects.pulsate.js', |
| 230 | + 'dependencies' => 'jquery.effects.core', |
231 | 231 | ), |
232 | 232 | 'jquery.effects.scale' => array( |
233 | | - 'script' => 'resources/jquery/effects/jquery.effects.scale.js', |
234 | | - 'needs' => 'jquery.effects.core', |
| 233 | + 'scripts' => 'resources/jquery/effects/jquery.effects.scale.js', |
| 234 | + 'dependencies' => 'jquery.effects.core', |
235 | 235 | ), |
236 | 236 | 'jquery.effects.shake' => array( |
237 | | - 'script' => 'resources/jquery/effects/jquery.effects.shake.js', |
238 | | - 'needs' => 'jquery.effects.core', |
| 237 | + 'scripts' => 'resources/jquery/effects/jquery.effects.shake.js', |
| 238 | + 'dependencies' => 'jquery.effects.core', |
239 | 239 | ), |
240 | 240 | 'jquery.effects.slide' => array( |
241 | | - 'script' => 'resources/jquery/effects/jquery.effects.slide.js', |
242 | | - 'needs' => 'jquery.effects.core', |
| 241 | + 'scripts' => 'resources/jquery/effects/jquery.effects.slide.js', |
| 242 | + 'dependencies' => 'jquery.effects.core', |
243 | 243 | ), |
244 | 244 | 'jquery.effects.transfer' => array( |
245 | | - 'script' => 'resources/jquery/effects/jquery.effects.transfer.js', |
246 | | - 'needs' => 'jquery.effects.core', |
| 245 | + 'scripts' => 'resources/jquery/effects/jquery.effects.transfer.js', |
| 246 | + 'dependencies' => 'jquery.effects.core', |
247 | 247 | ), |
248 | 248 | |
249 | 249 | /* MediaWiki */ |
250 | 250 | |
251 | 251 | 'mediawiki' => array( |
252 | | - 'script' => 'resources/mediawiki/mediawiki.js', |
253 | | - 'debug' => 'resources/mediawiki/mediawiki.log.js', |
| 252 | + 'scripts' => 'resources/mediawiki/mediawiki.js', |
| 253 | + 'debugScripts' => 'resources/mediawiki/mediawiki.log.js', |
254 | 254 | 'raw' => true, |
255 | 255 | ), |
256 | 256 | |
257 | 257 | /* MediaWiki Legacy */ |
258 | 258 | |
259 | 259 | 'mediawiki.legacy.ajax' => array( |
260 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.ajax.js', |
261 | | - 'needs' => 'mediawiki', |
| 260 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.ajax.js', |
| 261 | + 'dependencies' => 'mediawiki', |
262 | 262 | ), |
263 | 263 | 'mediawiki.legacy.ajaxwatch' => array( |
264 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.ajaxwatch.js', |
265 | | - 'needs' => 'mediawiki', |
| 264 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.ajaxwatch.js', |
| 265 | + 'dependencies' => 'mediawiki', |
266 | 266 | ), |
267 | 267 | 'mediawiki.legacy.block' => array( |
268 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.block.js', |
269 | | - 'needs' => 'mediawiki', |
| 268 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.block.js', |
| 269 | + 'dependencies' => 'mediawiki', |
270 | 270 | ), |
271 | 271 | 'mediawiki.legacy.changepassword' => array( |
272 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.changepassword.js', |
273 | | - 'needs' => 'mediawiki', |
| 272 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.changepassword.js', |
| 273 | + 'dependencies' => 'mediawiki', |
274 | 274 | ), |
275 | 275 | 'mediawiki.legacy.edit' => array( |
276 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.edit.js', |
277 | | - 'needs' => 'mediawiki', |
| 276 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.edit.js', |
| 277 | + 'dependencies' => 'mediawiki', |
278 | 278 | ), |
279 | 279 | 'mediawiki.legacy.enhancedchanges' => array( |
280 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.enhancedchanges.js', |
281 | | - 'needs' => 'mediawiki', |
| 280 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.enhancedchanges.js', |
| 281 | + 'dependencies' => 'mediawiki', |
282 | 282 | ), |
283 | 283 | 'mediawiki.legacy.history' => array( |
284 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.history.js', |
285 | | - 'needs' => 'mediawiki', |
| 284 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.history.js', |
| 285 | + 'dependencies' => 'mediawiki', |
286 | 286 | ), |
287 | 287 | 'mediawiki.legacy.htmlform' => array( |
288 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.htmlform.js', |
289 | | - 'needs' => 'mediawiki', |
| 288 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.htmlform.js', |
| 289 | + 'dependencies' => 'mediawiki', |
290 | 290 | ), |
291 | 291 | 'mediawiki.legacy.IEFixes' => array( |
292 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.IEFixes.js', |
293 | | - 'needs' => 'mediawiki', |
| 292 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.IEFixes.js', |
| 293 | + 'dependencies' => 'mediawiki', |
294 | 294 | ), |
295 | 295 | 'mediawiki.legacy.metadata' => array( |
296 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.metadata.js', |
297 | | - 'needs' => 'mediawiki', |
| 296 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.metadata.js', |
| 297 | + 'dependencies' => 'mediawiki', |
298 | 298 | ), |
299 | 299 | 'mediawiki.legacy.mwsuggest' => array( |
300 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.mwsuggest.js', |
301 | | - 'needs' => 'mediawiki', |
| 300 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.mwsuggest.js', |
| 301 | + 'dependencies' => 'mediawiki', |
302 | 302 | ), |
303 | 303 | 'mediawiki.legacy.prefs' => array( |
304 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.prefs.js', |
305 | | - 'needs' => 'mediawiki', |
| 304 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.prefs.js', |
| 305 | + 'dependencies' => 'mediawiki', |
306 | 306 | ), |
307 | 307 | 'mediawiki.legacy.preview' => array( |
308 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.preview.js', |
309 | | - 'needs' => 'mediawiki', |
| 308 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.preview.js', |
| 309 | + 'dependencies' => 'mediawiki', |
310 | 310 | ), |
311 | 311 | 'mediawiki.legacy.protect' => array( |
312 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.protect.js', |
313 | | - 'needs' => 'mediawiki', |
| 312 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.protect.js', |
| 313 | + 'dependencies' => 'mediawiki', |
314 | 314 | ), |
315 | 315 | 'mediawiki.legacy.rightclickedit' => array( |
316 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.rightclickedit.js', |
317 | | - 'needs' => 'mediawiki', |
| 316 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.rightclickedit.js', |
| 317 | + 'dependencies' => 'mediawiki', |
318 | 318 | ), |
319 | 319 | 'mediawiki.legacy.search' => array( |
320 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.search.js', |
321 | | - 'needs' => 'mediawiki', |
| 320 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.search.js', |
| 321 | + 'dependencies' => 'mediawiki', |
322 | 322 | ), |
323 | 323 | 'mediawiki.legacy.upload' => array( |
324 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.upload.js', |
325 | | - 'needs' => 'mediawiki', |
| 324 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.upload.js', |
| 325 | + 'dependencies' => 'mediawiki', |
326 | 326 | ), |
327 | 327 | 'mediawiki.legacy.wikibits' => array( |
328 | | - 'script' => 'resources/mediawiki/legacy/mediawiki.legacy.wikibits.js', |
329 | | - 'needs' => 'mediawiki', |
| 328 | + 'scripts' => 'resources/mediawiki/legacy/mediawiki.legacy.wikibits.js', |
| 329 | + 'dependencies' => 'mediawiki', |
330 | 330 | 'messages' => array( 'showtoc', 'hidetoc' ), |
331 | 331 | ), |
332 | 332 | |
333 | 333 | /* MediaWiki Utilities */ |
334 | 334 | |
335 | 335 | 'mediawiki.utilities.client' => array( |
336 | | - 'script' => 'resources/mediawiki/utilities/mediawiki.utilities.client.js', |
| 336 | + 'scripts' => 'resources/mediawiki/utilities/mediawiki.utilities.client.js', |
337 | 337 | ), |
338 | 338 | |
339 | 339 | /* MediaWiki Views */ |
340 | 340 | |
341 | 341 | 'mediawiki.views.diff' => array( |
342 | | - 'script' => 'resources/mediawiki/views/mediawiki.views.diff.js', |
| 342 | + 'scripts' => 'resources/mediawiki/views/mediawiki.views.diff.js', |
343 | 343 | ), |
344 | 344 | 'mediawiki.views.install' => array( |
345 | | - 'script' => 'resources/mediawiki/views/mediawiki.views.install.js', |
| 345 | + 'scripts' => 'resources/mediawiki/views/mediawiki.views.install.js', |
346 | 346 | ), |
347 | 347 | |
348 | 348 | /* Test */ |
349 | 349 | |
350 | 350 | 'test' => array( |
351 | | - 'script' => 'resources/test/test.js', |
352 | | - 'needs' => 'foo', |
353 | | - 'style' => 'resources/test/test.css', |
| 351 | + 'scripts' => 'resources/test/test.js', |
| 352 | + 'dependencies' => 'foo', |
| 353 | + 'styles' => 'resources/test/test.css', |
354 | 354 | ), |
355 | 355 | 'foo' => array( |
356 | | - 'script' => 'resources/test/foo.js', |
357 | | - 'needs' => 'bar', |
358 | | - 'style' => 'resources/test/foo.css', |
| 356 | + 'scripts' => 'resources/test/foo.js', |
| 357 | + 'dependencies' => 'bar', |
| 358 | + 'styles' => 'resources/test/foo.css', |
359 | 359 | 'messages' => array( 'january', 'february', 'march', 'april', 'may', 'june' ), |
360 | 360 | ), |
361 | 361 | 'bar' => array( |
362 | | - 'script' => 'resources/test/bar.js', |
363 | | - 'needs' => 'buz', |
364 | | - 'style' => 'resources/test/bar.css', |
| 362 | + 'scripts' => 'resources/test/bar.js', |
| 363 | + 'dependencies' => 'buz', |
| 364 | + 'styles' => 'resources/test/bar.css', |
365 | 365 | 'messages' => array( 'july', 'august', 'september', 'october', 'november', 'december' ), |
366 | 366 | ), |
367 | 367 | 'buz' => array( |
368 | | - 'script' => 'resources/test/buz.js', |
369 | | - 'needs' => 'baz', |
370 | | - 'style' => 'resources/test/buz.css', |
| 368 | + 'scripts' => 'resources/test/buz.js', |
| 369 | + 'dependencies' => 'baz', |
| 370 | + 'styles' => 'resources/test/buz.css', |
371 | 371 | ), |
372 | 372 | 'baz' => array( |
373 | | - 'script' => 'resources/test/baz.js', |
374 | | - 'style' => 'resources/test/baz.css', |
| 373 | + 'scripts' => 'resources/test/baz.js', |
| 374 | + 'styles' => 'resources/test/baz.css', |
375 | 375 | ), |
376 | | -) ); |
\ No newline at end of file |
| 376 | +) ); |