-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpackage.js
56 lines (52 loc) · 1.76 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
Package.describe({
name: 'deanius:promise',
version: '3.1.6',
summary: 'Utilities for Promise-based wrappers, method calls, helpers and HTTP in Meteor',
git: 'https://github.com/deanius/meteor-promise',
documentation: 'README.md'
});
Npm.depends({
'co': '4.6.0'
});
Package.onUse(function(api) {
api.versionsFrom(['1.6.1', '2.3', '3.0-beta.0']);
api.use('ecmascript');
api.use('promise');
api.imply('promise');
api.use('reactive-var');
api.use('ddp');
api.use('http');
api.use('tracker');
api.use('underscore');
api.addFiles('client/denodeifyFunctions.js', 'client');
api.addFiles('client/reactivePromise.js', 'client');
api.addFiles('client/reactifyPromise.js', 'client');
api.addFiles('client/runAsync.browserify.js', 'client');
api.export('ReactivePromise', 'client');
api.export('ReactifyPromise', 'client');
api.export('PromisifyReactiveVar', 'client');
});
// meteor test-packages deanius:promise --driver-package test-in-console
Package.onTest(function(api) {
api.use('tinytest');
api.use('reactive-var');
api.use('tracker');
api.use('mongo');
api.use('ejson');
api.use('ecmascript');
api.use('deanius:promise');
api.use('browser-policy');
api.imply('browser-policy');
api.imply('http');
api.imply('ejson');
api.imply('underscore');
api.addFiles('tests/support.js', ['client', 'server']);
api.addFiles('tests/identity-tests.js', 'client');
api.addFiles('tests/chaining-tests.js', 'client');
api.addFiles('tests/error-tests.js','client');
api.addFiles('tests/call-wo-callback.js', 'client');
api.addFiles('tests/reactive-promise.js', 'client');
api.addFiles('tests/promise-wrapped.js', 'client');
api.addFiles('tests/subscription-ready.js', 'client');
api.addFiles('tests/run-async.js', 'client');
});