Files
meteor/packages/session/package.js
Andrew Wilcox 03025db527 Only load Session on the client.
Fixes 751.
2013-03-04 12:24:04 -08:00

26 lines
710 B
JavaScript

var path = require('path');
Package.describe({
summary: "Session variable",
internal: true
});
// XXX hack -- need a way to use a package at bundle time
var _ = require(path.join('..', '..', 'packages', 'underscore', 'underscore.js'));
Package.on_use(function (api) {
api.use(['underscore', 'deps'], 'client');
// XXX what I really want to do is ensure that if 'reload' is going to
// be loaded, it should be loaded before 'session'. Session can work
// with or without reload.
api.use('reload', 'client');
api.add_files('session.js', 'client');
});
Package.on_test(function (api) {
api.use('tinytest');
api.use('session', 'client');
api.add_files('session_tests.js', 'client');
});