-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.js
40 lines (34 loc) · 1.08 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
/* eslint-env meteor */
Package.describe({
summary: 'Insert multiple documents to mongo collection with one db call.',
version: '1.3.0',
name: 'mikowals:batch-insert',
git: 'https://github.com/mikowals/batch-insert.git'
})
Npm.strip({
mongodb: ['test/']
})
Package.onUse = Package.onUse || Package.on_use // backwards-compat
Package.onTest = Package.onTest || Package.on_test // backwards-compat
Package.onUse(function (api) {
api.addFiles = api.addFiles || api.add_files // backwards-compat
api.versionsFrom('METEOR@1.10.2')
api.use('npm-mongo@3.7.0 || 4.3.1-rc260.2', 'server')
api.use(['ecmascript', 'mongo', 'ddp', 'ejson', 'underscore', 'check', 'lai:collection-extensions'])
api.use('insecure', { weak: true })
api.imply(['mongo', 'ddp'])
api.addFiles('batch-insert-server.js', 'server')
api.addFiles('batch-insert-common.js')
})
Package.onTest(function (api) {
api.use([
'ecmascript',
'meteortesting:mocha',
'random',
'mongo',
'accounts-base',
'autopublish',
'mikowals:batch-insert'
])
api.addFiles('tests/batch-insert.test.js')
})