-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.js
More file actions
28 lines (26 loc) · 965 Bytes
/
package.js
File metadata and controls
28 lines (26 loc) · 965 Bytes
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
Package.describe({
name: 'thename:logger',
version: '0.0.1',
// Brief, one-line summary of the package.
summary: 'Basic logging utility for Meteor',
// URL to the Git repository containing the source code for this package.
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.2');
api.addFiles('logger.js');
api.addFiles('loggerClientSetup.js');
api.addFiles('loggerServerSetup.js');
api.export('BaseLogger'); // handed to both in case of further modification
// log seems to be better suited towards client, while Logger will seem more familiar to long time coders
api.export('Logger', 'server');
api.export('log', 'client');
});
Package.onTest(function(api) {
api.use('tinytest');
api.use('thename:logger');
api.addFiles('logger-tests.js');
});