-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.js
82 lines (69 loc) · 3.15 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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// XXX We should revisit how we factor MongoDB support into (1) the
// server-side node.js driver [which you might use independently of
// livedata, after all], (2) minimongo [ditto], and (3) Collection,
// which is the class that glues the two of them to Livedata, but also
// is generally the "public interface for newbies" to Mongo in the
// Meteor universe. We want to allow the components to be used
// independently, but we don't want to overwhelm the user with
// minutiae.
Package.describe({
summary: "Adaptor for using Neo4j and Minimongo over DDP",
internal: true
});
Npm.depends({
neo4j: "1.1.0"
});
Package.on_use(function (api) {
api.use(['random', 'ejson', 'json', 'underscore', 'minimongo', 'logging',
'livedata', 'deps', 'application-configuration', 'id-map'],
['client', 'server']);
api.use('check', ['client', 'server']);
// Binary Heap data structure is used to optimize oplog observe driver
// performance.
api.use('binary-heap', 'server');
// Allow us to detect 'insecure'.
api.use('insecure', {weak: true});
// Allow us to detect 'autopublish', and publish collections if it's loaded.
api.use('autopublish', 'server', {weak: true});
// Allow us to detect 'disable-oplog', which turns off oplog tailing for your
// app even if it's configured in the environment. (This package will be
// probably be removed before 1.0.)
// api.use('disable-oplog', 'server', {weak: true});
// defaultRemoteCollectionDriver gets its deployConfig from something that is
// (for questionable reasons) initialized by the webapp package.
api.use('webapp', 'server', {weak: true});
// If the facts package is loaded, publish some statistics.
api.use('facts', 'server', {weak: true});
api.use('callback-hook', 'server');
// Stuff that should be exposed via a real API, but we haven't yet.
api.export('Neo4jInternals', 'server');
// For tests only.
api.export('Neo4jTest', 'server', {testOnly: true});
// api.add_files('sync_map.js', ['client', 'server']);
api.add_files('neo4j_commands.js', ['client', 'server']);
api.add_files(['neo4j_driver.js', 'oplog_tailing.js',
'observe_multiplex.js', 'doc_fetcher.js',
'polling_observe_driver.js',
'neo4j_client.js',
'neo4j_watcher.js'],
'server');
api.add_files('local_collection_driver.js', ['client', 'server']);
api.add_files('remote_collection_driver.js', 'server');
api.add_files('neo4j_collection.js', ['client', 'server']);
});
/*
Package.on_test(function (api) {
api.use('neo4j-livedata');
api.use('check');
api.use(['tinytest', 'underscore', 'test-helpers', 'ejson', 'random',
'livedata']);
// XXX test order dependency: the allow_tests "partial allow" test
// fails if it is run before redis_livedata_tests.
api.add_files('redis_livedata_tests.js', ['client', 'server']);
api.add_files('allow_tests.js', ['client', 'server']);
//api.add_files('redis_collection_tests.js', ['client', 'server']);
//api.add_files('observe_changes_tests.js', ['client', 'server']);
//api.add_files('oplog_tests.js', 'server');
//api.add_files('doc_fetcher_tests.js', 'server');
});
*/