-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.js
42 lines (37 loc) · 1.33 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
Package.describe({
name: 'omega:direct-stream-access',
version: '4.0.3',
summary: 'Provides API to directly use Meteor\'s SockJS stream.',
git: 'https://github.com/wojtkowiak/meteor-direct-stream-access',
documentation: 'README.md'
});
Package.onUse(function onUse(api) {
api.versionsFrom('1.4');
api.use('ecmascript');
api.use(['ddp-common'], 'client');
api.use(['underscore'], 'server');
api.addFiles(['src/lib/DirectStreamAccess.js']);
api.addFiles(['src/DirectStreamAccess.client.js'], 'client');
api.addFiles(['src/DirectStreamAccess.server.js'], 'server');
api.export('DirectStreamAccess', ['client', 'server'], { testOnly: true });
api.addFiles('namespace.js');
});
Package.onTest(function onTest(api) {
Npm.depends({
'ultimate-chai': '4.1.0'
});
api.use('ecmascript');
api.use('ddp-common');
api.use('cultofcoders:mocha');
api.use('test-helpers');
api.use('accounts-base');
api.use('accounts-password');
api.use('omega:direct-stream-access');
api.addFiles(['src/tests/setup.client.js'], 'client');
api.addFiles(['src/tests/setup.server.js'], 'server');
api.addFiles([
'src/tests/directStreamAccess.test.js',
'src/tests/directStreamAccess.server.test.js',
'src/tests/directStreamAccess.client.test.js'
]);
});