-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpackage.js
44 lines (38 loc) · 1.18 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({
"summary": "Extends Mongo.Collection with behaviour patterns using matb33:collection-hooks",
"version": "0.3.0",
"git": "https://github.com/Sewdn/meteor-collection-behaviours.git",
"name": "sewdn:collection-behaviours"
});
var both = ["client", "server"];
Package.onUse = Package.onUse || Package.on_use; // backwards-compat
Package.onTest = Package.onTest || Package.on_test; // backwards-compat
Package.onUse(function (api, where) {
api.addFiles = api.addFiles || api.add_files; // backwards-compat
if(api.versionsFrom) {
api.versionsFrom("1.1.0.2");
api.use([
'mongo',
'underscore',
'lai:[email protected]',
'matb33:[email protected]'
], both);
} else {
api.use([
'mongo-livedata',
'underscore',
'lai:collection-extensions',
'matb33:collection-hooks'
], both);
}
api.addFiles([
"collection-behaviours.js",
"behaviours/timestampable.js",
"behaviours/softRemovable.js",
"behaviours/loggable.js",
"behaviours/autoIncrementable.js",
"behaviours/sortable.js",
"behaviours/trackable.js"
], both);
api.export("CollectionBehaviours");
});