text: Package.describe({
    name: "ground:db",
    version: "0.3.0",
    summary: "Ground Meteor.Collections offline",
    git: "https://github.com/GroundMeteor/db.git"
  });
  
  Package.onUse(function (api) {
    api.versionsFrom('1.0');
  
    api.use('meteor-platform', ['client', 'server']);
  
    api.use([
      'meteor',
      'underscore',
      'minimongo',
      'ejson',
      'reactive-var',
      'localforage',
      'ground:util@0.1.17',
      'ground:servertime@0.0.3',
      //'ground:minimax@1.0.1', // Its implied by ground:util
      'ground:localstorage@0.1.7',
      'raix:eventemitter@0.1.1',
      'raix:stubfence@1.0.1',
      'raix:onetimeout@1.0.3'
    ], ['web.cordova', 'server']);
  
    // Make sure any storage adapters are loaded first
    // api.use([
    //   'ground:localstorage'
    // ], 'client', { weak: true });
  
    api.export('Ground');
    api.export('GroundDB');
  
    api.use(['tracker'], 'client');
  
    //api.use([], 'server');
    //api.use(['localstorage', 'ejson'], 'client');
    api.addFiles([
      'groundDB.client.js',
      'wrap.collection.js',
      'wrap.eventemitter.js',
      'wrap.proto.eventemitter.js',
      'localforageadapter.js'
      ], 'web.cordova');
    api.addFiles('groundDB.server.js', 'server');
  });
  
  Package.onTest(function (api) {
    api.use('ground:db', ['client']);
    api.use('test-helpers', 'client');
    api.use(['tinytest', 'underscore', 'ejson', 'ordered-dict',
             'random', 'tracker']);
  
    api.addFiles('groundDB.client.tests.js', 'client');
    api.addFiles('groundDB.server.tests.js', 'server');
  });
  