-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.js
58 lines (47 loc) · 1.02 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
Package.describe({
summary: 'Domain Driven Design patterns for Space applications.',
name: 'space:domain',
version: '0.2.1',
git: 'https://github.com/meteor-space/domain.git'
});
Package.onUse(function(api) {
api.versionsFrom('1.2.0.1');
api.use([
'check',
'underscore',
'ecmascript',
'space:[email protected]',
'space:[email protected]'
]);
// SHARED
api.addFiles([
'source/namespace.js',
'source/value-object.js',
'source/command.js'
]);
// SERVER ONLY
api.addFiles([
'source/server/entity.js',
'source/server/event.js',
'source/server/exception.js'
], 'server');
});
Package.onTest(function(api) {
api.use([
'check',
'ecmascript',
'ejson',
'space:[email protected]',
'space:domain',
'practicalmeteor:[email protected]'
]);
api.addFiles([
'tests/value-object.tests.js',
'tests/command.tests.js'
]);
api.addFiles([
'tests/server/entity.tests.js',
'tests/server/event.tests.js',
'tests/server/exception.tests.js'
], 'server');
});