-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpackage.js
executable file
·59 lines (51 loc) · 1.44 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
57
58
59
Package.describe({
name: "yuukan:streamy",
version: "1.4.2",
// Brief, one-line summary of the package.
summary:
"Simple interface to use the underlying sockjs in a meteor application",
// URL to the Git repository containing the source code for this package.
git: "https://github.com/YuukanOO/streamy",
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: "README.md",
});
Package.onUse(function (api) {
api.versionsFrom("1.0.3.1");
api.use(["underscore", "mongo", "check", "reactive-var"]);
// Both
api.addFiles([
"lib/namespaces.js",
"lib/core/core.js",
"lib/direct_messages/direct_messages.js",
"lib/broadcasts/broadcasts.js",
"lib/utils/utils.js",
"lib/multiple_servers/connection.js",
]);
// Client only
api.addFiles(
[
"lib/core/core_client.js",
"lib/direct_messages/direct_messages_client.js",
"lib/broadcasts/broadcasts_client.js",
"lib/utils/utils_client.js",
],
"client"
);
// Server only
api.addFiles(
[
"lib/core/core_server.js",
"lib/direct_messages/direct_messages_server.js",
"lib/broadcasts/broadcasts_server.js",
"lib/utils/utils_server.js",
],
"server"
);
api.addFiles("lib/startup.js");
api.export(["Streamy"]);
});
Package.onTest(function (api) {
api.use("tinytest");
api.use("yuukan:streamy");
});