forked from matteodem/meteor-easy-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
executable file
·51 lines (41 loc) · 1.37 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
40
41
42
43
44
45
46
47
48
49
50
51
Package.describe({
name: 'matteodem:easy-search',
summary: "Easy-to-use search with Blaze Components (+ Elastic Search support)",
version: "1.6.1",
git: "https://github.com/matteodem/meteor-easy-search.git"
});
Npm.depends({
'elasticsearch': '5.0.0'
});
Package.on_use(function (api) {
if (api.versionsFrom) {
api.versionsFrom('[email protected]');
}
api.use(['underscore', 'livedata', 'mongo-livedata', 'meteor',
'meteor-platform', 'less', 'meteorhacks:[email protected]'], ['client', 'server']);
api.use(['templating', 'ui', 'jquery'], 'client');
api.add_files(['lib/easy-search-common.js', 'lib/easy-search-convenience.js']);
api.add_files([
'lib/searchers/mongo.js',
'lib/easy-search-client.js',
'lib/components/easy-search-components.html',
'lib/components/easy-search-components.js',
'lib/components/easy-search-components.less'
], 'client');
api.add_files([
'lib/searchers/mongo.js',
'lib/easy-search-server.js',
'lib/searchers/elastic-search.js'
], 'server');
api.export('EasySearch');
});
Package.on_test(function (api) {
if (api.versionsFrom) {
api.use('matteodem:easy-search');
api.use('[email protected]');
} else {
api.use(['tinytest', 'easy-search']);
}
api.add_files(['tests/javascript-api-tests.js']);
api.add_files(['tests/component-api-tests.js', 'tests/components-tests.js'], 'client');
});