forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
74 lines (70 loc) · 2.44 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
Package.describe({
summary: "(Deprecated) Include a standard set of Meteor packages in your app",
version: '1.2.3'
});
Package.onUse(function(api) {
// The "imply" here means that if your app uses "meteor-platform", it is
// treated as if it also directly included all of these packages (and it gets
// their exports, plugins, etc).
//
// If you want, you can "meteor remove meteor-platform" and add some of
// these back in individually. We haven't tested every subset, though :)
api.imply([
// The normal "every package uses 'meteor'" rule only applies to packages
// built from a package source directory, so we make sure apps get it too.
// Meteor.isServer! The CSS extension handler! And so much more!
'meteor',
// A standard Meteor app is a web app. (Without this, there will be no
// 'main' function unless you define one yourself.)
'webapp',
// It's Log! It's better than bad, it's good!
'logging',
// Tracker.autorun and friends. What's Meteor without reactivity?
'tracker',
'deps', // XXX COMPAT WITH PACKAGES BUILT FOR 0.9.0.
// The easiest way to get a little reactivity into your app.
'session',
// DDP: Meteor's client/server protocol.
'ddp',
'livedata', // XXX COMPAT WITH PACKAGES BUILT FOR 0.9.0.
// You want to keep your data somewhere? How about MongoDB?
'mongo',
// Blaze: Reactive DOM!
'blaze',
'ui', // XXX COMPAT WITH PACKAGES BUILT FOR 0.9.0.
// A great template language!
'spacebars',
// Turn templates into views!
'templating',
// Easy type assertions? check.
'check',
// _.isUseful(true)
'underscore',
// $(".usefulToo")
'jquery',
// Life isn't always predictable.
'random',
// People like being able to clone objects.
'ejson'
]);
// These are useful too! But you don't have to see their exports
// unless you want to.
api.use([
// We can reload the client without messing up methods in flight.
'reload',
// And update automatically when new client code is available!
'autoupdate'
], ['client', 'server']);
// More mobile specific implies
api.imply([
// Remove the 300ms click delay on mobile
'fastclick',
// Good defaults for the mobile status bar
'mobile-status-bar'
], 'web.cordova');
api.imply([
// Launch screen configuration. Currently only on mobile but we include the
// no-op browser version anyway.
'launch-screen'
], 'web');
});