forked from awatson1978/deprecated-clinical-extended-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
executable file
·50 lines (38 loc) · 1.24 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
Package.describe({
summary: "Extended API for Session and Collection.",
version: "3.0.0",
name: "clinical:extended-api",
git: "https://github.com/clinical-meteor/clinical-extended-api"
});
Package.onUse(function (api) {
api.versionsFrom('3.0');
// clinical:base
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('random');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
// Session can work with or without reload, but if reload is present
// it should load first so we can detect it at startup and populate
// the session.
api.use('[email protected]', 'client', {weak: true});
//client
api.addFiles('client/meteor-extended-api.js', 'client');
api.addFiles('client/session-extended-api.js', 'client');
api.addFiles('client/random-extended-api.js', ['server', 'client']);
//both
api.addFiles('lib/Style.js');
//server
api.addFiles('server/collection-extended-api.js', 'server');
//exports
api.export('Random', ['client', 'server']);
api.export('Session', 'client');
api.export('Meteor', 'client');
api.export('Collection');
api.export('Style');
});