forked from JackAdams/meteor-transactions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
44 lines (33 loc) · 1.26 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
Package.describe({
name: "babrahams:transactions",
summary: "App level transactions for Meteor + Mongo",
version: "0.8.5",
git: "https://github.com/jackadams/meteor-transactions.git"
});
Package.onUse(function (api, where) {
api.versionsFrom("1.0");
// Meteor core
api.use(['underscore', 'mongo', 'accounts-base', 'random', 'ejson', 'check']);
api.imply('mongo');
// Third party
api.use('aldeed:[email protected]', ['client', 'server'], {weak: true});
api.use('dburles:[email protected]');
api.use('socialize:[email protected]');
// Transactions package
api.add_files('lib/transactions-common.js', ['client', 'server']);
api.add_files('lib/transactions-server.js', 'server');
if (api.export) {
api.export('tx');
}
});
Package.onTest(function (api) {
api.use('sanjo:[email protected]');
api.use('babrahams:transactions');
api.addFiles('tests/both/package-spec.js');
api.addFiles('tests/server/unit-tests.js', 'server');
// run these with the velocity html reporter
// from the /testapp directory
// using the following on the command line:
// VELOCITY_TEST_PACKAGES=1 meteor test-packages --driver-package velocity:html-reporter babrahams:transactions -p 4050
// then navigate to localhost:4050
});