forked from cult-of-coders/meteor-persistent-session
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
31 lines (27 loc) · 1.08 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
Package.describe({
name: "cultofcoders:persistent-session",
version: "0.4.5",
summary: "Persistently store Session data on the client",
git: "https://github.com/cult-of-coders/meteor-persistent-session"
});
Package.onUse(function(api) {
api.versionsFrom('0.9.1'),
api.use(['jquery', 'amplify', 'tracker', 'reactive-dict', 'session', 'underscore', 'ejson']);
// If `accounts-base` is loaded, we have to make sure that this package is
// loaded after `accounts-base` is, so we specify `weak: true` here
api.use('accounts-base', { weak: true });
api.addFiles('lib/persistent_session.js', 'client');
api.export('PersistentSession', ['client']);
});
Package.onTest(function (api) {
api.use("tinytest");
api.use("amplify");
api.use("random");
api.use("underscore");
api.use("reactive-dict"); // we only need this exposed for testing
api.use("u2622:persistent-session");
// expose for derping around in console
api.export('PersistentSession', ['client']);
api.export('ReactiveDict', ['client']);
api.addFiles("tests/client/persistent_session.js", "client");
});