-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.js
85 lines (75 loc) · 2.36 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
Package.describe({
summary: 'Event Sourcing Infrastructure for Meteor.',
name: 'space:event-sourcing',
version: '3.1.0',
git: 'https://github.com/meteor-space/event-sourcing.git'
});
Package.onUse(function(api) {
api.versionsFrom('1.2.0.1');
api.use([
'coffeescript',
'ejson',
'underscore',
'check',
'mongo',
'ecmascript',
'mikowals:[email protected]',
'fongandrew:[email protected]',
'space:[email protected]',
'space:[email protected]',
'space:[email protected]'
]);
// ========= server =========
api.addFiles([
'source/server/module-automation.js',
'source/server/module.coffee',
'source/server/errors.js',
// INFRASTRUCTURE
'source/server/infrastructure/repository.coffee',
'source/server/infrastructure/snapshot.js',
'source/server/infrastructure/snapshotter.coffee',
'source/server/infrastructure/commit_store.coffee',
'source/server/infrastructure/commit_publisher.coffee',
'source/server/infrastructure/projection.coffee',
'source/server/infrastructure/projection-rebuilder.coffee',
'source/server/infrastructure/router.coffee',
// DOMAIN
'source/server/domain/aggregate.coffee',
'source/server/domain/process.coffee'
], 'server');
});
Package.onTest(function(api) {
api.use([
'coffeescript',
'check',
'ejson',
'mongo',
'underscore',
'ecmascript',
'space:event-sourcing',
'space:[email protected]',
'space:[email protected]',
'space:[email protected]',
'practicalmeteor:[email protected]'
], 'server');
api.addFiles([
// HELPERS
'tests/test-application.js',
// DOMAIN
'tests/domain/aggregate.unit.coffee',
'tests/domain/process.unit.coffee',
// INFRASTRUCTURE
'tests/infrastructure/repository.unit.coffee',
'tests/infrastructure/commit_store.unit.coffee',
'tests/infrastructure/commit_publisher.unit.coffee',
'tests/infrastructure/router.unit.coffee',
'tests/infrastructure/snapshotter.unit.coffee',
'tests/infrastructure/snapshotting.tests.js',
'tests/infrastructure/projection.unit.coffee',
'tests/infrastructure/projection-rebuilder.tests.coffee',
'tests/infrastructure/messaging.tests.coffee',
'tests/infrastructure/handling-domain-errors.tests.js',
// INTEGRATION
'tests/integration/event-sourceable-dependency-injection.js'
], 'server');
});