Repository navigation
Expand file tree
/
Copy pathpackage.js
More file actions
93 lines (81 loc) · 2.28 KB
/
Copy pathpackage.js
File metadata and controls
93 lines (81 loc) · 2.28 KB
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
Package.describe({
summary: 'Messaging infrastructure for Space applications.',
name: 'space:messaging',
version: '3.3.1',
git: 'https://github.com/meteor-space/messaging.git'
});
Package.onUse(function(api) {
api.versionsFrom('1.2.0.1');
api.use([
'coffeescript',
'underscore',
'check',
'ejson',
'ecmascript',
'space:base@4.1.3'
]);
// SHARED
api.addFiles([
'source/module.coffee',
'source/mixins/declarative-mappings.js',
'source/mixins/static-handlers.coffee',
'source/mixins/event-subscribing.js',
'source/mixins/event-publishing.coffee',
'source/mixins/command-sending.coffee',
'source/mixins/application-helpers.coffee',
'source/mixins/ejsonable.js',
'source/mixins/versionable.js'
]);
// SERVER
api.addFiles([
'source/mixins/command-handling.js'
], 'server');
// SHARED
api.addFiles([
'source/helpers.js',
'source/value-objects/guid.coffee',
'source/serializables/event.js',
'source/serializables/command.js',
'source/serializables/error.js',
'source/event_bus.coffee',
'source/command_bus.coffee',
'source/controller.js',
'source/tracker.coffee',
'source/publication.coffee',
'source/api.coffee'
]);
});
Package.onTest(function(api) {
api.use([
'coffeescript',
'underscore',
'check',
'ejson',
'mongo',
'ecmascript',
'space:testing@3.0.2',
'space:testing-messaging@3.0.1',
'space:messaging',
'practicalmeteor:munit@2.1.5'
]);
api.addFiles([
'tests/unit/serializable.unit.coffee',
'tests/unit/serializables/event.unit.coffee',
'tests/unit/serializables/command.unit.coffee',
'tests/unit/serializables/space-error.tests.js',
'tests/unit/event_bus.unit.coffee',
'tests/unit/command_bus.unit.coffee',
'tests/unit/api.unit.coffee',
'tests/unit/value-objects/guid.unit.coffee',
'tests/unit/helpers.tests.js',
'tests/unit/mixins/versionable.tests.js',
'tests/unit/mixins/event-subscribing.tests.js',
'tests/integration/controller_event_subscribing.js',
'tests/integration/test-app.js'
]);
api.addFiles([
'tests/integration/controller_command_handling.js',
'tests/integration/handling-api-messages.js',
'tests/unit/mixins/command-handling.tests.js'
], 'server');
});