forked from Meteor-Community-Packages/meteor-autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
44 lines (35 loc) · 1.13 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
Package.describe({
name: "mizzao:autocomplete",
summary: "Client/server autocompletion designed for Meteor's collections and reactivity",
version: "0.5.1",
git: "https://github.com/mizzao/meteor-autocomplete.git"
});
Package.onUse(function (api) {
api.versionsFrom("1.0");
api.use(['blaze', 'templating', 'jquery', 'check', 'tracker'], 'client');
api.use(['coffeescript', 'underscore']); // both
api.use(['mongo', 'ddp']);
api.use("dandv:caret-position@2.1.1", 'client');
// Our files
api.addFiles([
'autocomplete.css',
'inputs.html',
'autocomplete-client.coffee',
'templates.coffee'
], 'client');
api.addFiles([
'autocomplete-server.coffee'
], 'server');
api.export('Autocomplete', 'server');
api.export('AutocompleteTest', {testOnly: true});
});
Package.onTest(function(api) {
api.use("mizzao:autocomplete");
api.use('coffeescript');
api.use('mongo');
api.use('tinytest');
api.addFiles('tests/rule_tests.coffee', 'client');
api.addFiles('tests/regex_tests.coffee', 'client');
api.addFiles('tests/param_tests.coffee', 'client');
api.addFiles('tests/security_tests.coffee');
});