forked from kadirahq/meteor-dochead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
36 lines (30 loc) · 1018 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
36
Package.describe({
name: 'kadira:dochead',
summary: 'Isomorphic way to manipulate document.head for Meteor apps',
version: '1.4.0',
git: 'https://github.com/kadirahq/meteor-dochead.git'
});
Npm.depends({
'load-script': '1.0.0'
});
var configure = function(api) {
api.versionsFrom('1.2');
api.use(['es5-shim', 'ecmascript', 'tracker']);
api.use('kadira:[email protected]', ['client', 'server'], {weak: true});
api.use('cosmos:[email protected]', 'client');
api.addFiles('package.browserify.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');
});