-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.js
35 lines (29 loc) · 957 Bytes
/
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
30
31
32
33
34
35
Package.describe({
name: 'kadira:dochead',
summary: 'Isomorphic way to manipulate document.head for Meteor apps',
version: '1.5.0',
git: 'https://github.com/kadirahq/meteor-dochead.git'
});
Npm.depends({
'load-script': '1.0.0'
});
var configure = function(api) {
api.versionsFrom('1.3');
api.use(['es5-shim', 'ecmascript', 'tracker']);
api.use('kadira:[email protected]', ['client', 'server'], {weak: true});
api.addFiles('main.js', 'client');
api.addFiles('lib/both.js', ['client', 'server']);
api.addFiles('lib/flow_router.js', ['client']);
};
Package.onUse(function(api) {
configure(api);
api.export('DocHead');
});
Package.onTest(function(api) {
api.addFiles('test/init.js', 'server');
configure(api);
api.use(['react', 'tinytest', 'random', 'tracker', 'underscore']);
api.addAssets('test/fakescript.js', 'client');
api.addFiles('test/client.js', 'client');
api.addFiles('test/server.js', 'server');
});