-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.js
More file actions
65 lines (58 loc) · 2.3 KB
/
Copy pathpackage.js
File metadata and controls
65 lines (58 loc) · 2.3 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
var path = Npm.require('path');
var fs = Npm.require('fs');
Package.describe({
"summary": "Search APIs and add context",
"version": "0.6.1",
"git": "https://github.com/readFOLD/context-blocks",
"name": "fold:context-blocks"
});
var packagesJsonFile = path.resolve('./packages.json');
try {
var fileContent = fs.readFileSync(packagesJsonFile);
var packages = JSON.parse(fileContent.toString());
Npm.depends(packages);
} catch (ex) {
console.error('ERROR: packages.json parsing error [ ' + ex.message + ' ]');
}
Package.onUse(function (api) {
configure(api);
api.export('ContextBlock', ['client', 'server']);
api.export('Stream', ['client', 'server']);
api.export('VideoBlock', ['client', 'server']);
api.export('TextBlock', ['client', 'server']);
api.export('MapBlock', ['client', 'server']);
api.export('ImageBlock', ['client', 'server']);
api.export('GifBlock', ['client', 'server']);
api.export('AudioBlock', ['client', 'server']);
api.export('VizBlock', ['client', 'server']);
api.export('TwitterBlock', ['client', 'server']);
api.export('LinkBlock', ['client', 'server']);
api.export('NewsBlock', ['client', 'server']);
api.export('newTypeSpecificContextBlock', ['client', 'server']);
api.export('Schema', ['client', 'server']);
api.export('ContextBlocks', ['client', 'server']);
});
function configure(api) {
api.versionsFrom('METEOR@1.1.0.1');
api.use('aldeed:collection2@2.3.0')
api.use('chaosbohne:twitter-text@0.1.0');
api.use('lepozepo:cloudinary@3.0.0');
api.use('check');
api.use('http');
//meteorhacks:npm 1.3.0 Use npm modules with your Meteor App
//mystor:device-detection 0.2.0 Client-Side Device Type Detection & Template Switching with Opti...
//npm-container 1.0.0+ Contains all your npm dependencies
//percolatestudio:segment.io 1.1.1_1* Segment.io integration for Meteor (works on both client and se...
api.use('reactive-dict@1.1.0');
api.use('reactive-var@1.0.5');
//service-configuration 1.0.4 Manage the configuration for third-party services
api.use('underscore@1.0.3');
api.use('wizonesolutions:underscore-string@1.0.0');
api.addFiles([
'lib/models.js',
'lib/collections.js'
], ['client', 'server']);
api.addFiles([
'server/methods.js'
], ['server']);
}