-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.js
51 lines (48 loc) · 1.66 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
Package.describe({
name: 'thebarty:denormalized-views',
version: '0.0.11',
summary: 'Easily create "readonly" denormalized mongo-"views" (collections), p.e. for searchable tables',
git: 'https://github.com/thebarty/meteor-denormalized-views',
documentation: 'README.md',
});
Npm.depends({
'underscore': '1.8.3',
'underscore.string': '3.3.4',
})
Package.onUse(function(api) {
api.versionsFrom('1.3.1'); // todo: test if we can set versions down
api.use([
'check',
'ecmascript',
'aldeed:[email protected]', // todo: test if we can set versions down
'matb33:[email protected]', // needed due to https://github.com/matb33/meteor-collection-hooks/issues/207
])
// TODO add code ONLY to server without crashing production,
// BUT be CAREFUL: a simple `], 'server')` will crash the client when running
// meteor in production (or via `meteor --production`)
// see https://github.com/thebarty/meteor-denormalized-views/issues/3
api.mainModule('denormalized-views.js');
});
Package.onTest(function(api) {
api.use([
'check',
'ecmascript',
'tinytest',
'test-helpers',
'ejson',
'ordered-dict',
'random',
'deps',
'minimongo',
'aldeed:simple-schema',
'aldeed:[email protected]',
'matb33:collection-hooks',
'thebarty:denormalized-views',
'cultofcoders:mocha',
])
// TODO add code ONLY to server without crashing production,
// BUT be CAREFUL: a simple `], 'server')` will crash the client when running
// meteor in production (or via `meteor --production`)
// see https://github.com/thebarty/meteor-denormalized-views/issues/3
api.mainModule('denormalized-views.tests.js');
});