-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.js
29 lines (27 loc) · 1.13 KB
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* global Package */
Package.describe({
summary: 'A way to inject data to the client with initial HTML',
version: '3.0.0-beta.0',
git: 'https://github.com/Meteor-Community-Packages/meteor-inject-data',
name: 'communitypackages:inject-data',
});
Package.onUse(function (api) {
api.versionsFrom('METEOR@3.0.1');
api.use('webapp', 'server');
api.use(['ejson', 'ecmascript', 'typescript'], ['server', 'client']);
api.mainModule('lib/namespace.js', ['server', 'client']);
api.addFiles('lib/utils.js', ['server', 'client']);
api.addFiles('lib/server.js', 'server');
api.addFiles('lib/client.js', 'client');
api.export('InjectData', ['client', 'server']);
});
Package.onTest(function (api) {
api.use('communitypackages:inject-data');
api.use('webapp', 'server');
api.use(['meteortesting:browser-tests@1.7.0', 'meteortesting:mocha@3.2.0']);
api.use(['ecmascript', 'typescript', 'underscore'], ['client', 'server']);
api.use(['fetch', 'random'], 'server');
api.use('communitypackages:picker@2.0.0-beta.0', 'server');
api.mainModule('tests/server/index.js', 'server');
api.mainModule('tests/client/index.js', 'client');
});