package.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Package.describe({
  2. name: 'wekan-cfs-data-man',
  3. version: '0.0.6',
  4. summary: 'A data manager, allowing you to attach various types of data and get it back in various other types',
  5. git: 'https://github.com/zcfs/Meteor-data-man.git'
  6. });
  7. Npm.depends({
  8. mime: "1.2.11",
  9. 'buffer-stream-reader': "0.1.1",
  10. //request: "2.44.0",
  11. // We use a specific commit from a fork of "request" package for now; we need fix for
  12. // https://github.com/mikeal/request/issues/887 (https://github.com/zcfs/Meteor-CollectionFS/issues/347)
  13. request: "https://github.com/wekan/request",
  14. temp: "0.7.0" // for tests only
  15. });
  16. Package.onUse(function(api) {
  17. api.versionsFrom('1.0');
  18. api.use(['ejson']);
  19. api.use(['wekan-cfs-filesaver@0.0.6'], {weak: true});
  20. api.export('DataMan');
  21. api.addFiles([
  22. 'client/Blob.js', //polyfill for browsers without Blob constructor; currently necessary for phantomjs support, too
  23. 'client/data-man-api.js'
  24. ], 'client');
  25. api.addFiles([
  26. 'server/data-man-api.js',
  27. 'server/data-man-buffer.js',
  28. 'server/data-man-datauri.js',
  29. 'server/data-man-filepath.js',
  30. 'server/data-man-url.js',
  31. 'server/data-man-readstream.js'
  32. ], 'server');
  33. });
  34. Package.onTest(function (api) {
  35. api.use(['wekan-cfs-data-man', 'http', 'tinytest', 'test-helpers', 'wekan-cfs-http-methods@0.0.29']);
  36. api.addFiles(['tests/common.js', 'tests/client-tests.js'], 'client');
  37. api.addFiles(['tests/common.js', 'tests/server-tests.js'], 'server');
  38. });