package.js 653 B

123456789101112131415161718192021222324252627
  1. // package metadata file for Meteor.js
  2. 'use strict';
  3. var packageName = 'momentjs:moment'; // https://atmospherejs.com/momentjs/moment
  4. Package.describe({
  5. name: packageName,
  6. summary: 'Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging',
  7. version: '2.30.1',
  8. git: 'https://github.com/moment/moment.git'
  9. });
  10. Package.onUse(function (api) {
  11. api.versionsFrom(['METEOR@0.9.0', 'METEOR@1.0', 'METEOR@1.2']);
  12. api.export('moment');
  13. api.addFiles([
  14. 'moment.js',
  15. 'export.js'
  16. ]);
  17. });
  18. Package.onTest(function (api) {
  19. api.use(packageName);
  20. api.use('tinytest');
  21. api.addFiles('test.js');
  22. });