-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
48 lines (37 loc) · 1.07 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
/* global Package */
Package.describe({
name: 'matb33:collection-hooks',
summary: 'Extends Mongo.Collection with before/after hooks for insert/update/upsert/remove/find/findOne',
version: '1.3.0',
git: 'https://github.com/Meteor-Community-Packages/meteor-collection-hooks'
})
Package.onUse(function (api) {
api.versionsFrom(['2.3', '2.8.1', '3.0-alpha.15'])
api.use([
'mongo',
'tracker',
'ejson',
'minimongo',
'ecmascript'
])
api.use('zodern:[email protected]', '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) {
// var isTravisCI = process && process.env && process.env.TRAVIS
api.versionsFrom(['1.12', '2.3'])
api.use([
'matb33:collection-hooks',
'accounts-base',
'accounts-password',
'mongo',
'tinytest',
'test-helpers',
'ecmascript'
])
api.mainModule('tests/client/main.js', 'client')
api.mainModule('tests/server/main.js', 'server')
})