mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
27 lines
715 B
JavaScript
27 lines
715 B
JavaScript
Package.describe({
|
|
summary: "Session variable",
|
|
version: '2.0.0-alpha300.4',
|
|
});
|
|
|
|
Package.onUse(function (api) {
|
|
api.use(['ecmascript', 'reactive-dict', 'ejson'], 'client');
|
|
|
|
// Session can work with or without reload, but if reload is present
|
|
// it should load first so we can detect it at startup and populate
|
|
// the session.
|
|
api.use('reload', 'client', {weak: true});
|
|
|
|
api.export('Session', 'client');
|
|
api.mainModule('session.js', 'client');
|
|
api.addAssets('session.d.ts', 'server');
|
|
});
|
|
|
|
Package.onTest(function (api) {
|
|
api.use('ecmascript');
|
|
api.use('tinytest');
|
|
api.use('session', 'client');
|
|
api.use('tracker');
|
|
api.use('mongo');
|
|
api.addFiles('session_tests.js', 'client');
|
|
});
|