package.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Package.describe({
  2. name: 'fgm:drupal-sso',
  3. version: '0.0.1',
  4. summary: 'A transparent authentication package for Drupal',
  5. // git: '',
  6. documentation: 'README.md'
  7. });
  8. Package.onUse(function(api) {
  9. // If no version is specified for an 'api.use' dependency, use the one defined in Meteor 0.9.0.
  10. api.versionsFrom('1.1.0.3');
  11. // Need to addFiles() for each file in the package.
  12. api.addFiles('drupal-sso.js');
  13. // This is a reactive source exposing the user session information.
  14. api.export('DrupalSession');
  15. // This contains the server-only information for the Drupal instance:
  16. // - The application token
  17. api.export('DrupalServer', 'server');
  18. //* @var "client", "server", "web.browser", or "web.cordova".
  19. // var architecture
  20. // When not specified, component is available everywhere.
  21. //* @var { weak: Boolean, unordered: Boolean }
  22. // var options
  23. // both options default to false.
  24. // api.use('packagename@version', architecture, options)
  25. });
  26. Package.onTest(function(api) {
  27. api.use('tinytest');
  28. api.use('fgm:drupal-sso');
  29. api.addFiles('drupal-sso-tests.js');
  30. });
  31. // Npm.depends({ packageName: "version", ... });
  32. // Cordova.depends({ packageName: "version", packageName2: "http://packageName2.tar", ... });