-
-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathpackage.js
49 lines (39 loc) · 1.05 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
/* global Package */
Package.describe({
name: 'matb33:collection-hooks',
summary: 'Extends Mongo.Collection with before/after hooks for insert/update/upsert/remove/find/findOne',
version: '2.0.0',
git: 'https://github.com/Meteor-Community-Packages/meteor-collection-hooks'
})
Package.onUse(function (api) {
api.versionsFrom(['3.0.2', '3.1'])
api.use([
'mongo',
'tracker',
'ejson',
'minimongo',
'ecmascript'
])
api.use('zodern:types@1.0.13', 'server')
api.use(['accounts-base'], ['client', 'server'], { weak: true })
api.mainModule('client.js', 'client')
api.mainModule('server.js', 'server')
api.export('CollectionHooks')
})
Package.onTest(function (api) {
api.versionsFrom(['3.0.2'])
api.use([
'matb33:collection-hooks',
'accounts-base',
'accounts-password',
'mongo',
'ddp',
'tinytest',
'test-helpers',
'ecmascript',
'jquery',
'dburles:mongo-collection-instances'
])
api.mainModule('tests/client/main.js', 'client')
api.mainModule('tests/server/main.js', 'server')
})