-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
49 lines (43 loc) · 1.79 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
Package.describe({
name: 'dayd:stats',
version: '0.0.87',
// Brief, one-line summary of the package.
summary: "Visitor stat package to log visits on your site automatically",
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/ddaydd/stats.git',
// 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.1.0.3');
api.use([
'ecmascript',
'mongo',
'meteorhacks:[email protected]',
'gadicohen:[email protected]',
'accounts-base'
]);
api.use(["tap:[email protected]"], ["client", "server"]);
api.use("templating", "client");
api.add_files('lib/collection.js', ['server', 'client']);
api.add_files('lib/router.js', ['server', 'client']);
api.add_files('client/main.js', ['client']);
api.add_files('server/publish.js', ['server']);
api.add_files('server/methods.js', ['server']);
api.add_files("template/stats.html", "client");
api.add_files('template/stats.js', ['client']);
api.add_files("template/statsIp.html", "client");
api.add_files('template/statsIp.js', ['client']);
api.add_files("template/statsReferers.html", "client");
api.add_files('template/statsReferers.js', ['client']);
api.add_files("template/statsPages.html", "client");
api.add_files('template/statsPages.js', ['client']);
api.add_files('template/stats.css', ['client']);
const languages = ["en", "fr"];
const languagesPaths = languages.map(function(language) {
return "lib/i18n/" + language + ".i18n.json";
});
api.addFiles(languagesPaths, ["client", "server"]);
api.export(['DaydStatsPath', 'DaydStatsUsers', 'statsUserUpdate', 'statsUserInsert'], ['client', 'server']);
});