forked from maxkferg/meteor-cdn
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpackage.js
34 lines (29 loc) · 1.07 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
30
31
32
Package.describe({
name: 'nitrolabs:cdn',
version: '1.3.0',
summary: 'Serve Meteor content from a CDN',
git: 'https://github.com/nitrolabs/meteor-cdn',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.4');
api.export('CDN','server');
api.export('CDN','client');
api.use('webapp','server');
api.use('templating','client');
api.use('browser-policy', {weak: true});
api.addFiles('lib/template.js','client');
api.addFiles('lib/client.js','client');
api.addFiles('lib/server.js','server');
});
Package.onTest(function(api) {
api.use('tinytest');
api.use('nitrolabs:cdn');
api.addFiles('tests/client.js','client');
api.addFiles('tests/server.js','server');
api.addFiles('tests/fixtures/icomoon.eot', 'client', {isAsset: true});
api.addFiles('tests/fixtures/icomoon.svg', 'client', {isAsset: true});
api.addFiles('tests/fixtures/icomoon.ttf', 'client', {isAsset: true});
api.addFiles('tests/fixtures/icomoon.woff', 'client', {isAsset: true});
api.addFiles('tests/fixtures/icomoon.otf', 'client', {isAsset: true});
});