-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.js
83 lines (76 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
Package.describe({
name: 'omega:custom-protocol',
version: '4.0.2',
summary: 'Send custom data on the Meteor\'s defaults websocket connection.',
git: 'https://github.com/wojtkowiak/meteor-custom-protocol',
documentation: 'README.md'
});
Package.registerBuildPlugin({
name: 'custom-protocol-indexer',
use: ['ecmascript', 'underscore'],
sources: ['src/buildPlugins/indexer.js']
});
Package.registerBuildPlugin({
name: 'custom-protocol-index-reader',
use: ['ecmascript', 'underscore'],
sources: ['src/buildPlugins/reader.js']
});
Package.onUse(function onUse(api) {
api.versionsFrom('1.4');
api.use('isobuild:[email protected]');
api.use('ecmascript');
api.use('underscore');
api.use('omega:direct-stream-access@=4.0.3');
api.addFiles([
'src/lib/index/index.protocols.index.js',
'src/lib/error.js',
'src/lib/core.js',
'src/lib/common.js'
]);
api.addFiles('src/CustomProtocol.client.js', 'client');
api.addFiles([
'src/CustomProtocol.server.js',
'src/buildPlugins/indexer.js',
'src/buildPlugins/reader.js'
], 'server');
api.addFiles([
'src/utils/DynamicMessagesProtocol.js'
]);
api.export('CustomProtocolCore');
api.export('CustomProtocol');
api.export('DynamicMessagesProtocol');
api.export('JsonProtocol');
api.export(
[
'CustomProtocolIndexer',
'CustomProtocolIndexReader',
'CustomProtocolCoreClass',
'CustomProtocolsIndex',
'CustomProtocolError',
'CustomProtocolCommon'
],
['client', 'server'],
{ testOnly: true }
);
});
Package.onTest(function onTest(api) {
Npm.depends({
'ultimate-chai': '4.1.0',
sinon: '4.3.0'
});
api.use('ecmascript');
api.use('omega:custom-protocol');
api.use('cultofcoders:mocha');
api.addFiles([
'src/buildPlugins/tests/indexer.test.js',
'src/buildPlugins/tests/reader.test.js',
'src/lib/tests/core.test.js',
'src/lib/tests/common.test.js',
'src/tests/CustomProtocol.server.test.js',
'src/utils/tests/DynamicMessagesProtocol.test.js'
], ['server']);
api.addFiles([
'src/tests/CustomProtocol.client.test.js',
'src/utils/tests/DynamicMessagesProtocol.test.js'
], ['client']);
});