-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.js
39 lines (33 loc) · 1.58 KB
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Package.describe({
summary: "mw stuff for mpedia: categories, {{parser}}, [[links]], tables, etc"
});
Package.on_use(function (api) {
api.use('standard-app-packages', ['client', 'server']);
api.use('sitemaps', 'server');
api.use('extensions', ['client', 'server']);
api.use(['jquery', 'bootstrap', 'handlebars', 'SyntaxHighlighter'], 'client');
// Extensions MUST include this line if they include .html files
api.use('templating', 'client');
// client files (js, html, css)
api.add_files(['lib/mediawiki.css', 'lib/categories/categories.css',
'lib/categories/categories.html', 'lib/special/special.html',
'lib/tables/tables.css', 'lib/links/links.html', 'lib/links/links.css',
'lib/preview/preview.css', 'lib/toc.js', 'lib/allpages/allpages.html',
'lib/recentchanges/recentchanges.html', 'lib/mediawiki.html',
'lib/tags.js', 'lib/search/search.html', 'lib/search/search.css',
'lib/read2/read2.html', 'lib/read2/read2-client.js', 'lib/read2/read2.css'],
'client');
// client files (images)
api.add_files([
'lib/links/img/external-link-ltr-icon.png',
'lib/links/img/lock-icon.png'
], 'client');
// common files (js on server+client)
api.add_files(['lib/mediawiki.js', 'lib/categories/categories.js', 'lib/links/links.js',
'lib/cite.js', 'lib/parserFuncs.js', 'lib/special/special.js', 'lib/tables/tables.js',
'lib/preview/preview.js', 'lib/allpages/allpages.js', 'lib/recentchanges/recentchanges.js',
'lib/namespaces.js', 'lib/search/search.js'],
['client', 'server']);
// server only files
api.add_files(['lib/read2/read2-server.js'], 'server');
});