package.js 842 B

1234567891011121314151617181920212223242526272829303132
  1. Package.describe({
  2. name: 'fgm:errors',
  3. version: '0.0.1',
  4. // Brief, one-line summary of the package.
  5. summary: 'A pattern to display application errors to the user',
  6. // URL to the Git repository containing the source code for this package.
  7. // git: '',
  8. // By default, Meteor will default to using README.md for documentation.
  9. // To avoid submitting documentation, set this field to null.
  10. // documentation: 'README.md'
  11. });
  12. Package.onUse(function(api) {
  13. var where = 'client';
  14. api.versionsFrom('1.1.0.3');
  15. api.use(['minimongo', 'mongo-livedata', 'templating'], where);
  16. api.addFiles(['errors.js', 'errors_list.html', 'errors_list.js'], where);
  17. if (api.export) {
  18. api.export('Errors');
  19. }
  20. });
  21. Package.onTest(function(api) {
  22. api.use('tinytest');
  23. api.use('fgm:errors');
  24. api.addFiles('errors-tests.js');
  25. });