forked from jagi/meteor-astronomy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
103 lines (95 loc) · 2.63 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Package.describe({
name: 'jagi:astronomy',
version: '2.1.0',
summary: 'Model layer for Meteor',
git: 'https://github.com/jagi/meteor-astronomy.git'
});
Npm.depends({
lodash: '4.11.1'
});
Package.onUse(function(api) {
api.versionsFrom('1.3');
api.use([
'ecmascript',
'es5-shim',
'ddp',
'mongo',
'check',
'minimongo',
'ejson',
'mdg:validation-error@0.5.1'
], ['client', 'server']);
api.mainModule('lib/main.js', ['client', 'server']);
// For backward compatibility.
api.export('Astro', ['client', 'server']);
});
////////////////////////////////////////////////////////////////////////////////
Package.onTest(function(api) {
api.use([
'tinytest',
'ecmascript',
'es5-shim',
'insecure',
'mongo',
'ejson',
'jagi:astronomy@2.0.1'
], ['client', 'server']);
api.addFiles('test/utils.js', ['client', 'server']);
// Core.
api.addFiles([
'test/core/inherit.js',
'test/core/extend.js',
'test/core/state.js',
'test/core/ejson.js'
], ['client', 'server']);
// Modules.
// Modules - Behaviors.
api.addFiles([
'test/modules/behaviors/create.js',
'test/modules/behaviors/apply.js'
], ['client', 'server']);
// Modules - Validators.
api.addFiles([
'test/modules/validators/create.js',
'test/modules/validators/apply.js',
'test/modules/validators/validate.js',
'test/modules/validators/validate_callback.js'
], ['client', 'server']);
// Modules - Storage.
api.addFiles([
'test/modules/storage/init.js',
'test/modules/storage/type_field.js',
'test/modules/storage/transform.js',
'test/modules/storage/document_insert.js',
'test/modules/storage/document_update.js',
'test/modules/storage/document_remove.js',
'test/modules/storage/class_insert.js',
'test/modules/storage/class_update.js',
'test/modules/storage/class_remove.js',
'test/modules/storage/reload.js',
'test/modules/storage/copy.js',
], ['client', 'server']);
// Modules - Events.
api.addFiles([
'test/modules/events/order.js',
'test/modules/events/propagation.js',
'test/modules/events/cancelable.js'
], ['client', 'server']);
// Modules - Fields.
api.addFiles([
'test/modules/fields/definition.js',
'test/modules/fields/default.js',
'test/modules/fields/set.js',
'test/modules/fields/get.js',
'test/modules/fields/raw.js',
'test/modules/fields/optional.js'
], ['client', 'server']);
// Modules - Indexes.
api.addFiles([
// 'test/indexes/indexes_definition.js'
], 'server');
// Modules - Methods.
api.addFiles([
// 'test/methods/methods_definition.js'
], ['client', 'server']);
});