Package.describe({ summary: 'Logging facility.', version: '1.1.20' }); Npm.depends({ 'cli-color': '0.2.3' }); Npm.strip({ 'es5-ext': ['test/'] }); Cordova.depends({ 'cordova-plugin-console': '1.1.0' // Deprecated, remove in future }); Package.onUse(function (api) { api.export('Log'); // The `ecmascript-runtime-client` package is explicitly depended upon // here due to this package's dependency on // `String.prototype.padRight` which is polyfilled only in // `ecmascript-runtime-client@0.6.2` or newer. api.use(['ejson', 'ecmascript', 'ecmascript-runtime-client@0.6.2']); api.mainModule('logging.js'); api.mainModule('logging_cordova.js', 'web.cordova'); }); Package.onTest(function (api) { api.use(['tinytest', 'ejson', 'ecmascript']); api.use('logging', ['client', 'server']); api.mainModule('logging_test.js', ['server', 'client']); });