-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
54 lines (49 loc) · 1.19 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
52
53
54
/* globals Package */
Package.describe({
name: 'reywood:publish-composite',
summary: 'Publish a set of related documents from multiple collections with a reactive join.',
version: '1.8.4',
git: 'https://github.com/Meteor-Community-Packages/meteor-publish-composite'
})
Npm.depends({
"lodash.isequal": "4.5.0"
})
Package.onUse((api) => {
api.versionsFrom(['1.8.3', '2.8.1', '3.0-alpha.15'])
api.use([
'check',
'ecmascript',
'modules',
'logging'
], ['server'])
api.use('zodern:types@1.0.10')
api.mainModule('lib/publish_composite.js', 'server')
api.addFiles([
'lib/doc_ref_counter.js',
'lib/logging.js',
'lib/publication.js',
'lib/subscription.js'
], 'server')
api.export([
'enableDebugLogging',
'publishComposite'
], 'server')
})
Package.onTest((api) => {
api.use([
'ecmascript',
'modules'
], ['client', 'server'])
api.use([
'cultofcoders:mocha',
'practicalmeteor:chai'
], 'client')
api.use([
'reywood:publish-composite',
'mongo',
'underscore'
], 'server')
api.addFiles('tests/common.js', ['client', 'server'])
api.addFiles('tests/client.js', 'client')
api.addFiles('tests/server.js', 'server')
})