Files
meteor/packages/ddp-common/package.js
David Greenspan eb76d56ebf Remove spurious dependencies on logging package
We've been shipping the `logging` package to the client even though it
isn't used on the client by any core packages.  Now that the `logging`
package is removable from your app, let's make it actually removable
by deleting totally worthless dependencies that exist for bizarre
historical reasons.

For example, some packages, like `reload` and `mongo`, depend on
`logging` because that's where `Meteor._debug` used to be, before it
was moved to the `meteor` package and `logging` was repurposed for
something else.  The `ddp-server` package had a crazy overreaching set
of dependencies, pulling in a bunch of client-side libraries even though
it only has server-side code of its own.
2015-08-04 16:37:13 -07:00

25 lines
661 B
JavaScript

Package.describe({
summary: "Code shared beween ddp-client and ddp-server",
version: '1.2.0-plugins.0',
documentation: null
});
Package.onUse(function (api) {
api.use(['check', 'random', 'ejson', 'underscore', 'tracker',
'retry'],
['client', 'server']);
api.addFiles('namespace.js');
api.addFiles('heartbeat.js', ['client', 'server']);
api.addFiles('utils.js', ['client', 'server']);
api.addFiles('method_invocation.js', ['client', 'server']);
api.addFiles('random_stream.js', ['client', 'server']);
api.export('DDPCommon');
});
Package.onTest(function (api) {
// XXX we should write unit tests for heartbeat
});