-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
60 lines (54 loc) · 1.99 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
55
56
57
58
59
60
Package.describe({
name: 'thebarty:denormalization',
version: '0.0.1',
// Brief, one-line summary of the package.
summary: 'This package makes denormalization easy for you: Simply define your denormalizations within your [SimpleSchema](https://github.com/aldeed/meteor-simple-schema) and let it do all the magic. "One-to-many"-, "many-to-one"- and "many-to-many"-relations are supported out-of-the-box.',
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/thebarty/meteor-denormalization',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md'
})
Npm.depends({
'underscore': '1.8.3',
'underscore.string': '3.3.4',
})
Package.onUse(function(api) {
api.versionsFrom('1.3.5.1')
api.use([
'check',
'ecmascript',
// 'aldeed:[email protected]', // TODO: REMOVE
'aldeed:[email protected]', // todo check minimal required version
'aldeed:[email protected]', // todo check minimal required version
'matb33:[email protected]', // todo check minimal required version
])
api.mainModule('denormalization.js')
})
Package.onTest(function(api) {
api.use('thebarty:denormalization')
// You should also include any packages you need to use in the test code
api.use([
'check',
'ecmascript',
// 'aldeed:[email protected]', // TODO: REMOVE
'aldeed:collection2',
'practicalmeteor:mocha',
])
api.addFiles([
'./tests-relation-many-to-many.tests.js',
'./tests-relation-many-to-one.tests.js',
'./tests-relation-one-to-many.tests.js',
'./tests-relation-one-to-one.tests.js',
], 'server')
// Finally add an entry point for tests
api.mainModule('denormalization.tests.js')
})